LttvTracefileContext *tfc = (LttvTracefileContext *)call_data;
LttvTracefileState *tfs = (LttvTracefileState *)call_data;
-
+ LttvTraceState *ts =(LttvTraceState *)LTTV_TRACEFILE_CONTEXT(tfs)->t_context;
LttEvent *e;
e = tfc->e;
/* Find process pid_out in the list... */
- process_out = lttv_state_find_process(tfs, pid_out);
+ process_out = lttv_state_find_process_from_trace(ts, pid_out);
+ if(process_out == NULL) return 0;
g_critical("out : %s",g_quark_to_string(process_out->state->s));
-
+
birth = process_out->creation_time;
gchar *name = strdup(g_quark_to_string(process_out->name));
HashedProcessData *hashed_process_data_out = NULL;
g_free(name);
/* Find process pid_in in the list... */
- process_in = lttv_state_find_process(tfs, pid_in);
+ process_in = lttv_state_find_process_from_trace(ts, pid_in);
+ if(process_in == NULL) return 0;
g_critical("in : %s",g_quark_to_string(process_in->state->s));
birth = process_in->creation_time;
LttvTracefileContext *tfc = (LttvTracefileContext *)call_data;
LttvTracefileState *tfs = (LttvTracefileState *)call_data;
+ LttvTraceState *ts =(LttvTraceState *)LTTV_TRACEFILE_CONTEXT(tfs)->t_context;
LttEvent *e;
/* Find process pid_out in the list... */
- process_out = lttv_state_find_process(tfs, pid_out);
+ process_out = lttv_state_find_process_from_trace(ts, pid_out);
+ if(process_out == NULL) return 0;
//g_critical("out : %s",g_quark_to_string(process_out->state->s));
birth = process_out->creation_time;
g_free(name);
/* Find process pid_in in the list... */
- process_in = lttv_state_find_process(tfs, pid_in);
+ process_in = lttv_state_find_process_from_trace(ts, pid_in);
+ if(process_in == NULL) return 0;
//g_critical("in : %s",g_quark_to_string(process_in->state->s));
birth = process_in->creation_time;