X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fgui%2Fdetailedevents%2Fevents.c;h=63a1bbf88e381a043f08f71b2b540c3056136649;hb=dbd2bdfe5fb44327e5a9c0b1c8370d0d6b1c6ce4;hp=705697c66ae6556856e9332810e9d5ab94266b12;hpb=864a5a1ca7221b4fe2bb26ea2c6ba46e1e4cf88d;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/gui/detailedevents/events.c b/ltt/branches/poly/lttv/modules/gui/detailedevents/events.c index 705697c6..63a1bbf8 100644 --- a/ltt/branches/poly/lttv/modules/gui/detailedevents/events.c +++ b/ltt/branches/poly/lttv/modules/gui/detailedevents/events.c @@ -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];