X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fevent.hpp;fp=src%2Fbin%2Flttng-sessiond%2Fevent.hpp;h=efc4ad5d07b3547197542551e5c3ae6244dd1c0e;hp=0000000000000000000000000000000000000000;hb=c9e313bc594f40a86eed237dce222c0fc99c957f;hpb=4878de5c7deb512bbdac4fdfc498907efa06fb7c diff --git a/src/bin/lttng-sessiond/event.hpp b/src/bin/lttng-sessiond/event.hpp new file mode 100644 index 000000000..efc4ad5d0 --- /dev/null +++ b/src/bin/lttng-sessiond/event.hpp @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2011 EfficiOS Inc. + * + * SPDX-License-Identifier: GPL-2.0-only + * + */ + +#ifndef _LTT_EVENT_H +#define _LTT_EVENT_H + +#include "trace-kernel.hpp" + +struct agent; + +int event_kernel_disable_event(struct ltt_kernel_channel *kchan, + const char *event_name, enum lttng_event_type event_type); + +int event_kernel_enable_event(struct ltt_kernel_channel *kchan, + struct lttng_event *event, char *filter_expression, + struct lttng_bytecode *filter); + +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); +int event_ust_disable_tracepoint(struct ltt_ust_session *usess, + struct ltt_ust_channel *uchan, const char *event_name); + +int event_ust_disable_all_tracepoints(struct ltt_ust_session *usess, + struct ltt_ust_channel *uchan); + +int event_agent_enable(struct ltt_ust_session *usess, struct agent *agt, + struct lttng_event *event, struct lttng_bytecode *filter, + char *filter_expression); +int event_agent_enable_all(struct ltt_ust_session *usess, struct agent *agt, + struct lttng_event *event, struct lttng_bytecode *filter, + char *filter_expression); + +int event_agent_disable(struct ltt_ust_session *usess, struct agent *agt, + const char *event_name); +int event_agent_disable_all(struct ltt_ust_session *usess, struct agent *agt); + +int trigger_agent_enable( + const struct lttng_trigger *trigger, struct agent *agt); +int trigger_agent_disable( + const struct lttng_trigger *trigger, struct agent *agt); + +const char *event_get_default_agent_ust_name(enum lttng_domain_type domain); + +#endif /* _LTT_EVENT_H */