2 * SPDX-License-Identifier: MIT
4 * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
7 #undef TRACEPOINT_PROVIDER
8 #define TRACEPOINT_PROVIDER ust_tests_demo
10 #if !defined(_TRACEPOINT_UST_TESTS_DEMO_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
11 #define _TRACEPOINT_UST_TESTS_DEMO_H
13 #include <lttng/tracepoint.h>
15 LTTNG_UST_TRACEPOINT_EVENT(ust_tests_demo
, starting
,
16 LTTNG_UST_TP_ARGS(int, value
),
18 ctf_integer(int, value
, value
)
21 LTTNG_UST_TRACEPOINT_LOGLEVEL(ust_tests_demo
, starting
, LTTNG_UST_TRACEPOINT_LOGLEVEL_CRIT
)
24 * Dummy model information, just for example. TODO: we should check if
25 * EMF model URI have some standard format we should follow.
27 LTTNG_UST_TRACEPOINT_MODEL_EMF_URI(ust_tests_demo
, starting
,
28 "http://example.com/path_to_model?q=ust_tests_demo:starting")
30 LTTNG_UST_TRACEPOINT_EVENT(ust_tests_demo
, done
,
31 LTTNG_UST_TP_ARGS(int, value
),
33 ctf_integer(int, value
, value
)
36 LTTNG_UST_TRACEPOINT_LOGLEVEL(ust_tests_demo
, done
, LTTNG_UST_TRACEPOINT_LOGLEVEL_CRIT
)
38 LTTNG_UST_TRACEPOINT_MODEL_EMF_URI(ust_tests_demo
, done
,
39 "http://example.com/path_to_model?q=ust_tests_demo:done")
41 #endif /* _TRACEPOINT_UST_TESTS_DEMO_H */
43 #undef TRACEPOINT_INCLUDE
44 #define TRACEPOINT_INCLUDE "./ust_tests_demo.h"
46 /* This part must be outside ifdef protection */
47 #include <lttng/tracepoint-event.h>