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.7.0-rc2~123 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=1d515f95a2c28f6bd3aaabd32e3fbb381ef517cb;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 2bbca0040..38ffbb163 100644 --- a/src/bin/lttng-sessiond/cmd.c +++ b/src/bin/lttng-sessiond/cmd.c @@ -379,6 +379,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: