Move to kernel style SPDX license identifiers
[lttng-ust.git] / doc / examples / demo / ust_tests_demo.h
1 /*
2 * SPDX-License-Identifier: MIT
3 *
4 * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
5 */
6
7 #undef TRACEPOINT_PROVIDER
8 #define TRACEPOINT_PROVIDER ust_tests_demo
9
10 #if !defined(_TRACEPOINT_UST_TESTS_DEMO_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
11 #define _TRACEPOINT_UST_TESTS_DEMO_H
12
13 #include <lttng/tracepoint.h>
14
15 TRACEPOINT_EVENT(ust_tests_demo, starting,
16 TP_ARGS(int, value),
17 TP_FIELDS(
18 ctf_integer(int, value, value)
19 )
20 )
21 TRACEPOINT_LOGLEVEL(ust_tests_demo, starting, TRACE_CRIT)
22
23 /*
24 * Dummy model information, just for example. TODO: we should check if
25 * EMF model URI have some standard format we should follow.
26 */
27 TRACEPOINT_MODEL_EMF_URI(ust_tests_demo, starting,
28 "http://example.com/path_to_model?q=ust_tests_demo:starting")
29
30 TRACEPOINT_EVENT(ust_tests_demo, done,
31 TP_ARGS(int, value),
32 TP_FIELDS(
33 ctf_integer(int, value, value)
34 )
35 )
36 TRACEPOINT_LOGLEVEL(ust_tests_demo, done, TRACE_CRIT)
37
38 TRACEPOINT_MODEL_EMF_URI(ust_tests_demo, done,
39 "http://example.com/path_to_model?q=ust_tests_demo:done")
40
41 #endif /* _TRACEPOINT_UST_TESTS_DEMO_H */
42
43 #undef TRACEPOINT_INCLUDE
44 #define TRACEPOINT_INCLUDE "./ust_tests_demo.h"
45
46 /* This part must be outside ifdef protection */
47 #include <lttng/tracepoint-event.h>
This page took 0.030359 seconds and 4 git commands to generate.