From: compudj Date: Fri, 26 Aug 2005 16:14:24 +0000 (+0000) Subject: fix smp in control flow view X-Git-Tag: v0.12.20~2407 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=800aa0293651008a98ae6c71c9d9092a95a3e162;p=lttv.git fix smp in control flow view git-svn-id: http://ltt.polymtl.ca/svn@1082 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.c b/ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.c index d6c80459..cf48bda0 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.c +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.c @@ -415,7 +415,8 @@ int before_schedchange_hook(void *hook_data, void *call_data) LttvProcessState *process = ts->running_process[cpu]; /* unknown state, bad current pid */ if(process->pid != pid_out) - process = lttv_state_find_process(ts, ANY_CPU, pid_out); + process = lttv_state_find_process(ts, + ltt_tracefile_num(tfc->tf), pid_out); if(process != NULL) { /* Well, the process_out existed : we must get it in the process hash @@ -570,10 +571,11 @@ int before_schedchange_hook(void *hook_data, void *call_data) * present, it's a new process and it was not present : it will * be added after the state update. */ LttvProcessState *process; - process = lttv_state_find_process(ts, ANY_CPU, pid_in); + process = lttv_state_find_process(ts, + ltt_tracefile_num(tfc->tf), pid_in); if(process != NULL) { - /* Well, the process_out existed : we must get it in the process hash + /* Well, the process existed : we must get it in the process hash * or add it, and draw its items. */ /* Add process to process list (if not present) */ diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.h b/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.h index f5844a11..c8322465 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.h +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.h @@ -188,7 +188,7 @@ static inline HashedProcessData *processlist_get_process_data( if(pid == 0) process_info.cpu = cpu; else - process_info.cpu = 0; + process_info.cpu = ANY_CPU; process_info.birth = *birth; process_info.trace_num = trace_num;