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