Move context symbols to private header
[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 void lttng_context_vtid_reset(void);
37 LTTNG_HIDDEN
38 void lttng_context_vpid_reset(void);
39 LTTNG_HIDDEN
40 void lttng_context_cgroup_ns_reset(void);
41 LTTNG_HIDDEN
42 void lttng_context_ipc_ns_reset(void);
43 LTTNG_HIDDEN
44 void lttng_context_mnt_ns_reset(void);
45 LTTNG_HIDDEN
46 void lttng_context_net_ns_reset(void);
47 LTTNG_HIDDEN
48 void lttng_context_pid_ns_reset(void);
49 LTTNG_HIDDEN
50 void lttng_context_user_ns_reset(void);
51 LTTNG_HIDDEN
52 void lttng_context_uts_ns_reset(void);
53 LTTNG_HIDDEN
54 void lttng_context_time_ns_reset(void);
55 LTTNG_HIDDEN
56 void lttng_context_vuid_reset(void);
57 LTTNG_HIDDEN
58 void lttng_context_veuid_reset(void);
59 LTTNG_HIDDEN
60 void lttng_context_vsuid_reset(void);
61 LTTNG_HIDDEN
62 void lttng_context_vgid_reset(void);
63 LTTNG_HIDDEN
64 void lttng_context_vegid_reset(void);
65 LTTNG_HIDDEN
66 void lttng_context_vsgid_reset(void);
67
68 LTTNG_HIDDEN
69 int lttng_add_vtid_to_ctx(struct lttng_ctx **ctx);
70 LTTNG_HIDDEN
71 int lttng_add_vpid_to_ctx(struct lttng_ctx **ctx);
72 LTTNG_HIDDEN
73 int lttng_add_pthread_id_to_ctx(struct lttng_ctx **ctx);
74 LTTNG_HIDDEN
75 int lttng_add_procname_to_ctx(struct lttng_ctx **ctx);
76 LTTNG_HIDDEN
77 int lttng_add_ip_to_ctx(struct lttng_ctx **ctx);
78 LTTNG_HIDDEN
79 int lttng_add_cpu_id_to_ctx(struct lttng_ctx **ctx);
80 LTTNG_HIDDEN
81 int lttng_add_dyntest_to_ctx(struct lttng_ctx **ctx);
82 LTTNG_HIDDEN
83 int lttng_add_cgroup_ns_to_ctx(struct lttng_ctx **ctx);
84 LTTNG_HIDDEN
85 int lttng_add_ipc_ns_to_ctx(struct lttng_ctx **ctx);
86 LTTNG_HIDDEN
87 int lttng_add_mnt_ns_to_ctx(struct lttng_ctx **ctx);
88 LTTNG_HIDDEN
89 int lttng_add_net_ns_to_ctx(struct lttng_ctx **ctx);
90 LTTNG_HIDDEN
91 int lttng_add_pid_ns_to_ctx(struct lttng_ctx **ctx);
92 LTTNG_HIDDEN
93 int lttng_add_user_ns_to_ctx(struct lttng_ctx **ctx);
94 LTTNG_HIDDEN
95 int lttng_add_uts_ns_to_ctx(struct lttng_ctx **ctx);
96 LTTNG_HIDDEN
97 int lttng_add_time_ns_to_ctx(struct lttng_ctx **ctx);
98 LTTNG_HIDDEN
99 int lttng_add_vuid_to_ctx(struct lttng_ctx **ctx);
100 LTTNG_HIDDEN
101 int lttng_add_veuid_to_ctx(struct lttng_ctx **ctx);
102 LTTNG_HIDDEN
103 int lttng_add_vsuid_to_ctx(struct lttng_ctx **ctx);
104 LTTNG_HIDDEN
105 int lttng_add_vgid_to_ctx(struct lttng_ctx **ctx);
106 LTTNG_HIDDEN
107 int lttng_add_vegid_to_ctx(struct lttng_ctx **ctx);
108 LTTNG_HIDDEN
109 int lttng_add_vsgid_to_ctx(struct lttng_ctx **ctx);
110
111 #endif /* _LTTNG_UST_CONTEXT_INTERNAL_H */
This page took 0.032729 seconds and 5 git commands to generate.