2 * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
4 * SPDX-License-Identifier: MIT
8 #undef TRACEPOINT_PROVIDER
9 #define TRACEPOINT_PROVIDER tp_so
11 #if !defined(_TRACEPOINT_TP_SO_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
12 #define _TRACEPOINT_TP_SO_H
14 #include <lttng/tracepoint.h>
18 TRACEPOINT_EVENT(tp_so
, constructor_c_provider_shared_library
, TP_ARGS(), TP_FIELDS())
20 TRACEPOINT_EVENT(tp_so
, destructor_c_provider_shared_library
, TP_ARGS(), TP_FIELDS())
22 TRACEPOINT_EVENT(tp_so
,
23 constructor_cplusplus_provider_shared_library
,
24 TP_ARGS(const char *, msg
),
25 TP_FIELDS(ctf_string(msg
, msg
)))
27 TRACEPOINT_EVENT(tp_so
,
28 destructor_cplusplus_provider_shared_library
,
29 TP_ARGS(const char *, msg
),
30 TP_FIELDS(ctf_string(msg
, msg
)))
32 #endif /* _TRACEPOINT_TP_SO_H */
34 #undef TRACEPOINT_INCLUDE
35 #define TRACEPOINT_INCLUDE "./tp-so.h"
37 /* This part must be outside ifdef protection */
38 #include <lttng/tracepoint-event.h>