From: Jérémie Galarneau Date: Thu, 27 Aug 2015 21:26:58 +0000 (-0400) Subject: Fix: Propagate filter status of kernel events to client X-Git-Tag: v2.8.0-rc1~454 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=00f992f21e448b4347150e6204ed0afbc635a1af;p=lttng-tools.git Fix: Propagate filter status of kernel events to client Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/cmd.c b/src/bin/lttng-sessiond/cmd.c index ed878f9b1..e1fbf769c 100644 --- a/src/bin/lttng-sessiond/cmd.c +++ b/src/bin/lttng-sessiond/cmd.c @@ -380,6 +380,8 @@ static int list_lttng_kernel_events(char *channel_name, strncpy((*events)[i].name, event->event->name, LTTNG_SYMBOL_NAME_LEN); (*events)[i].name[LTTNG_SYMBOL_NAME_LEN - 1] = '\0'; (*events)[i].enabled = event->enabled; + (*events)[i].filter = + (unsigned char) !!event->filter_expression; switch (event->event->instrumentation) { case LTTNG_KERNEL_TRACEPOINT: