)
)
+TRACEPOINT_ENUM(ust_tests_td, testenum3,
+ TP_ENUM_VALUES(
+ ctf_enum_auto("zero")
+ ctf_enum_value("two", 2)
+ ctf_enum_auto("three")
+ ctf_enum_range("ten_to_twenty", 10, 20)
+ ctf_enum_auto("twenty_one")
+ )
+)
+
/*
* Enumeration field is used twice to make sure the global type declaration
* is entered only once in the metadata file.
)
)
+/*
+ * Test autoincrementing enumeration values.
+ */
+TRACEPOINT_EVENT(ust_tests_td, test_auto,
+ TP_ARGS(void),
+ TP_FIELDS(
+ ctf_enum(ust_tests_td, testenum3, int, zero, 0)
+ ctf_enum(ust_tests_td, testenum3, int, two, 2)
+ ctf_enum(ust_tests_td, testenum3, int, three, 3)
+ ctf_enum(ust_tests_td, testenum3, int, fifteen, 15)
+ ctf_enum(ust_tests_td, testenum3, int, twenty_one, 21)
+ )
+)
+
#endif /* _TRACEPOINT_UST_TESTS_TD_H */
#undef TRACEPOINT_INCLUDE