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, |
df4f5a87 | 16 | const char *event_name, enum lttng_event_type event_type); |
7a3d1328 | 17 | |
d0ae4ea8 | 18 | int event_kernel_enable_event(struct ltt_kernel_channel *kchan, |
00a62084 | 19 | struct lttng_event *event, char *filter_expression, |
2b00d462 | 20 | struct lttng_bytecode *filter); |
54d01ffb | 21 | |
7972aab2 | 22 | int event_ust_enable_tracepoint(struct ltt_ust_session *usess, |
025faf73 | 23 | struct ltt_ust_channel *uchan, struct lttng_event *event, |
6b453b5e | 24 | char *filter_expression, |
2b00d462 | 25 | struct lttng_bytecode *filter, |
88f06f15 JG |
26 | struct lttng_event_exclusion *exclusion, |
27 | bool internal_event); | |
7972aab2 | 28 | int event_ust_disable_tracepoint(struct ltt_ust_session *usess, |
df4f5a87 | 29 | struct ltt_ust_channel *uchan, const char *event_name); |
6e911cad | 30 | |
b1e7fe2d JR |
31 | int event_ust_disable_all_tracepoints(struct ltt_ust_session *usess, |
32 | struct ltt_ust_channel *uchan); | |
33 | ||
fefd409b | 34 | int event_agent_enable(struct ltt_ust_session *usess, struct agent *agt, |
2b00d462 | 35 | struct lttng_event *event, struct lttng_bytecode *filter, |
8404118c | 36 | char *filter_expression); |
fefd409b | 37 | int event_agent_enable_all(struct ltt_ust_session *usess, struct agent *agt, |
2b00d462 | 38 | struct lttng_event *event, struct lttng_bytecode *filter, |
8404118c | 39 | char *filter_expression); |
f20baf8e | 40 | |
fefd409b | 41 | int event_agent_disable(struct ltt_ust_session *usess, struct agent *agt, |
df4f5a87 | 42 | const char *event_name); |
fefd409b | 43 | int event_agent_disable_all(struct ltt_ust_session *usess, struct agent *agt); |
f20baf8e | 44 | |
44760c20 JR |
45 | int trigger_agent_enable( |
46 | const struct lttng_trigger *trigger, struct agent *agt); | |
47 | int trigger_agent_disable( | |
48 | const struct lttng_trigger *trigger, struct agent *agt); | |
49 | ||
da6c3a50 DG |
50 | const char *event_get_default_agent_ust_name(enum lttng_domain_type domain); |
51 | ||
54d01ffb | 52 | #endif /* _LTT_EVENT_H */ |