| 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, |
| 20 | my_event, |
| 21 | TP_ARGS(int, iteration), |
| 22 | TP_FIELDS(ctf_integer(uint64_t, iteration, iteration))) |
| 23 | |
| 24 | #endif /* _TRACEPOINT_TRIGGER_EXAMPLE_H */ |
| 25 | |
| 26 | #include <lttng/tracepoint-event.h> |