Allow weak binding from instrumented apps to liblttng-ust
[lttng-ust.git] / include / lttng / tracepoint-event.h
CommitLineData
8511626a
MD
1/*
2 * Copyright (c) 2011 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
3 *
4 * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
5 * OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
6 *
7 * Permission is hereby granted to use or copy this program
8 * for any purpose, provided the above notices are retained on all copies.
9 * Permission to modify the code and to distribute modified code is granted,
10 * provided the above notices are retained, and a notice that the code was
11 * modified is included with the above copyright notice.
12 */
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
18#ifdef TRACEPOINT_CREATE_PROBES
19
20#define __tp_stringify1(x) #x
21#define __tp_stringify(x) __tp_stringify1(x)
22
23#undef TRACEPOINT_EVENT_INSTANCE
deb6e540 24#define TRACEPOINT_EVENT_INSTANCE(_provider, _template, _name, _args)
8511626a
MD
25
26#undef TRACEPOINT_EVENT
27#define TRACEPOINT_EVENT(_provider, _name, _args, _fields) \
7f0aeeba
MD
28 TRACEPOINT_EVENT_CLASS(_provider, _name, _TP_PARAMS(_args), \
29 _TP_PARAMS(_fields)) \
30 TRACEPOINT_EVENT_INSTANCE(_provider, _name, _name, \
31 _TP_PARAMS(_args))
8511626a
MD
32
33#define TRACEPOINT_INCLUDE __tp_stringify(TRACEPOINT_INCLUDE_FILE)
34
35#undef TRACEPOINT_CREATE_PROBES
36
37#define TRACEPOINT_HEADER_MULTI_READ
38#include TRACEPOINT_INCLUDE
1c324e59
MD
39
40#include <lttng/ust-tracepoint-event.h>
41
8511626a
MD
42#undef TRACEPOINT_HEADER_MULTI_READ
43
44#define TRACEPOINT_CREATE_PROBES
45
46#endif /* TRACEPOINT_CREATE_PROBES */
47
48#ifdef __cplusplus
49}
50#endif
This page took 0.024588 seconds and 4 git commands to generate.