#include <lttng/tracepoint.h>
+TRACEPOINT_LOGLEVEL_ENUM(
+ tp_loglevel(critical, 0)
+ tp_loglevel(warning, 1)
+ tp_loglevel(debug, 2)
+)
+
TRACEPOINT_EVENT(ust_tests_demo, loop,
TP_ARGS(int, anint, int, netint, long *, values,
char *, text, size_t, textlen,
ctf_float(double, doublefield, doublearg)
)
)
+TRACEPOINT_LOGLEVEL(ust_tests_demo, loop, debug)
TRACEPOINT_EVENT(ust_tests_demo, starting,
TP_ARGS(int, value),
ctf_integer(int, value, value)
)
)
+TRACEPOINT_LOGLEVEL(ust_tests_demo, starting, critical)
TRACEPOINT_EVENT(ust_tests_demo, done,
TP_ARGS(int, value),
ctf_integer(int, value, value)
)
)
+TRACEPOINT_LOGLEVEL(ust_tests_demo, done, critical)
#endif /* _TRACEPOINT_UST_TESTS_DEMO_H */