}
/* Create ust event */
- uevent = trace_ust_create_event(&events[i], filter);
+ uevent = trace_ust_create_event(&events[i], filter, NULL);
if (uevent == NULL) {
ret = LTTNG_ERR_FATAL;
goto error_destroy;
uevent = trace_ust_find_event(uchan->events, event->name, filter,
event->loglevel);
if (uevent == NULL) {
- uevent = trace_ust_create_event(event, filter);
+ uevent = trace_ust_create_event(event, filter, exclusion);
if (uevent == NULL) {
ret = LTTNG_ERR_UST_ENABLE_FAIL;
goto error;
* Return pointer to structure or NULL.
*/
struct ltt_ust_event *trace_ust_create_event(struct lttng_event *ev,
- struct lttng_filter_bytecode *filter)
+ struct lttng_filter_bytecode *filter,
+ struct lttng_event_exclusion *exclusion)
{
struct ltt_ust_event *lue;
/* Same layout. */
lue->filter = (struct lttng_ust_filter_bytecode *) filter;
+ lue->exclusion = (struct lttng_event_exclusion *) exclusion;
/* Init node */
lttng_ht_node_init_str(&lue->node, lue->attr.name);
struct ltt_ust_session *trace_ust_create_session(uint64_t session_id);
struct ltt_ust_channel *trace_ust_create_channel(struct lttng_channel *attr);
struct ltt_ust_event *trace_ust_create_event(struct lttng_event *ev,
- struct lttng_filter_bytecode *filter);
+ struct lttng_filter_bytecode *filter,
+ struct lttng_event_exclusion *exclusion);
struct ltt_ust_metadata *trace_ust_create_metadata(char *path);
struct ltt_ust_context *trace_ust_create_context(
struct lttng_event_context *ctx);
}
static inline
struct ltt_ust_event *trace_ust_create_event(struct lttng_event *ev,
- struct lttng_filter_bytecode *filter)
+ struct lttng_filter_bytecode *filter,
+ struct lttng_event_exclusion *exclusion)
{
return NULL;
}
ev.type = LTTNG_EVENT_TRACEPOINT;
ev.loglevel_type = LTTNG_EVENT_LOGLEVEL_ALL;
- event = trace_ust_create_event(&ev, NULL);
+ event = trace_ust_create_event(&ev, NULL, NULL);
ok(event != NULL, "Create UST event");