Commit | Line | Data |
---|---|---|
2463b787 JR |
1 | /* |
2 | * Copyright (C) 2020 Jérémie Galarneau <jeremie.galarneau@efficios.com> | |
3 | * | |
4 | * SPDX-License-Identifier: MIT | |
5 | * | |
6 | */ | |
7 | ||
8 | #undef TRACEPOINT_PROVIDER | |
9 | #define TRACEPOINT_PROVIDER trigger_example | |
10 | ||
11 | #undef TRACEPOINT_INCLUDE | |
12 | #define TRACEPOINT_INCLUDE "./tracepoint-trigger-example.h" | |
13 | ||
14 | #if !defined(_TRACEPOINT_TRIGGER_EXAMPLE_H) || defined(TRACEPOINT_HEADER_MULTI_READ) | |
15 | #define _TRACEPOINT_TRIGGER_EXAMPLE_H | |
16 | ||
17 | #include <lttng/tracepoint.h> | |
18 | ||
19 | TRACEPOINT_EVENT(trigger_example, my_event, | |
20 | TP_ARGS(int, iteration), | |
21 | TP_FIELDS( | |
22 | ctf_integer(uint64_t, iteration, iteration) | |
23 | ) | |
24 | ) | |
25 | ||
26 | #endif /* _TRACEPOINT_TRIGGER_EXAMPLE_H */ | |
27 | ||
28 | #include <lttng/tracepoint-event.h> |