2 * Copyright (C) 2011 David Goulet <david.goulet@polymtl.ca>
4 * SPDX-License-Identifier: GPL-2.0-only
11 #include "trace-kernel.h"
15 int event_kernel_disable_event(struct ltt_kernel_channel
*kchan
,
16 const char *event_name
, enum lttng_event_type event_type
);
18 int event_kernel_enable_event(struct ltt_kernel_channel
*kchan
,
19 struct lttng_event
*event
, char *filter_expression
,
20 struct lttng_bytecode
*filter
);
22 int event_ust_enable_tracepoint(struct ltt_ust_session
*usess
,
23 struct ltt_ust_channel
*uchan
, struct lttng_event
*event
,
24 char *filter_expression
,
25 struct lttng_bytecode
*filter
,
26 struct lttng_event_exclusion
*exclusion
,
28 int event_ust_disable_tracepoint(struct ltt_ust_session
*usess
,
29 struct ltt_ust_channel
*uchan
, const char *event_name
);
31 int event_ust_disable_all_tracepoints(struct ltt_ust_session
*usess
,
32 struct ltt_ust_channel
*uchan
);
34 int event_agent_enable(struct ltt_ust_session
*usess
, struct agent
*agt
,
35 struct lttng_event
*event
, struct lttng_bytecode
*filter
,
36 char *filter_expression
);
37 int event_agent_enable_all(struct ltt_ust_session
*usess
, struct agent
*agt
,
38 struct lttng_event
*event
, struct lttng_bytecode
*filter
,
39 char *filter_expression
);
41 int event_agent_disable(struct ltt_ust_session
*usess
, struct agent
*agt
,
42 const char *event_name
);
43 int event_agent_disable_all(struct ltt_ust_session
*usess
, struct agent
*agt
);
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
);
50 const char *event_get_default_agent_ust_name(enum lttng_domain_type domain
);
52 #endif /* _LTT_EVENT_H */