Commit | Line | Data |
---|---|---|
9d16b343 MJ |
1 | /* |
2 | * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | |
3 | * | |
4 | * SPDX-License-Identifier: MIT | |
5 | * | |
6 | */ | |
7 | ||
e72d66a6 DG |
8 | #undef TRACEPOINT_PROVIDER |
9 | #define TRACEPOINT_PROVIDER tp | |
10 | ||
11 | #if !defined(_TRACEPOINT_TP_H) || defined(TRACEPOINT_HEADER_MULTI_READ) | |
12 | #define _TRACEPOINT_TP_H | |
13 | ||
e72d66a6 DG |
14 | #include <lttng/tracepoint.h> |
15 | ||
16 | TRACEPOINT_EVENT(tp, tptest, | |
17 | TP_ARGS(int, anint, int, netint, long *, values, | |
18 | char *, text, size_t, textlen, double, doublearg, float, floatarg), | |
19 | TP_FIELDS( | |
20 | ctf_integer(int, intfield, anint) | |
21 | ctf_integer_hex(int, intfield2, anint) | |
22 | ctf_integer(long, longfield, anint) | |
23 | ctf_integer_network(int, netintfield, netint) | |
24 | ctf_integer_network_hex(int, netintfieldhex, netint) | |
25 | ctf_array(long, arrfield1, values, 3) | |
26 | ctf_array_text(char, arrfield2, text, 10) | |
27 | ctf_sequence(char, seqfield1, text, size_t, textlen) | |
28 | ctf_sequence_text(char, seqfield2, text, size_t, textlen) | |
29 | ctf_string(stringfield, text) | |
30 | ctf_float(float, floatfield, floatarg) | |
31 | ctf_float(double, doublefield, doublearg) | |
32 | ) | |
33 | ) | |
34 | ||
e72d66a6 DG |
35 | #endif /* _TRACEPOINT_TP_H */ |
36 | ||
37 | #undef TRACEPOINT_INCLUDE_FILE | |
38 | #define TRACEPOINT_INCLUDE_FILE ./tp.h | |
39 | ||
40 | /* This part must be outside ifdef protection */ | |
41 | #include <lttng/tracepoint-event.h> |