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