for(i=0;i<num_traces;i++) {
trace = lttv_traceset_get(ts, i);
for(i=0;i<num_traces;i++) {
trace = lttv_traceset_get(ts, i);
if(lttvwindowtraces_get_ready(g_quark_from_string("state"),trace)==FALSE
&& !ts->has_precomputed_states) {
if(lttvwindowtraces_get_ready(g_quark_from_string("state"),trace)==FALSE
&& !ts->has_precomputed_states) {
* draw items from the beginning of the read for it. If it is not
* present, it's a new process and it was not present : it will
* be added after the state update. TOCHECK: What does that last para mean? */
* draw items from the beginning of the read for it. If it is not
* present, it's a new process and it was not present : it will
* be added after the state update. TOCHECK: What does that last para mean? */
pid_out = lttv_event_get_long(event, "prev_tid");
pid_in = lttv_event_get_long(event, "next_tid");
state_out = lttv_event_get_long(event, "prev_state");
pid_out = lttv_event_get_long(event, "prev_tid");
pid_in = lttv_event_get_long(event, "next_tid");
state_out = lttv_event_get_long(event, "prev_state");
process = lttv_state_find_process(ts,cpu,pid_out);
evtime = lttv_event_get_timestamp(event);
process = lttv_state_find_process(ts,cpu,pid_out);
evtime = lttv_event_get_timestamp(event);
//process_in = lttv_state_find_process(ts, ANY_CPU, pid_in);
//process_in = tfs->process;
guint cpu = lttv_traceset_get_cpuid_from_event(event);
//process_in = lttv_state_find_process(ts, ANY_CPU, pid_in);
//process_in = tfs->process;
guint cpu = lttv_traceset_get_cpuid_from_event(event);
process_in = ts->running_process[cpu];
/* It should exist, because we are after the state update. */
#ifdef EXTRA_CHECK
process_in = ts->running_process[cpu];
/* It should exist, because we are after the state update. */
#ifdef EXTRA_CHECK
//TODO ybrosseau 2013-04-09 validate that using the running process is the right choice
//process = lttv_state_find_process(ts ,cpu ,pid);
//TODO ybrosseau 2013-04-09 validate that using the running process is the right choice
//process = lttv_state_find_process(ts ,cpu ,pid);
/* Add process to process list (if not present) */
//LttvProcessState *process = tfs->process;
guint cpu = lttv_traceset_get_cpuid_from_event(event);
/* Add process to process list (if not present) */
//LttvProcessState *process = tfs->process;
guint cpu = lttv_traceset_get_cpuid_from_event(event);
/* It should exist, because we are after the state update. */
g_assert(process_child != NULL);
/* It should exist, because we are after the state update. */
g_assert(process_child != NULL);
/* Add process to process list (if not present) */
//LttvProcessState *process = tfs->process;
guint cpu = lttv_traceset_get_cpuid_from_event(event);
/* Add process to process list (if not present) */
//LttvProcessState *process = tfs->process;
guint cpu = lttv_traceset_get_cpuid_from_event(event);
LttvProcessState *process = ts->running_process[cpu];
/* It should exist, because we are after the state update. */
LttvProcessState *process = ts->running_process[cpu];
/* It should exist, because we are after the state update. */
HashedProcessData *hashed_process_data_in = NULL;
ProcessList *process_list = control_flow_data->process_list;
HashedProcessData *hashed_process_data_in = NULL;
ProcessList *process_list = control_flow_data->process_list;