From: Jérémie Galarneau Date: Thu, 27 Aug 2015 20:53:24 +0000 (-0400) Subject: Fix: Save kernel event filter when saving session configuration X-Git-Tag: v2.7.0-rc2~124 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=50e5312ebfbd1250705bde987ab89418d1a6165f;p=lttng-tools.git Fix: Save kernel event filter when saving session configuration Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/save.c b/src/bin/lttng-sessiond/save.c index b3af30914..a48549178 100644 --- a/src/bin/lttng-sessiond/save.c +++ b/src/bin/lttng-sessiond/save.c @@ -363,6 +363,16 @@ int save_kernel_event(struct config_writer *writer, goto end; } + if (event->filter_expression) { + ret = config_writer_write_element_string(writer, + config_element_filter, + event->filter_expression); + if (ret) { + ret = LTTNG_ERR_SAVE_IO_FAIL; + goto end; + } + } + if (event->event->instrumentation == LTTNG_KERNEL_FUNCTION || event->event->instrumentation == LTTNG_KERNEL_KPROBE || event->event->instrumentation == LTTNG_KERNEL_KRETPROBE) {