Hide private context utils symbols
[lttng-ust.git] / liblttng-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 "ust-helper.h"
12
13 LTTNG_HIDDEN
14 int lttng_context_init_all(struct lttng_ctx **ctx);
15
16 LTTNG_HIDDEN
17 int lttng_attach_context(struct lttng_ust_context *context_param,
18 union ust_args *uargs,
19 struct lttng_ctx **ctx, struct lttng_session *session);
20
21 LTTNG_HIDDEN
22 int lttng_find_context(struct lttng_ctx *ctx, const char *name);
23 LTTNG_HIDDEN
24 int lttng_get_context_index(struct lttng_ctx *ctx, const char *name);
25 LTTNG_HIDDEN
26 struct lttng_ctx_field *lttng_append_context(struct lttng_ctx **ctx_p);
27 LTTNG_HIDDEN
28 void lttng_context_update(struct lttng_ctx *ctx);
29 LTTNG_HIDDEN
30 void lttng_remove_context_field(struct lttng_ctx **ctx_p,
31 struct lttng_ctx_field *field);
32 LTTNG_HIDDEN
33 void lttng_destroy_context(struct lttng_ctx *ctx);
34
35 LTTNG_HIDDEN
36 int lttng_context_add_rcu(struct lttng_ctx **ctx_p,
37 const struct lttng_ctx_field *f);
38
39 LTTNG_HIDDEN
40 int lttng_context_is_app(const char *name);
41
42 LTTNG_HIDDEN
43 void lttng_context_vtid_reset(void);
44 LTTNG_HIDDEN
45 void lttng_context_vpid_reset(void);
46 LTTNG_HIDDEN
47 void lttng_context_cgroup_ns_reset(void);
48 LTTNG_HIDDEN
49 void lttng_context_ipc_ns_reset(void);
50 LTTNG_HIDDEN
51 void lttng_context_mnt_ns_reset(void);
52 LTTNG_HIDDEN
53 void lttng_context_net_ns_reset(void);
54 LTTNG_HIDDEN
55 void lttng_context_pid_ns_reset(void);
56 LTTNG_HIDDEN
57 void lttng_context_user_ns_reset(void);
58 LTTNG_HIDDEN
59 void lttng_context_uts_ns_reset(void);
60 LTTNG_HIDDEN
61 void lttng_context_time_ns_reset(void);
62 LTTNG_HIDDEN
63 void lttng_context_vuid_reset(void);
64 LTTNG_HIDDEN
65 void lttng_context_veuid_reset(void);
66 LTTNG_HIDDEN
67 void lttng_context_vsuid_reset(void);
68 LTTNG_HIDDEN
69 void lttng_context_vgid_reset(void);
70 LTTNG_HIDDEN
71 void lttng_context_vegid_reset(void);
72 LTTNG_HIDDEN
73 void lttng_context_vsgid_reset(void);
74
75 LTTNG_HIDDEN
76 int lttng_add_vtid_to_ctx(struct lttng_ctx **ctx);
77 LTTNG_HIDDEN
78 int lttng_add_vpid_to_ctx(struct lttng_ctx **ctx);
79 LTTNG_HIDDEN
80 int lttng_add_pthread_id_to_ctx(struct lttng_ctx **ctx);
81 LTTNG_HIDDEN
82 int lttng_add_procname_to_ctx(struct lttng_ctx **ctx);
83 LTTNG_HIDDEN
84 int lttng_add_ip_to_ctx(struct lttng_ctx **ctx);
85 LTTNG_HIDDEN
86 int lttng_add_cpu_id_to_ctx(struct lttng_ctx **ctx);
87 LTTNG_HIDDEN
88 int lttng_add_dyntest_to_ctx(struct lttng_ctx **ctx);
89 LTTNG_HIDDEN
90 int lttng_add_cgroup_ns_to_ctx(struct lttng_ctx **ctx);
91 LTTNG_HIDDEN
92 int lttng_add_ipc_ns_to_ctx(struct lttng_ctx **ctx);
93 LTTNG_HIDDEN
94 int lttng_add_mnt_ns_to_ctx(struct lttng_ctx **ctx);
95 LTTNG_HIDDEN
96 int lttng_add_net_ns_to_ctx(struct lttng_ctx **ctx);
97 LTTNG_HIDDEN
98 int lttng_add_pid_ns_to_ctx(struct lttng_ctx **ctx);
99 LTTNG_HIDDEN
100 int lttng_add_user_ns_to_ctx(struct lttng_ctx **ctx);
101 LTTNG_HIDDEN
102 int lttng_add_uts_ns_to_ctx(struct lttng_ctx **ctx);
103 LTTNG_HIDDEN
104 int lttng_add_time_ns_to_ctx(struct lttng_ctx **ctx);
105 LTTNG_HIDDEN
106 int lttng_add_vuid_to_ctx(struct lttng_ctx **ctx);
107 LTTNG_HIDDEN
108 int lttng_add_veuid_to_ctx(struct lttng_ctx **ctx);
109 LTTNG_HIDDEN
110 int lttng_add_vsuid_to_ctx(struct lttng_ctx **ctx);
111 LTTNG_HIDDEN
112 int lttng_add_vgid_to_ctx(struct lttng_ctx **ctx);
113 LTTNG_HIDDEN
114 int lttng_add_vegid_to_ctx(struct lttng_ctx **ctx);
115 LTTNG_HIDDEN
116 int lttng_add_vsgid_to_ctx(struct lttng_ctx **ctx);
117
118 #endif /* _LTTNG_UST_CONTEXT_INTERNAL_H */
This page took 0.03369 seconds and 5 git commands to generate.