Move to kernel style SPDX license identifiers
[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#define TRACE_DEFAULT TRACE_DEBUG_LINE
15
16struct 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
23extern int tracepoint_probe_register_noupdate(const char *name,
24 void (*callback)(void), void *priv,
25 const char *signature);
26extern int tracepoint_probe_unregister_noupdate(const char *name,
27 void (*callback)(void), void *priv);
28extern void tracepoint_probe_update_all(void);
29extern int __tracepoint_probe_register_queue_release(const char *name,
30 void (*func)(void), void *data, const char *signature);
31extern int __tracepoint_probe_unregister_queue_release(const char *name,
32 void (*func)(void), void *data);
33extern void __tracepoint_probe_prune_release_queue(void);
34
35void lttng_ust_synchronize_trace(void);
36
37/*
38 * call after disconnection of last probe implemented within a
39 * shared object before unmapping the library that contains the probe.
40 */
41static inline void tracepoint_synchronize_unregister(void)
42{
43 lttng_ust_synchronize_trace();
44}
45
46extern void init_tracepoint(void);
47extern void exit_tracepoint(void);
48
49void *lttng_ust_tp_check_weak_hidden1(void);
50void *lttng_ust_tp_check_weak_hidden2(void);
51void *lttng_ust_tp_check_weak_hidden3(void);
52
53#endif /* _LTTNG_TRACEPOINT_INTERNAL_H */
This page took 0.033071 seconds and 4 git commands to generate.