-
- /* Find process pid_in in the list... */
- process_in = lttv_state_find_process(ts, ANY_CPU, pid_in);
- //process_in = tfs->process;
- //guint cpu = tfs->cpu;
- //guint trace_num = ts->parent.index;
- //process_in = ts->running_process[cpu];
- /* It should exist, because we are after the state update. */
-#ifdef EXTRA_CHECK
- //g_assert(process_in != NULL);
-#endif //EXTRA_CHECK
- birth = process_in->creation_time;
-
- hashed_process_data_in = processlist_get_process_data(process_list,
+ for(cpu = first_cpu; cpu < nb_cpus; cpu++) {
+ /* Find process pid_in in the list... */
+ process_in = lttv_state_find_process(ts, cpu, pid_in);
+ //process_in = tfs->process;
+ //guint cpu = tfs->cpu;
+ //guint trace_num = ts->parent.index;
+ //process_in = ts->running_process[cpu];
+ /* It should exist, because we are after the state update. */
+ #ifdef EXTRA_CHECK
+ //g_assert(process_in != NULL);
+ #endif //EXTRA_CHECK
+ birth = process_in->creation_time;
+
+ hashed_process_data_in = processlist_get_process_data(process_list,
+ pid_in,
+ process_in->cpu,
+ &birth,
+ trace_num);
+ if(hashed_process_data_in == NULL)
+ {
+ if(pid_in != 0 && pid_in == process_in->ppid)
+ g_critical("TEST %u , %u", pid_in, process_in->ppid);
+ g_assert(pid_in == 0 || pid_in != process_in->ppid);
+ ProcessInfo *process_info;
+ Drawing_t *drawing = control_flow_data->drawing;
+ /* Process not present */
+ processlist_add(process_list,
+ drawing,