Remove runtime dependency on liburcu shared objects
[lttng-ust.git] / liblttng-ust / tracepoint-internal.h
CommitLineData
4ab44fbe
MD
1#ifndef _LTTNG_TRACEPOINT_INTERNAL_H
2#define _LTTNG_TRACEPOINT_INTERNAL_H
3
4/*
5 * Copyright (c) 2011 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation;
10 * version 2.1 of the License.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21
22#include <urcu/list.h>
23#include <lttng/tracepoint-types.h>
10544ee8 24#include <lttng/ust-events.h>
4ab44fbe 25
d8de1354
MD
26#define TRACE_DEFAULT TRACE_DEBUG_LINE
27
4ab44fbe 28struct tracepoint_lib {
3469bbbe 29 struct cds_list_head list; /* list of registered libs */
1a206094 30 struct lttng_ust_tracepoint * const *tracepoints_start;
4ab44fbe 31 int tracepoints_count;
3469bbbe 32 struct cds_list_head callsites;
4ab44fbe
MD
33};
34
67e5f391 35extern int tracepoint_probe_register_noupdate(const char *name,
fbdeb5ec 36 void (*callback)(void), void *priv,
67e5f391
MD
37 const char *signature);
38extern int tracepoint_probe_unregister_noupdate(const char *name,
fbdeb5ec 39 void (*callback)(void), void *priv);
23c8854a 40extern void tracepoint_probe_update_all(void);
baa1e0bc
MD
41extern int __tracepoint_probe_register_queue_release(const char *name,
42 void (*func)(void), void *data, const char *signature);
43extern int __tracepoint_probe_unregister_queue_release(const char *name,
44 void (*func)(void), void *data);
45extern void __tracepoint_probe_prune_release_queue(void);
4ab44fbe 46
10544ee8
MD
47void lttng_ust_synchronize_trace(void);
48
4ab44fbe
MD
49/*
50 * call after disconnection of last probe implemented within a
51 * shared object before unmapping the library that contains the probe.
52 */
53static inline void tracepoint_synchronize_unregister(void)
54{
10544ee8 55 lttng_ust_synchronize_trace();
4ab44fbe
MD
56}
57
58extern void init_tracepoint(void);
59extern void exit_tracepoint(void);
60
b0e63efd
MD
61void *lttng_ust_tp_check_weak_hidden1(void);
62void *lttng_ust_tp_check_weak_hidden2(void);
63void *lttng_ust_tp_check_weak_hidden3(void);
5517d34d 64
4ab44fbe 65#endif /* _LTTNG_TRACEPOINT_INTERNAL_H */
This page took 0.032448 seconds and 4 git commands to generate.