| 1 | #undef TRACEPOINT_PROVIDER |
| 2 | #define TRACEPOINT_PROVIDER tp |
| 3 | |
| 4 | #if !defined(_TRACEPOINT_TP_H) || defined(TRACEPOINT_HEADER_MULTI_READ) |
| 5 | #define _TRACEPOINT_TP_H |
| 6 | |
| 7 | /* |
| 8 | * Copyright (C) 2017 Philippe Proulx <pproulx@efficios.com> |
| 9 | * |
| 10 | * SPDX-License-Identifier: LGPL-2.1-only |
| 11 | * |
| 12 | */ |
| 13 | |
| 14 | #include <lttng/tracepoint.h> |
| 15 | |
| 16 | TRACEPOINT_EVENT(tp, the_string, |
| 17 | TP_ARGS( |
| 18 | int, i, |
| 19 | int, arg_i, |
| 20 | const char *, str |
| 21 | ), |
| 22 | TP_FIELDS( |
| 23 | ctf_integer(int, i, i) |
| 24 | ctf_integer(long, arg_i, arg_i) |
| 25 | ctf_string(str, str) |
| 26 | ) |
| 27 | ) |
| 28 | |
| 29 | #endif /* _TRACEPOINT_TP_H */ |
| 30 | |
| 31 | #undef TRACEPOINT_INCLUDE |
| 32 | #define TRACEPOINT_INCLUDE "./tp.h" |
| 33 | |
| 34 | /* This part must be outside ifdef protection */ |
| 35 | #include <lttng/tracepoint-event.h> |