SoW-2020-0003: Trace Hit Counters
[lttng-tools.git] / src / bin / lttng-sessiond / event.h
CommitLineData
54d01ffb 1/*
ab5be9fa 2 * Copyright (C) 2011 David Goulet <david.goulet@polymtl.ca>
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
54d01ffb 11#include "trace-kernel.h"
ebdb334b 12#include "trace-ust.h"
54d01ffb 13
7c1d2758
JG
14struct agent;
15
d0ae4ea8 16int event_kernel_disable_event(struct ltt_kernel_channel *kchan,
df4f5a87 17 const char *event_name, enum lttng_event_type event_type);
7a3d1328 18
d0ae4ea8 19int event_kernel_enable_event(struct ltt_kernel_channel *kchan,
00a62084 20 struct lttng_event *event, char *filter_expression,
2b00d462 21 struct lttng_bytecode *filter);
54d01ffb 22
ebdb334b
JR
23int map_event_kernel_disable_event(struct ltt_kernel_map *kmap,
24 uint64_t action_tracer_token);
25
26int map_event_kernel_enable_event(struct ltt_kernel_map *kmap,
27 const struct lttng_credentials *creds,
28 uint64_t tracer_token,
29 const struct lttng_event_rule *event_rule,
30 struct lttng_map_key *key);
31
7972aab2 32int event_ust_enable_tracepoint(struct ltt_ust_session *usess,
025faf73 33 struct ltt_ust_channel *uchan, struct lttng_event *event,
6b453b5e 34 char *filter_expression,
2b00d462 35 struct lttng_bytecode *filter,
88f06f15
JG
36 struct lttng_event_exclusion *exclusion,
37 bool internal_event);
ebdb334b
JR
38
39enum lttng_error_code map_event_ust_enable_tracepoint(
40 struct ltt_ust_session *usess,
41 struct ltt_ust_map *umap,
42 uint64_t tracer_token,
43 char *ev_name,
44 struct lttng_map_key *key,
45 enum lttng_event_type ev_type,
46 enum lttng_loglevel_type ev_loglevel_type,
47 int ev_loglevel_value,
48 char *filter_expression,
49 struct lttng_bytecode *filter,
50 struct lttng_event_exclusion *exclusion,
51 bool internal_event);
52
7972aab2 53int event_ust_disable_tracepoint(struct ltt_ust_session *usess,
df4f5a87 54 struct ltt_ust_channel *uchan, const char *event_name);
6e911cad 55
ebdb334b
JR
56enum lttng_error_code map_event_ust_disable_tracepoint(
57 struct ltt_ust_session *usess,
58 struct ltt_ust_map *umap,
59 uint64_t tracer_token,
60 char *ev_name,
61 struct lttng_map_key *key,
62 enum lttng_event_type ev_type,
63 enum lttng_loglevel_type ev_loglevel_type,
64 int ev_loglevel_value,
65 char *filter_expression,
66 struct lttng_bytecode *filter,
67 struct lttng_event_exclusion *exclusion,
68 bool internal_event);
69
b1e7fe2d
JR
70int event_ust_disable_all_tracepoints(struct ltt_ust_session *usess,
71 struct ltt_ust_channel *uchan);
72
ebdb334b
JR
73int map_event_ust_disable_all_tracepoints(struct ltt_ust_session *usess,
74 struct ltt_ust_map *umap);
75
fefd409b 76int event_agent_enable(struct ltt_ust_session *usess, struct agent *agt,
2b00d462 77 struct lttng_event *event, struct lttng_bytecode *filter,
8404118c 78 char *filter_expression);
fefd409b 79int event_agent_enable_all(struct ltt_ust_session *usess, struct agent *agt,
2b00d462 80 struct lttng_event *event, struct lttng_bytecode *filter,
8404118c 81 char *filter_expression);
f20baf8e 82
fefd409b 83int event_agent_disable(struct ltt_ust_session *usess, struct agent *agt,
df4f5a87 84 const char *event_name);
fefd409b 85int event_agent_disable_all(struct ltt_ust_session *usess, struct agent *agt);
f20baf8e 86
44760c20
JR
87int trigger_agent_enable(
88 const struct lttng_trigger *trigger, struct agent *agt);
89int trigger_agent_disable(
90 const struct lttng_trigger *trigger, struct agent *agt);
91
da6c3a50
DG
92const char *event_get_default_agent_ust_name(enum lttng_domain_type domain);
93
54d01ffb 94#endif /* _LTT_EVENT_H */
This page took 0.085075 seconds and 5 git commands to generate.