Commit | Line | Data |
---|---|---|
5400d18f PP |
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 | * This library is free software; you can redistribute it and/or modify it | |
11 | * under the terms of the GNU Lesser General Public License as published by the | |
12 | * Free Software Foundation; version 2.1 of the License. | |
13 | * | |
14 | * This library is distributed in the hope that it will be useful, but WITHOUT | |
15 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
16 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License | |
17 | * for more details. | |
18 | * | |
19 | * You should have received a copy of the GNU Lesser General Public License | |
20 | * along with this library; if not, write to the Free Software Foundation, | |
21 | * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | |
22 | */ | |
23 | ||
24 | #include <lttng/tracepoint.h> | |
25 | ||
26 | TRACEPOINT_EVENT(tp, the_string, | |
27 | TP_ARGS( | |
28 | int, i, | |
29 | int, arg_i, | |
30 | const char *, str | |
31 | ), | |
32 | TP_FIELDS( | |
33 | ctf_integer(int, i, i) | |
34 | ctf_integer(long, arg_i, arg_i) | |
35 | ctf_string(str, str) | |
36 | ) | |
37 | ) | |
38 | ||
39 | #endif /* _TRACEPOINT_TP_H */ | |
40 | ||
41 | #undef TRACEPOINT_INCLUDE_FILE | |
42 | #define TRACEPOINT_INCLUDE_FILE ./tp.h | |
43 | ||
44 | /* This part must be outside ifdef protection */ | |
45 | #include <lttng/tracepoint-event.h> |