put print fields in print.c
[lttv.git] / ltt / branches / poly / lttv / modules / gui / controlflow / eventhooks.c
index 089cd5e9d17b415b37b1502cbb70c6c2f5d9ddc9..cc152eef16015b3fe171f5bd3e9bc907643fa878 100644 (file)
@@ -534,7 +534,7 @@ int before_schedchange_hook(void *hook_data, void *call_data)
       
       hashed_process_data = processlist_get_process_data(process_list,
               pid_in,
-              process->cpu,
+              ltt_tracefile_num(tfc->tf),
               &birth,
               tfc->t_context->index);
       if(hashed_process_data == NULL)
@@ -546,7 +546,7 @@ int before_schedchange_hook(void *hook_data, void *call_data)
         processlist_add(process_list,
             drawing,
             pid_in,
-            process->cpu,
+            ltt_tracefile_num(tfc->tf),
             process->ppid,
             &birth,
             tfc->t_context->index,
@@ -668,7 +668,8 @@ int before_schedchange_hook(void *hook_data, void *call_data)
                                  &hashed_process_data->next_good_time);
         }
       }
-    }
+    } else
+      g_warning("Cannot find pin_in in schedchange %u", pid_in);
   }
   return 0;
 
This page took 0.022846 seconds and 4 git commands to generate.