tests: Move to kernel style SPDX license identifiers
[lttng-tools.git] / tests / regression / ust / linking / ust_tests_demo.h
CommitLineData
9d16b343
MJ
1/*
2 * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
3 *
4 * SPDX-License-Identifier: MIT
5 *
6 */
7
91c75285
JG
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
91c75285
JG
14#include <lttng/tracepoint.h>
15
16TRACEPOINT_EVENT(ust_tests_demo, starting,
17 TP_ARGS(int, value),
18 TP_FIELDS(
19 ctf_integer(int, value, value)
20 )
21)
22TRACEPOINT_LOGLEVEL(ust_tests_demo, starting, TRACE_CRIT)
23
24TRACEPOINT_EVENT(ust_tests_demo, done,
25 TP_ARGS(int, value),
26 TP_FIELDS(
27 ctf_integer(int, value, value)
28 )
29)
30TRACEPOINT_LOGLEVEL(ust_tests_demo, done, TRACE_CRIT)
31
32#endif /* _TRACEPOINT_UST_TESTS_DEMO_H */
33
34#undef TRACEPOINT_INCLUDE
35#define TRACEPOINT_INCLUDE "./ust_tests_demo.h"
36
37/* This part must be outside ifdef protection */
38#include <lttng/tracepoint-event.h>
This page took 0.036317 seconds and 4 git commands to generate.