X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fagent.h;h=949c0d1d47ff79727c1e77b4e895018dcf6d67cc;hb=19a97244f801504a7985eee1b4ecca933f660b4a;hp=b94ceb0b9ef968c908179f4210bb2d48f04ce469;hpb=d53e29925aa0ec35fe27a3419aecc011b2393733;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/agent.h b/src/bin/lttng-sessiond/agent.h index b94ceb0b9..949c0d1d4 100644 --- a/src/bin/lttng-sessiond/agent.h +++ b/src/bin/lttng-sessiond/agent.h @@ -36,7 +36,8 @@ extern struct lttng_ht *agent_apps_ht_by_sock; struct agent_ht_key { const char *name; - int loglevel; + int loglevel_value; + enum lttng_loglevel_type loglevel_type; }; /* @@ -80,7 +81,7 @@ struct agent_app { struct agent_event { /* Name of the event. */ char name[LTTNG_SYMBOL_NAME_LEN]; - int loglevel; + int loglevel_value; enum lttng_loglevel_type loglevel_type; /* @@ -91,9 +92,10 @@ struct agent_event { /* Hash table node of the agent domain object. */ struct lttng_ht_node_str node; - /* Bytecode filter associated with the event . NULL if none. */ - char *filter_expression; + /* Filter associated with the event. NULL if none. */ struct lttng_filter_bytecode *filter; + char *filter_expression; + struct lttng_event_exclusion *exclusion; }; /* @@ -131,10 +133,13 @@ void agent_add(struct agent *agt, struct lttng_ht *ht); /* Agent event API. */ struct agent_event *agent_create_event(const char *name, - struct lttng_filter_bytecode *filter); + enum lttng_loglevel_type loglevel_type, int loglevel_value, + struct lttng_filter_bytecode *filter, + char *filter_expression); void agent_add_event(struct agent_event *event, struct agent *agt); -struct agent_event *agent_find_event(const char *name, int loglevel, +struct agent_event *agent_find_event(const char *name, + enum lttng_loglevel_type loglevel_type, int loglevel_value, struct agent *agt); struct agent_event *agent_find_event_by_name(const char *name, struct agent *agt);