Remove LTTNG_HIDDEN macro
[lttng-ust.git] / liblttng-ust / tracepoint-internal.h
1 /*
2 * SPDX-License-Identifier: LGPL-2.1-only
3 *
4 * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
5 */
6
7 #ifndef _LTTNG_TRACEPOINT_INTERNAL_H
8 #define _LTTNG_TRACEPOINT_INTERNAL_H
9
10 #include <urcu/list.h>
11 #include <lttng/tracepoint-types.h>
12 #include <lttng/ust-events.h>
13
14 #define TRACE_DEFAULT TRACE_DEBUG_LINE
15
16 struct tracepoint_lib {
17 struct cds_list_head list; /* list of registered libs */
18 struct lttng_ust_tracepoint * const *tracepoints_start;
19 int tracepoints_count;
20 struct cds_list_head callsites;
21 };
22
23 __attribute__((visibility("hidden")))
24 int tracepoint_probe_register_noupdate(const char *name,
25 void (*callback)(void), void *priv,
26 const char *signature);
27
28 __attribute__((visibility("hidden")))
29 int tracepoint_probe_unregister_noupdate(const char *name,
30 void (*callback)(void), void *priv);
31
32 __attribute__((visibility("hidden")))
33 void tracepoint_probe_update_all(void);
34
35
36 __attribute__((visibility("hidden")))
37 void *lttng_ust_tp_check_weak_hidden1(void);
38
39 __attribute__((visibility("hidden")))
40 void *lttng_ust_tp_check_weak_hidden2(void);
41
42 __attribute__((visibility("hidden")))
43 void *lttng_ust_tp_check_weak_hidden3(void);
44
45 /*
46 * These symbols are ABI between liblttng-ust-tracepoint and liblttng-ust,
47 * which is why they are not hidden and not part of the public API.
48 */
49 int lttng_ust_tp_probe_register_queue_release(const char *name,
50 void (*func)(void), void *data, const char *signature);
51 int lttng_ust_tp_probe_unregister_queue_release(const char *name,
52 void (*func)(void), void *data);
53 void lttng_ust_tp_probe_prune_release_queue(void);
54
55 void lttng_ust_tp_init(void);
56 void lttng_ust_tp_exit(void);
57
58
59 #endif /* _LTTNG_TRACEPOINT_INTERNAL_H */
This page took 0.045445 seconds and 5 git commands to generate.