SoW-2020-0002: Trace Hit Counters
[lttng-tools.git] / src / bin / lttng-sessiond / event.h
index 8849ee7ccc8ec2bec202dc6ea32c4c74f5ae089a..42b8fb7c2b5a594def195b91e1f191873bbce5bc 100644 (file)
@@ -9,6 +9,7 @@
 #define _LTT_EVENT_H
 
 #include "trace-kernel.h"
+#include "trace-ust.h"
 
 struct agent;
 
@@ -19,18 +20,59 @@ int event_kernel_enable_event(struct ltt_kernel_channel *kchan,
                struct lttng_event *event, char *filter_expression,
                struct lttng_bytecode *filter);
 
+int map_event_kernel_disable_event(struct ltt_kernel_map *kmap,
+               uint64_t action_tracer_token);
+
+int map_event_kernel_enable_event(struct ltt_kernel_map *kmap,
+               const struct lttng_credentials *creds,
+               uint64_t tracer_token,
+               const struct lttng_event_rule *event_rule,
+               struct lttng_map_key *key);
+
 int event_ust_enable_tracepoint(struct ltt_ust_session *usess,
                struct ltt_ust_channel *uchan, struct lttng_event *event,
                char *filter_expression,
                struct lttng_bytecode *filter,
                struct lttng_event_exclusion *exclusion,
                bool internal_event);
+
+enum lttng_error_code map_event_ust_enable_tracepoint(
+       struct ltt_ust_session *usess,
+               struct ltt_ust_map *umap,
+               uint64_t tracer_token,
+               char *ev_name,
+               struct lttng_map_key *key,
+               enum lttng_event_type ev_type,
+               enum lttng_loglevel_type ev_loglevel_type,
+               int ev_loglevel_value,
+               char *filter_expression,
+               struct lttng_bytecode *filter,
+               struct lttng_event_exclusion *exclusion,
+               bool internal_event);
+
 int event_ust_disable_tracepoint(struct ltt_ust_session *usess,
                struct ltt_ust_channel *uchan, const char *event_name);
 
+enum lttng_error_code map_event_ust_disable_tracepoint(
+               struct ltt_ust_session *usess,
+               struct ltt_ust_map *umap,
+               uint64_t tracer_token,
+               char *ev_name,
+               struct lttng_map_key *key,
+               enum lttng_event_type ev_type,
+               enum lttng_loglevel_type ev_loglevel_type,
+               int ev_loglevel_value,
+               char *filter_expression,
+               struct lttng_bytecode *filter,
+               struct lttng_event_exclusion *exclusion,
+               bool internal_event);
+
 int event_ust_disable_all_tracepoints(struct ltt_ust_session *usess,
                struct ltt_ust_channel *uchan);
 
+int map_event_ust_disable_all_tracepoints(struct ltt_ust_session *usess,
+               struct ltt_ust_map *umap);
+
 int event_agent_enable(struct ltt_ust_session *usess, struct agent *agt,
                struct lttng_event *event, struct lttng_bytecode *filter,
                char *filter_expression);
This page took 0.02573 seconds and 5 git commands to generate.