X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=include%2Flttng%2Flttng.h;h=255f7c42eeae2c9a3f447ce445f16fa6d62c97dc;hp=0307536d387e600c8d8127b923883af3a56d5385;hb=93deb080343dfcc1fafdea1301c600763b3a89aa;hpb=b9dfb1671626365019a72318fb131eb321244245 diff --git a/include/lttng/lttng.h b/include/lttng/lttng.h index 0307536d3..255f7c42e 100644 --- a/include/lttng/lttng.h +++ b/include/lttng/lttng.h @@ -572,6 +572,23 @@ extern int lttng_enable_event_with_filter(struct lttng_handle *handle, struct lttng_event *event, const char *channel_name, const char *filter_expression); +/* + * Create or enable an event with a filter and/or exclusions. + * + * If the event you are trying to enable does not exist, it will be created, + * else it is enabled. + * If ev is NULL, all events are enabled with the filter and exclusion options. + * If channel_name is NULL, the default channel is used (channel0) and created + * if not found. + * If filter_expression is NULL, an event without associated filter is + * created. + * If exclusion count is zero, the event will be created without exclusions. + */ +extern int lttng_enable_event_with_exclusions(struct lttng_handle *handle, + struct lttng_event *event, const char *channel_name, + const char *filter_expression, + int exclusion_count, char **exclusion_names); + /* * Create or enable a channel. *