Fix: event notification capture error handling
[lttng-ust.git] / src / lib / lttng-ust / context-internal.h
1 /*
2 * SPDX-License-Identifier: MIT
3 *
4 * Copyright 2020 (C) Francis Deslauriers <francis.deslauriers@efficios.com>
5 */
6
7 #ifndef _LTTNG_UST_CONTEXT_INTERNAL_H
8 #define _LTTNG_UST_CONTEXT_INTERNAL_H
9
10 #include <lttng/ust-events.h>
11 #include "lib/lttng-ust/events.h"
12 #include "common/ust-context-provider.h"
13
14 int lttng_context_init_all(struct lttng_ust_ctx **ctx)
15 __attribute__((visibility("hidden")));
16
17 int lttng_attach_context(struct lttng_ust_abi_context *context_param,
18 union lttng_ust_abi_args *uargs,
19 struct lttng_ust_ctx **ctx, struct lttng_ust_session *session)
20 __attribute__((visibility("hidden")));
21
22 int lttng_find_context(struct lttng_ust_ctx *ctx, const char *name)
23 __attribute__((visibility("hidden")));
24
25 int lttng_get_context_index(struct lttng_ust_ctx *ctx, const char *name)
26 __attribute__((visibility("hidden")));
27
28 void lttng_destroy_context(struct lttng_ust_ctx *ctx)
29 __attribute__((visibility("hidden")));
30
31 int lttng_ust_context_append_rcu(struct lttng_ust_ctx **ctx_p,
32 const struct lttng_ust_ctx_field *f)
33 __attribute__((visibility("hidden")));
34
35 int lttng_ust_context_append(struct lttng_ust_ctx **ctx_p,
36 const struct lttng_ust_ctx_field *f)
37 __attribute__((visibility("hidden")));
38
39 void lttng_context_vtid_reset(void)
40 __attribute__((visibility("hidden")));
41
42 void lttng_context_vpid_reset(void)
43 __attribute__((visibility("hidden")));
44
45 void lttng_context_cgroup_ns_reset(void)
46 __attribute__((visibility("hidden")));
47
48 void lttng_context_ipc_ns_reset(void)
49 __attribute__((visibility("hidden")));
50
51 void lttng_context_mnt_ns_reset(void)
52 __attribute__((visibility("hidden")));
53
54 void lttng_context_net_ns_reset(void)
55 __attribute__((visibility("hidden")));
56
57 void lttng_context_pid_ns_reset(void)
58 __attribute__((visibility("hidden")));
59
60 void lttng_context_user_ns_reset(void)
61 __attribute__((visibility("hidden")));
62
63 void lttng_context_uts_ns_reset(void)
64 __attribute__((visibility("hidden")));
65
66 void lttng_context_time_ns_reset(void)
67 __attribute__((visibility("hidden")));
68
69 void lttng_context_vuid_reset(void)
70 __attribute__((visibility("hidden")));
71
72 void lttng_context_veuid_reset(void)
73 __attribute__((visibility("hidden")));
74
75 void lttng_context_vsuid_reset(void)
76 __attribute__((visibility("hidden")));
77
78 void lttng_context_vgid_reset(void)
79 __attribute__((visibility("hidden")));
80
81 void lttng_context_vegid_reset(void)
82 __attribute__((visibility("hidden")));
83
84 void lttng_context_vsgid_reset(void)
85 __attribute__((visibility("hidden")));
86
87 int lttng_add_vtid_to_ctx(struct lttng_ust_ctx **ctx)
88 __attribute__((visibility("hidden")));
89
90 int lttng_add_vpid_to_ctx(struct lttng_ust_ctx **ctx)
91 __attribute__((visibility("hidden")));
92
93 int lttng_add_pthread_id_to_ctx(struct lttng_ust_ctx **ctx)
94 __attribute__((visibility("hidden")));
95
96 int lttng_add_procname_to_ctx(struct lttng_ust_ctx **ctx)
97 __attribute__((visibility("hidden")));
98
99 int lttng_add_ip_to_ctx(struct lttng_ust_ctx **ctx)
100 __attribute__((visibility("hidden")));
101
102 int lttng_add_cpu_id_to_ctx(struct lttng_ust_ctx **ctx)
103 __attribute__((visibility("hidden")));
104
105 int lttng_add_dyntest_to_ctx(struct lttng_ust_ctx **ctx)
106 __attribute__((visibility("hidden")));
107
108 int lttng_add_cgroup_ns_to_ctx(struct lttng_ust_ctx **ctx)
109 __attribute__((visibility("hidden")));
110
111 int lttng_add_ipc_ns_to_ctx(struct lttng_ust_ctx **ctx)
112 __attribute__((visibility("hidden")));
113
114 int lttng_add_mnt_ns_to_ctx(struct lttng_ust_ctx **ctx)
115 __attribute__((visibility("hidden")));
116
117 int lttng_add_net_ns_to_ctx(struct lttng_ust_ctx **ctx)
118 __attribute__((visibility("hidden")));
119
120 int lttng_add_pid_ns_to_ctx(struct lttng_ust_ctx **ctx)
121 __attribute__((visibility("hidden")));
122
123 int lttng_add_user_ns_to_ctx(struct lttng_ust_ctx **ctx)
124 __attribute__((visibility("hidden")));
125
126 int lttng_add_uts_ns_to_ctx(struct lttng_ust_ctx **ctx)
127 __attribute__((visibility("hidden")));
128
129 int lttng_add_time_ns_to_ctx(struct lttng_ust_ctx **ctx)
130 __attribute__((visibility("hidden")));
131
132 int lttng_add_vuid_to_ctx(struct lttng_ust_ctx **ctx)
133 __attribute__((visibility("hidden")));
134
135 int lttng_add_veuid_to_ctx(struct lttng_ust_ctx **ctx)
136 __attribute__((visibility("hidden")));
137
138 int lttng_add_vsuid_to_ctx(struct lttng_ust_ctx **ctx)
139 __attribute__((visibility("hidden")));
140
141 int lttng_add_vgid_to_ctx(struct lttng_ust_ctx **ctx)
142 __attribute__((visibility("hidden")));
143
144 int lttng_add_vegid_to_ctx(struct lttng_ust_ctx **ctx)
145 __attribute__((visibility("hidden")));
146
147 int lttng_add_vsgid_to_ctx(struct lttng_ust_ctx **ctx)
148 __attribute__((visibility("hidden")));
149
150 #endif /* _LTTNG_UST_CONTEXT_INTERNAL_H */
This page took 0.038549 seconds and 4 git commands to generate.