Tests: Introduce gen-ust-events-constructor test application
[lttng-tools.git] / tests / utils / testapp / gen-ust-events-constructor / tp-so.h
1 /*
2 * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
3 *
4 * SPDX-License-Identifier: MIT
5 *
6 */
7
8 #undef TRACEPOINT_PROVIDER
9 #define TRACEPOINT_PROVIDER tp_so
10
11 #if !defined(_TRACEPOINT_TP_SO_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
12 #define _TRACEPOINT_TP_SO_H
13
14 #include <lttng/tracepoint.h>
15
16 #include <stdint.h>
17
18 TRACEPOINT_EVENT(tp_so, constructor_c_provider_shared_library, TP_ARGS(), TP_FIELDS())
19
20 TRACEPOINT_EVENT(tp_so, destructor_c_provider_shared_library, TP_ARGS(), TP_FIELDS())
21
22 TRACEPOINT_EVENT(tp_so,
23 constructor_cplusplus_provider_shared_library,
24 TP_ARGS(const char *, msg),
25 TP_FIELDS(ctf_string(msg, msg)))
26
27 TRACEPOINT_EVENT(tp_so,
28 destructor_cplusplus_provider_shared_library,
29 TP_ARGS(const char *, msg),
30 TP_FIELDS(ctf_string(msg, msg)))
31
32 #endif /* _TRACEPOINT_TP_SO_H */
33
34 #undef TRACEPOINT_INCLUDE
35 #define TRACEPOINT_INCLUDE "./tp-so.h"
36
37 /* This part must be outside ifdef protection */
38 #include <lttng/tracepoint-event.h>
This page took 0.029832 seconds and 4 git commands to generate.