From: Jonathan Rajotte Date: Thu, 9 Apr 2020 00:03:06 +0000 (-0400) Subject: Generate capture bytecode on trigger reception X-Git-Tag: v2.13.0-rc1~247 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=f2e97f594f0c730f933b5f9840938d878b13e26b;p=lttng-tools.git Generate capture bytecode on trigger reception Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau Change-Id: Ibf86096bd17be078cfc5e8bcd82347797389d448 Depends-on: lttng-ust: I5a800fc92e588c2a6a0e26282b0ad5f31c044479 --- diff --git a/src/common/trigger.c b/src/common/trigger.c index 04b3e7f11..71162e79b 100644 --- a/src/common/trigger.c +++ b/src/common/trigger.c @@ -7,10 +7,12 @@ #include #include +#include #include #include #include #include +#include #include #include #include @@ -955,12 +957,21 @@ enum lttng_error_code lttng_trigger_generate_bytecode( condition, &event_rule); assert(condition_status == LTTNG_CONDITION_STATUS_OK); + + /* Generate the filter bytecode. */ ret = lttng_event_rule_generate_filter_bytecode( event_rule, creds); if (ret != LTTNG_OK) { goto end; } + /* Generate the capture bytecode. */ + ret = lttng_condition_event_rule_generate_capture_descriptor_bytecode( + condition); + if (ret != LTTNG_OK) { + goto end; + } + ret = LTTNG_OK; break; }