Test: add signed value and enum for testings of event notifier capture
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Thu, 21 May 2020 13:45:25 +0000 (09:45 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 18 Nov 2020 17:55:42 +0000 (12:55 -0500)
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I4be725e3ed1e2f94420f4cdcf5ab6ac7962e2464

include/instrumentation/events/lttng-test.h

index 7d2b1f7c53f75deaa20b9ef7b29939215608bafb..eda5d9fe170478c984533067504ca5a3dce3e27c 100644 (file)
@@ -18,6 +18,7 @@ LTTNG_TRACEPOINT_ENUM(
                ctf_enum_auto("AUTO: EXPECT 28")
                ctf_enum_range("RANGE: 101 TO 303", 101, 303)
                ctf_enum_auto("AUTO: EXPECT 304")
+               ctf_enum_value("VALUE: -1", -1)
        )
 )
 
@@ -30,6 +31,7 @@ LTTNG_TRACEPOINT_EVENT(lttng_test_filter_event,
                ctf_integer(int, intfield, anint)
                ctf_integer_hex(int, intfield2, anint)
                ctf_integer(long, longfield, anint)
+               ctf_integer(int, signedfield, -1)
                ctf_integer_network(int, netintfield, netint)
                ctf_integer_network_hex(int, netintfieldhex, netint)
                ctf_array(long, arrfield1, values, 3)
@@ -49,6 +51,7 @@ LTTNG_TRACEPOINT_EVENT(lttng_test_filter_event,
                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)
+               ctf_enum(lttng_test_filter_event_enum, int, enumnegative, -1)
        )
 )
 
This page took 0.026048 seconds and 4 git commands to generate.