X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fgui%2Fcontrolflow%2Feventhooks.c;h=cf48bda0a1cc05693add3ed302d35a581113900a;hb=800aa0293651008a98ae6c71c9d9092a95a3e162;hp=d6c80459d857a9f14e99d0c17687f653ad5a4dff;hpb=f4b88a7dd49bfb6b88ea579410d7e4b59faaf73c;p=lttv.git 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) */