2 * SPDX-License-Identifier: MIT
4 * Copyright 2020 (C) Francis Deslauriers <francis.deslauriers@efficios.com>
7 #ifndef _LTTNG_UST_CONTEXT_INTERNAL_H
8 #define _LTTNG_UST_CONTEXT_INTERNAL_H
10 #include <lttng/ust-events.h>
11 #include "ust-helper.h"
14 int lttng_context_init_all(struct lttng_ctx
**ctx
);
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
);
22 int lttng_find_context(struct lttng_ctx
*ctx
, const char *name
);
24 int lttng_get_context_index(struct lttng_ctx
*ctx
, const char *name
);
26 struct lttng_ctx_field
*lttng_append_context(struct lttng_ctx
**ctx_p
);
28 void lttng_context_update(struct lttng_ctx
*ctx
);
30 void lttng_remove_context_field(struct lttng_ctx
**ctx_p
,
31 struct lttng_ctx_field
*field
);
33 void lttng_destroy_context(struct lttng_ctx
*ctx
);
36 int lttng_context_add_rcu(struct lttng_ctx
**ctx_p
,
37 const struct lttng_ctx_field
*f
);
40 int lttng_context_is_app(const char *name
);
43 void lttng_context_vtid_reset(void);
45 void lttng_context_vpid_reset(void);
47 void lttng_context_cgroup_ns_reset(void);
49 void lttng_context_ipc_ns_reset(void);
51 void lttng_context_mnt_ns_reset(void);
53 void lttng_context_net_ns_reset(void);
55 void lttng_context_pid_ns_reset(void);
57 void lttng_context_user_ns_reset(void);
59 void lttng_context_uts_ns_reset(void);
61 void lttng_context_time_ns_reset(void);
63 void lttng_context_vuid_reset(void);
65 void lttng_context_veuid_reset(void);
67 void lttng_context_vsuid_reset(void);
69 void lttng_context_vgid_reset(void);
71 void lttng_context_vegid_reset(void);
73 void lttng_context_vsgid_reset(void);
76 int lttng_add_vtid_to_ctx(struct lttng_ctx
**ctx
);
78 int lttng_add_vpid_to_ctx(struct lttng_ctx
**ctx
);
80 int lttng_add_pthread_id_to_ctx(struct lttng_ctx
**ctx
);
82 int lttng_add_procname_to_ctx(struct lttng_ctx
**ctx
);
84 int lttng_add_ip_to_ctx(struct lttng_ctx
**ctx
);
86 int lttng_add_cpu_id_to_ctx(struct lttng_ctx
**ctx
);
88 int lttng_add_dyntest_to_ctx(struct lttng_ctx
**ctx
);
90 int lttng_add_cgroup_ns_to_ctx(struct lttng_ctx
**ctx
);
92 int lttng_add_ipc_ns_to_ctx(struct lttng_ctx
**ctx
);
94 int lttng_add_mnt_ns_to_ctx(struct lttng_ctx
**ctx
);
96 int lttng_add_net_ns_to_ctx(struct lttng_ctx
**ctx
);
98 int lttng_add_pid_ns_to_ctx(struct lttng_ctx
**ctx
);
100 int lttng_add_user_ns_to_ctx(struct lttng_ctx
**ctx
);
102 int lttng_add_uts_ns_to_ctx(struct lttng_ctx
**ctx
);
104 int lttng_add_time_ns_to_ctx(struct lttng_ctx
**ctx
);
106 int lttng_add_vuid_to_ctx(struct lttng_ctx
**ctx
);
108 int lttng_add_veuid_to_ctx(struct lttng_ctx
**ctx
);
110 int lttng_add_vsuid_to_ctx(struct lttng_ctx
**ctx
);
112 int lttng_add_vgid_to_ctx(struct lttng_ctx
**ctx
);
114 int lttng_add_vegid_to_ctx(struct lttng_ctx
**ctx
);
116 int lttng_add_vsgid_to_ctx(struct lttng_ctx
**ctx
);
118 #endif /* _LTTNG_UST_CONTEXT_INTERNAL_H */
This page took 0.03599 seconds and 4 git commands to generate.