From: Jérémie Galarneau Date: Wed, 26 Aug 2015 15:58:56 +0000 (-0400) Subject: Ensure that a filter is always passed with its filter expression X-Git-Tag: v2.8.0-rc1~464 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=2a3858667c1b1a90ec25f8fc9a6b673feae1bea3;p=lttng-tools.git Ensure that a filter is always passed with its filter expression Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/cmd.c b/src/bin/lttng-sessiond/cmd.c index ac489fa2f..532106c1a 100644 --- a/src/bin/lttng-sessiond/cmd.c +++ b/src/bin/lttng-sessiond/cmd.c @@ -1497,6 +1497,9 @@ static int _cmd_enable_event(struct ltt_session *session, assert(event); assert(channel_name); + /* If we have a filter, we must have its filter expression */ + assert(!(!!filter_expression ^ !!filter)); + DBG("Enable event command for event \'%s\'", event->name); ret = validate_event_name(event->name);