Commit | Line | Data |
---|---|---|
c01dcd34 | 1 | /* |
0235b0db | 2 | * SPDX-License-Identifier: MIT |
c01dcd34 | 3 | * |
0235b0db | 4 | * Copyright (C) 2016 Antoine Busque <antoine.busque@efficios.com> |
c01dcd34 | 5 | * |
0235b0db | 6 | * Debug Info - Tests |
c01dcd34 AB |
7 | */ |
8 | ||
9 | #undef TRACEPOINT_PROVIDER | |
10 | #define TRACEPOINT_PROVIDER my_provider | |
11 | ||
12 | #undef TRACEPOINT_INCLUDE | |
13 | #define TRACEPOINT_INCLUDE "./tp.h" | |
14 | ||
15 | #if !defined(_TP_H) || defined(TRACEPOINT_HEADER_MULTI_READ) | |
16 | #define _TP_H | |
17 | ||
18 | #include <lttng/tracepoint.h> | |
19 | ||
20 | TRACEPOINT_EVENT( | |
21 | my_provider, | |
22 | my_first_tracepoint, | |
23 | TP_ARGS( | |
24 | int, my_integer_arg, | |
25 | char*, my_string_arg | |
26 | ), | |
27 | TP_FIELDS( | |
28 | ctf_string(my_string_field, my_string_arg) | |
29 | ctf_integer(int, my_integer_field, my_integer_arg) | |
30 | ) | |
31 | ) | |
32 | ||
33 | TRACEPOINT_EVENT( | |
34 | my_provider, | |
35 | my_other_tracepoint, | |
36 | TP_ARGS( | |
37 | int, my_int | |
38 | ), | |
39 | TP_FIELDS( | |
40 | ctf_integer(int, some_field, my_int) | |
41 | ) | |
42 | ) | |
43 | ||
44 | #endif /* _TP_H */ | |
45 | ||
46 | #include <lttng/tracepoint-event.h> |