Commit | Line | Data |
---|---|---|
54d01ffb | 1 | /* |
21cf9b6b | 2 | * Copyright (C) 2011 EfficiOS Inc. |
54d01ffb | 3 | * |
ab5be9fa | 4 | * SPDX-License-Identifier: GPL-2.0-only |
54d01ffb | 5 | * |
54d01ffb DG |
6 | */ |
7 | ||
8 | #ifndef _LTT_EVENT_H | |
9 | #define _LTT_EVENT_H | |
10 | ||
c9e313bc | 11 | #include "trace-kernel.hpp" |
54d01ffb | 12 | |
7c1d2758 JG |
13 | struct agent; |
14 | ||
d0ae4ea8 | 15 | int event_kernel_disable_event(struct ltt_kernel_channel *kchan, |
28f23191 JG |
16 | const char *event_name, |
17 | enum lttng_event_type event_type); | |
7a3d1328 | 18 | |
d0ae4ea8 | 19 | int event_kernel_enable_event(struct ltt_kernel_channel *kchan, |
28f23191 JG |
20 | struct lttng_event *event, |
21 | char *filter_expression, | |
22 | struct lttng_bytecode *filter); | |
54d01ffb | 23 | |
7972aab2 | 24 | int event_ust_enable_tracepoint(struct ltt_ust_session *usess, |
28f23191 JG |
25 | struct ltt_ust_channel *uchan, |
26 | struct lttng_event *event, | |
27 | char *filter_expression, | |
28 | struct lttng_bytecode *filter, | |
29 | struct lttng_event_exclusion *exclusion, | |
30 | bool internal_event); | |
7972aab2 | 31 | int event_ust_disable_tracepoint(struct ltt_ust_session *usess, |
28f23191 JG |
32 | struct ltt_ust_channel *uchan, |
33 | const char *event_name); | |
34 | ||
35 | int event_ust_disable_all_tracepoints(struct ltt_ust_session *usess, struct ltt_ust_channel *uchan); | |
36 | ||
37 | int event_agent_enable(struct ltt_ust_session *usess, | |
38 | struct agent *agt, | |
39 | struct lttng_event *event, | |
40 | struct lttng_bytecode *filter, | |
41 | char *filter_expression); | |
42 | int event_agent_enable_all(struct ltt_ust_session *usess, | |
43 | struct agent *agt, | |
44 | struct lttng_event *event, | |
45 | struct lttng_bytecode *filter, | |
46 | char *filter_expression); | |
47 | ||
48 | int event_agent_disable(struct ltt_ust_session *usess, struct agent *agt, const char *event_name); | |
fefd409b | 49 | int event_agent_disable_all(struct ltt_ust_session *usess, struct agent *agt); |
f20baf8e | 50 | |
28f23191 JG |
51 | int trigger_agent_enable(const struct lttng_trigger *trigger, struct agent *agt); |
52 | int trigger_agent_disable(const struct lttng_trigger *trigger, struct agent *agt); | |
44760c20 | 53 | |
da6c3a50 DG |
54 | const char *event_get_default_agent_ust_name(enum lttng_domain_type domain); |
55 | ||
54d01ffb | 56 | #endif /* _LTT_EVENT_H */ |