cleanup: function attribute 'hidden'
[lttng-ust.git] / liblttng-ust / lttng-tracer-core.h
1 /*
2 * SPDX-License-Identifier: LGPL-2.1-only
3 *
4 * Copyright (C) 2005-2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
5 *
6 * This contains the core definitions for the Linux Trace Toolkit.
7 */
8
9 #ifndef _LTTNG_TRACER_CORE_H
10 #define _LTTNG_TRACER_CORE_H
11
12 #include <stddef.h>
13 #include <urcu/arch.h>
14 #include <urcu/list.h>
15 #include <lttng/ust-tracer.h>
16 #include <lttng/ringbuffer-context.h>
17 #include <usterr-signal-safe.h>
18
19 /*
20 * The longuest possible namespace proc path is with the cgroup ns
21 * and the maximum theoretical linux pid of 536870912 :
22 *
23 * /proc/self/task/536870912/ns/cgroup
24 */
25 #define LTTNG_PROC_NS_PATH_MAX 40
26
27 struct lttng_ust_session;
28 struct lttng_ust_channel_buffer;
29 struct lttng_ust_ctx_field;
30 struct lttng_ust_lib_ring_buffer_ctx;
31 struct lttng_ust_ctx_value;
32 struct lttng_ust_event_recorder;
33 struct lttng_ust_event_notifier;
34 struct lttng_ust_notification_ctx;
35
36 int ust_lock(void) __attribute__ ((warn_unused_result))
37 __attribute__((visibility("hidden")));
38
39 void ust_lock_nocheck(void)
40 __attribute__((visibility("hidden")));
41
42 void ust_unlock(void)
43 __attribute__((visibility("hidden")));
44
45 void lttng_ust_fixup_tls(void)
46 __attribute__((visibility("hidden")));
47
48 void lttng_fixup_event_tls(void)
49 __attribute__((visibility("hidden")));
50
51 void lttng_fixup_vtid_tls(void)
52 __attribute__((visibility("hidden")));
53
54 void lttng_fixup_procname_tls(void)
55 __attribute__((visibility("hidden")));
56
57 void lttng_fixup_cgroup_ns_tls(void)
58 __attribute__((visibility("hidden")));
59
60 void lttng_fixup_ipc_ns_tls(void)
61 __attribute__((visibility("hidden")));
62
63 void lttng_fixup_net_ns_tls(void)
64 __attribute__((visibility("hidden")));
65
66 void lttng_fixup_time_ns_tls(void)
67 __attribute__((visibility("hidden")));
68
69 void lttng_fixup_uts_ns_tls(void)
70 __attribute__((visibility("hidden")));
71
72 void lttng_ust_fixup_fd_tracker_tls(void)
73 __attribute__((visibility("hidden")));
74
75 const char *lttng_ust_obj_get_name(int id)
76 __attribute__((visibility("hidden")));
77
78 int lttng_get_notify_socket(void *owner)
79 __attribute__((visibility("hidden")));
80
81 char* lttng_ust_sockinfo_get_procname(void *owner)
82 __attribute__((visibility("hidden")));
83
84 void lttng_ust_sockinfo_session_enabled(void *owner)
85 __attribute__((visibility("hidden")));
86
87 ssize_t lttng_ust_read(int fd, void *buf, size_t len)
88 __attribute__((visibility("hidden")));
89
90 size_t lttng_ust_dummy_get_size(struct lttng_ust_ctx_field *field, size_t offset)
91 __attribute__((visibility("hidden")));
92
93 void lttng_ust_dummy_record(struct lttng_ust_ctx_field *field,
94 struct lttng_ust_lib_ring_buffer_ctx *ctx,
95 struct lttng_ust_channel_buffer *chan)
96 __attribute__((visibility("hidden")));
97
98 void lttng_ust_dummy_get_value(struct lttng_ust_ctx_field *field,
99 struct lttng_ust_ctx_value *value)
100 __attribute__((visibility("hidden")));
101
102 void lttng_event_notifier_notification_send(
103 struct lttng_ust_event_notifier *event_notifier,
104 const char *stack_data,
105 struct lttng_ust_notification_ctx *notif_ctx)
106 __attribute__((visibility("hidden")));
107
108 struct lttng_counter_transport *lttng_counter_transport_find(const char *name)
109 __attribute__((visibility("hidden")));
110
111 void lttng_counter_transport_register(struct lttng_counter_transport *transport)
112 __attribute__((visibility("hidden")));
113
114 void lttng_counter_transport_unregister(struct lttng_counter_transport *transport)
115 __attribute__((visibility("hidden")));
116
117 #ifdef HAVE_LINUX_PERF_EVENT_H
118 void lttng_ust_fixup_perf_counter_tls(void)
119 __attribute__((visibility("hidden")));
120
121 void lttng_perf_lock(void)
122 __attribute__((visibility("hidden")));
123
124 void lttng_perf_unlock(void)
125 __attribute__((visibility("hidden")));
126 #else /* #ifdef HAVE_LINUX_PERF_EVENT_H */
127 static inline
128 void lttng_ust_fixup_perf_counter_tls(void)
129 {
130 }
131 static inline
132 void lttng_perf_lock(void)
133 {
134 }
135 static inline
136 void lttng_perf_unlock(void)
137 {
138 }
139 #endif /* #else #ifdef HAVE_LINUX_PERF_EVENT_H */
140
141 #endif /* _LTTNG_TRACER_CORE_H */
This page took 0.032795 seconds and 5 git commands to generate.