From: compudj Date: Thu, 1 Sep 2005 02:50:14 +0000 (+0000) Subject: add filter to event hook X-Git-Tag: v0.12.20~2386 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=19e250a04b021d4a0c1c1a9a90448a673790864a;p=lttv.git add filter to event hook git-svn-id: http://ltt.polymtl.ca/svn@1103 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/lttv/modules/gui/detailedevents/events.c b/ltt/branches/poly/lttv/modules/gui/detailedevents/events.c index df1db075..2a58cb21 100644 --- a/ltt/branches/poly/lttv/modules/gui/detailedevents/events.c +++ b/ltt/branches/poly/lttv/modules/gui/detailedevents/events.c @@ -929,6 +929,13 @@ int event_hook(void *hook_data, void *call_data) EventViewerData *event_viewer_data = (EventViewerData*)hook_data; LttvTracefileContext *tfc = (LttvTracefileContext*)call_data; LttEvent *e = ltt_tracefile_get_event(tfc->tf); + + LttvFilter *filter = lttvwindow_get_filter(event_viewer_data->tab); + if(filter != NULL && filter->head != NULL) + if(!lttv_filter_tree_parse(filter->head,e,tfc->tf, + tfc->t_context->t,tfc)) + return FALSE; + LttFacility *facility = ltt_event_facility(e); LttEventType *event_type = ltt_event_eventtype(e); LttField *field = ltt_event_field(e); @@ -941,7 +948,7 @@ int event_hook(void *hook_data, void *call_data) GtkTreeIter iter; GString *desc = g_string_new(""); - + LttvTracesetContextPosition *pos = lttv_traceset_context_position_new(tfc->t_context->ts_context);