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.8.0-rc1~455 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=911d15607d55b7e374ff6750bddf7e4b4f763593;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 851b9ac5b..2e3e3d684 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) {