#define _LTT_EVENT_H
#include "trace-kernel.h"
+#include "trace-ust.h"
struct agent;
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);