Implement array and sequence bitfields
[lttng-modules.git] / instrumentation / events / lttng-module / lttng-test.h
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
7 #include "../../../probes/lttng-tracepoint-event.h"
8 #include <linux/types.h>
9 #include <linux/version.h>
10
11 LTTNG_TRACEPOINT_EVENT(lttng_test_filter_event,
12 TP_PROTO(int anint, int netint, long *values,
13 char *text, size_t textlen,
14 char *etext),
15 TP_ARGS(anint, netint, values, text, textlen, etext),
16 TP_FIELDS(
17 ctf_integer(int, intfield, anint)
18 ctf_integer_hex(int, intfield2, anint)
19 ctf_integer(long, longfield, anint)
20 ctf_integer_network(int, netintfield, netint)
21 ctf_integer_network_hex(int, netintfieldhex, netint)
22 ctf_array(long, arrfield1, values, 3)
23 ctf_array_text(char, arrfield2, text, 10)
24 ctf_sequence(char, seqfield1, text, size_t, textlen)
25 ctf_sequence_text(char, seqfield2, text, size_t, textlen)
26 ctf_string(stringfield, text)
27 ctf_string(stringfield2, etext)
28 ctf_sequence_bitfield(long, bitfield_seq, values, uint8_t, 3)
29 ctf_array_bitfield(long, bitfield_array, values, 3)
30 )
31 )
32
33 #endif /* LTTNG_TRACE_LTTNG_TEST_H */
34
35 /* This part must be outside protection */
36 #include "../../../probes/define_trace.h"
This page took 0.029925 seconds and 4 git commands to generate.