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