Commit | Line | Data |
---|---|---|
89406ecd MD |
1 | #undef TRACE_SYSTEM |
2 | #define TRACE_SYSTEM lttng_test | |
3 | ||
4 | #if !defined(LTTNG_TRACE_LTTNG_TEST_H) || defined(TRACE_HEADER_MULTI_READ) | |
5 | #define LTTNG_TRACE_LTTNG_TEST_H | |
6 | ||
6ec43db8 | 7 | #include <probes/lttng-tracepoint-event.h> |
89406ecd MD |
8 | #include <linux/types.h> |
9 | #include <linux/version.h> | |
10 | ||
0292e7f2 PP |
11 | LTTNG_TRACEPOINT_ENUM( |
12 | lttng_test_filter_event_enum, | |
13 | TP_ENUM_VALUES( | |
14 | ctf_enum_auto("AUTO: EXPECT 0") | |
15 | ctf_enum_value("VALUE: 23", 23) | |
16 | ctf_enum_value("VALUE: 27", 27) | |
17 | ctf_enum_auto("AUTO: EXPECT 28") | |
18 | ctf_enum_range("RANGE: 101 TO 303", 101, 303) | |
19 | ctf_enum_auto("AUTO: EXPECT 304") | |
20 | ) | |
21 | ) | |
22 | ||
89406ecd MD |
23 | LTTNG_TRACEPOINT_EVENT(lttng_test_filter_event, |
24 | TP_PROTO(int anint, int netint, long *values, | |
25 | char *text, size_t textlen, | |
26 | char *etext), | |
27 | TP_ARGS(anint, netint, values, text, textlen, etext), | |
28 | TP_FIELDS( | |
29 | ctf_integer(int, intfield, anint) | |
30 | ctf_integer_hex(int, intfield2, anint) | |
31 | ctf_integer(long, longfield, anint) | |
32 | ctf_integer_network(int, netintfield, netint) | |
33 | ctf_integer_network_hex(int, netintfieldhex, netint) | |
34 | ctf_array(long, arrfield1, values, 3) | |
35 | ctf_array_text(char, arrfield2, text, 10) | |
36 | ctf_sequence(char, seqfield1, text, size_t, textlen) | |
37 | ctf_sequence_text(char, seqfield2, text, size_t, textlen) | |
38 | ctf_string(stringfield, text) | |
39 | ctf_string(stringfield2, etext) | |
43803cf2 MD |
40 | ctf_sequence_bitfield(long, bitfield_seq, values, uint8_t, 3) |
41 | ctf_array_bitfield(long, bitfield_array, values, 3) | |
0292e7f2 PP |
42 | ctf_enum(lttng_test_filter_event_enum, int, enum0, 0) |
43 | ctf_enum(lttng_test_filter_event_enum, int, enum23, 23) | |
44 | ctf_enum(lttng_test_filter_event_enum, int, enum27, 27) | |
45 | ctf_enum(lttng_test_filter_event_enum, int, enum28, 28) | |
46 | ctf_enum(lttng_test_filter_event_enum, int, enum202, 202) | |
47 | ctf_enum(lttng_test_filter_event_enum, int, enum304, 304) | |
89406ecd MD |
48 | ) |
49 | ) | |
50 | ||
51 | #endif /* LTTNG_TRACE_LTTNG_TEST_H */ | |
52 | ||
53 | /* This part must be outside protection */ | |
6ec43db8 | 54 | #include <probes/define_trace.h> |