Commit | Line | Data |
---|---|---|
d4f53cc3 AB |
1 | #undef TRACEPOINT_PROVIDER |
2 | #define TRACEPOINT_PROVIDER my_provider | |
3 | ||
4 | #undef TRACEPOINT_INCLUDE | |
5 | #define TRACEPOINT_INCLUDE "./tp.h" | |
6 | ||
7 | #if !defined(_TP_H) || defined(TRACEPOINT_HEADER_MULTI_READ) | |
8 | #define _TP_H | |
9 | ||
10 | #include <lttng/tracepoint.h> | |
11 | ||
12 | TRACEPOINT_EVENT( | |
13 | my_provider, | |
14 | my_first_tracepoint, | |
15 | TP_ARGS( | |
16 | int, my_integer_arg, | |
17 | char*, my_string_arg | |
18 | ), | |
19 | TP_FIELDS( | |
20 | ctf_string(my_string_field, my_string_arg) | |
21 | ctf_integer(int, my_integer_field, my_integer_arg) | |
22 | ) | |
23 | ) | |
24 | ||
25 | #endif /* _TP_H */ | |
26 | ||
27 | #include <lttng/tracepoint-event.h> |