add usertrace support
[lttv.git] / ltt / branches / poly / lttv / modules / gui / detailedevents / events.c
index 705697c66ae6556856e9332810e9d5ab94266b12..63a1bbf88e381a043f08f71b2b540c3056136649 100644 (file)
@@ -1481,6 +1481,7 @@ int event_hook(void *hook_data, void *call_data)
 {
   EventViewerData *event_viewer_data = (EventViewerData*)hook_data;
   LttvTracefileContext *tfc = (LttvTracefileContext*)call_data;
+  LttvTracefileState *tfs = (LttvTracefileState*)call_data;
   LttEvent *e = ltt_tracefile_get_event(tfc->tf);
 
   LttvFilter *filter = event_viewer_data->main_win_filter;
@@ -1493,7 +1494,7 @@ int event_hook(void *hook_data, void *call_data)
   LttEventType *event_type = ltt_event_eventtype(e);
   LttTime time = ltt_event_time(e);
 
-  guint cpu = ltt_tracefile_num(tfc->tf);
+  guint cpu = tfs->cpu;
   LttvTraceState *ts = (LttvTraceState*)tfc->t_context;
   LttvProcessState *process = ts->running_process[cpu];
   
This page took 0.023475 seconds and 4 git commands to generate.