Hide or namespace the remaining tracepoint internal symbols
[lttng-ust.git] / liblttng-ust / tracepoint-internal.h
... / ...
CommitLineData
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#include "ust-helper.h"
15
16#define TRACE_DEFAULT TRACE_DEBUG_LINE
17
18struct tracepoint_lib {
19 struct cds_list_head list; /* list of registered libs */
20 struct lttng_ust_tracepoint * const *tracepoints_start;
21 int tracepoints_count;
22 struct cds_list_head callsites;
23};
24
25LTTNG_HIDDEN
26int tracepoint_probe_register_noupdate(const char *name,
27 void (*callback)(void), void *priv,
28 const char *signature);
29
30LTTNG_HIDDEN
31int tracepoint_probe_unregister_noupdate(const char *name,
32 void (*callback)(void), void *priv);
33LTTNG_HIDDEN
34void tracepoint_probe_update_all(void);
35
36void *lttng_ust_tp_check_weak_hidden1(void);
37void *lttng_ust_tp_check_weak_hidden2(void);
38void *lttng_ust_tp_check_weak_hidden3(void);
39
40/*
41 * These symbols are ABI between liblttng-ust-tracepoint and liblttng-ust,
42 * which is why they are not hidden and not part of the public API.
43 */
44int lttng_ust_tp_probe_register_queue_release(const char *name,
45 void (*func)(void), void *data, const char *signature);
46int lttng_ust_tp_probe_unregister_queue_release(const char *name,
47 void (*func)(void), void *data);
48void lttng_ust_tp_probe_prune_release_queue(void);
49
50void lttng_ust_tp_init(void);
51void lttng_ust_tp_exit(void);
52
53
54#endif /* _LTTNG_TRACEPOINT_INTERNAL_H */
This page took 0.032886 seconds and 4 git commands to generate.