Commit | Line | Data |
---|---|---|
9d16b343 MJ |
1 | /* |
2 | * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | |
3 | * | |
4 | * SPDX-License-Identifier: MIT | |
5 | * | |
6 | */ | |
7 | ||
26b53d3b DG |
8 | #undef TRACEPOINT_PROVIDER |
9 | #define TRACEPOINT_PROVIDER ust_tests_demo | |
10 | ||
11 | #if !defined(_TRACEPOINT_UST_TESTS_DEMO_H) || defined(TRACEPOINT_HEADER_MULTI_READ) | |
12 | #define _TRACEPOINT_UST_TESTS_DEMO_H | |
13 | ||
26b53d3b DG |
14 | #include <lttng/tracepoint.h> |
15 | ||
28f23191 JG |
16 | TRACEPOINT_EVENT(ust_tests_demo, |
17 | starting, | |
18 | TP_ARGS(int, value), | |
19 | TP_FIELDS(ctf_integer(int, value, value))) | |
26b53d3b DG |
20 | TRACEPOINT_LOGLEVEL(ust_tests_demo, starting, TRACE_CRIT) |
21 | ||
22 | /* | |
23 | * Dummy model information, just for example. TODO: we should check if | |
24 | * EMF model URI have some standard format we should follow. | |
25 | */ | |
28f23191 JG |
26 | TRACEPOINT_MODEL_EMF_URI(ust_tests_demo, |
27 | starting, | |
28 | "http://example.com/path_to_model?q=ust_tests_demo:starting") | |
29 | ||
30 | TRACEPOINT_EVENT(ust_tests_demo, | |
31 | done, | |
32 | TP_ARGS(int, value), | |
33 | TP_FIELDS(ctf_integer(int, value, value))) | |
26b53d3b DG |
34 | TRACEPOINT_LOGLEVEL(ust_tests_demo, done, TRACE_CRIT) |
35 | ||
28f23191 JG |
36 | TRACEPOINT_MODEL_EMF_URI(ust_tests_demo, |
37 | done, | |
38 | "http://example.com/path_to_model?q=ust_tests_demo:done") | |
26b53d3b DG |
39 | |
40 | #endif /* _TRACEPOINT_UST_TESTS_DEMO_H */ | |
41 | ||
59eb182b MD |
42 | #undef TRACEPOINT_INCLUDE |
43 | #define TRACEPOINT_INCLUDE "./ust_tests_demo.h" | |
26b53d3b DG |
44 | |
45 | /* This part must be outside ifdef protection */ | |
46 | #include <lttng/tracepoint-event.h> |