Commit | Line | Data |
---|---|---|
c0c0989a MJ |
1 | /* |
2 | * SPDX-License-Identifier: MIT | |
3 | * | |
4 | * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | |
5 | */ | |
6 | ||
6b79f035 MD |
7 | #undef TRACEPOINT_PROVIDER |
8 | #define TRACEPOINT_PROVIDER ust_tests_hello | |
9 | ||
10 | #if !defined(_TRACEPOINT_UST_TESTS_HELLO_H) || defined(TRACEPOINT_HEADER_MULTI_READ) | |
11 | #define _TRACEPOINT_UST_TESTS_HELLO_H | |
12 | ||
6b79f035 | 13 | #include <lttng/tracepoint.h> |
b4051ad8 | 14 | #include <stddef.h> |
6b79f035 | 15 | |
95526f2d PP |
16 | TRACEPOINT_ENUM(ust_tests_hello, my_enum, |
17 | TP_ENUM_VALUES( | |
18 | ctf_enum_value("zero", 0) | |
19 | ctf_enum_value("one", 1) | |
152ba282 | 20 | ctf_enum_auto("two") |
95526f2d PP |
21 | ctf_enum_value("three", 3) |
22 | ctf_enum_range("ten to twenty", 10, 20) | |
152ba282 | 23 | ctf_enum_auto("21!") |
95526f2d PP |
24 | ) |
25 | ) | |
26 | ||
6b79f035 MD |
27 | TRACEPOINT_EVENT(ust_tests_hello, tptest, |
28 | TP_ARGS(int, anint, int, netint, long *, values, | |
29 | char *, text, size_t, textlen, | |
95526f2d PP |
30 | double, doublearg, float, floatarg, |
31 | int, enumarg), | |
6b79f035 MD |
32 | TP_FIELDS( |
33 | ctf_integer(int, intfield, anint) | |
34 | ctf_integer_hex(int, intfield2, anint) | |
35 | ctf_integer(long, longfield, anint) | |
36 | ctf_integer_network(int, netintfield, netint) | |
37 | ctf_integer_network_hex(int, netintfieldhex, netint) | |
38 | ctf_array(long, arrfield1, values, 3) | |
39 | ctf_array_text(char, arrfield2, text, 10) | |
40 | ctf_sequence(char, seqfield1, text, | |
41 | size_t, textlen) | |
42 | ctf_sequence_text(char, seqfield2, text, | |
43 | size_t, textlen) | |
44 | ctf_string(stringfield, text) | |
45 | ctf_float(float, floatfield, floatarg) | |
46 | ctf_float(double, doublefield, doublearg) | |
95526f2d | 47 | ctf_enum(ust_tests_hello, my_enum, int, enumfield, enumarg) |
6b79f035 MD |
48 | ) |
49 | ) | |
50 | ||
51 | TRACEPOINT_EVENT(ust_tests_hello, tptest_sighandler, | |
52 | TP_ARGS(), | |
53 | TP_FIELDS() | |
54 | ) | |
55 | ||
56 | #endif /* _TRACEPOINT_UST_TESTS_HELLO_H */ | |
57 | ||
9a6b7d22 MD |
58 | #undef TRACEPOINT_INCLUDE |
59 | #define TRACEPOINT_INCLUDE "./ust_tests_hello.h" | |
6b79f035 MD |
60 | |
61 | /* This part must be outside ifdef protection */ | |
62 | #include <lttng/tracepoint-event.h> |