LttvProcessState *process = ts->running_process[cpu];
/* unknown state, bad current pid */
if(process->pid != pid_out)
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
if(process != NULL) {
/* Well, the process_out existed : we must get it in the process hash
* present, it's a new process and it was not present : it will
* be added after the state update. */
LttvProcessState *process;
* 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);
- /* 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) */
* or add it, and draw its items.
*/
/* Add process to process list (if not present) */
if(pid == 0)
process_info.cpu = cpu;
else
if(pid == 0)
process_info.cpu = cpu;
else
+ process_info.cpu = ANY_CPU;
process_info.birth = *birth;
process_info.trace_num = trace_num;
process_info.birth = *birth;
process_info.trace_num = trace_num;