Commit | Line | Data |
---|---|---|
c0c0989a MJ |
1 | /* |
2 | * SPDX-License-Identifier: MIT | |
3 | * | |
4 | * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | |
5 | */ | |
6 | ||
90c09854 JG |
7 | #undef TRACEPOINT_PROVIDER |
8 | #define TRACEPOINT_PROVIDER ust_tests_sameline | |
9 | ||
10 | #if !defined(_TRACEPOINT_UST_TESTS_SAMELINE_H) || defined(TRACEPOINT_HEADER_MULTI_READ) | |
11 | #define _TRACEPOINT_UST_TESTS_SAMELINE_H | |
12 | ||
90c09854 JG |
13 | #include <lttng/tracepoint.h> |
14 | ||
15 | TRACEPOINT_EVENT(ust_tests_sameline, event1, | |
16 | TP_ARGS(), | |
17 | TP_FIELDS() | |
18 | ) | |
19 | TRACEPOINT_LOGLEVEL(ust_tests_sameline, event1, TRACE_CRIT) | |
20 | ||
21 | TRACEPOINT_EVENT(ust_tests_sameline, event2, | |
22 | TP_ARGS(), | |
23 | TP_FIELDS() | |
24 | ) | |
25 | TRACEPOINT_LOGLEVEL(ust_tests_sameline, event2, TRACE_CRIT) | |
26 | ||
27 | #endif /* _TRACEPOINT_UST_TESTS_SAMELINE_H */ | |
28 | ||
29 | #undef TRACEPOINT_INCLUDE | |
30 | #define TRACEPOINT_INCLUDE "./ust_tests_sameline.h" | |
31 | ||
32 | /* This part must be outside ifdef protection */ | |
33 | #include <lttng/tracepoint-event.h> |