From: Philippe Proulx Date: Mon, 4 Jul 2016 19:29:11 +0000 (-0400) Subject: lttng-test probe: test ctf_enum_auto() X-Git-Tag: v2.9.0-rc1~46 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=0292e7f294eaeb5cbedded798fa0d9e68d8259dd;p=lttng-modules.git lttng-test probe: test ctf_enum_auto() Signed-off-by: Philippe Proulx Signed-off-by: Mathieu Desnoyers --- diff --git a/instrumentation/events/lttng-module/lttng-test.h b/instrumentation/events/lttng-module/lttng-test.h index b2461778..05d028ca 100644 --- a/instrumentation/events/lttng-module/lttng-test.h +++ b/instrumentation/events/lttng-module/lttng-test.h @@ -8,6 +8,18 @@ #include #include +LTTNG_TRACEPOINT_ENUM( + lttng_test_filter_event_enum, + TP_ENUM_VALUES( + ctf_enum_auto("AUTO: EXPECT 0") + ctf_enum_value("VALUE: 23", 23) + ctf_enum_value("VALUE: 27", 27) + ctf_enum_auto("AUTO: EXPECT 28") + ctf_enum_range("RANGE: 101 TO 303", 101, 303) + ctf_enum_auto("AUTO: EXPECT 304") + ) +) + LTTNG_TRACEPOINT_EVENT(lttng_test_filter_event, TP_PROTO(int anint, int netint, long *values, char *text, size_t textlen, @@ -27,6 +39,12 @@ LTTNG_TRACEPOINT_EVENT(lttng_test_filter_event, ctf_string(stringfield2, etext) ctf_sequence_bitfield(long, bitfield_seq, values, uint8_t, 3) ctf_array_bitfield(long, bitfield_array, values, 3) + ctf_enum(lttng_test_filter_event_enum, int, enum0, 0) + ctf_enum(lttng_test_filter_event_enum, int, enum23, 23) + ctf_enum(lttng_test_filter_event_enum, int, enum27, 27) + ctf_enum(lttng_test_filter_event_enum, int, enum28, 28) + ctf_enum(lttng_test_filter_event_enum, int, enum202, 202) + ctf_enum(lttng_test_filter_event_enum, int, enum304, 304) ) )