Add explicit MIT license and copyright
[deliverable/exatracer.git] / src / lttng-ust-roctx.h
CommitLineData
c38914e1
MJ
1// SPDX-FileCopyrightText: 2023 Advanced Micro Devices, Inc. All rights reserved.
2// SPDX-FileCopyrightText: 2024 EfficiOS, Inc.
3//
4// SPDX-License-Identifier: MIT
74c0b9b3
OD
5
6#undef LTTNG_UST_TRACEPOINT_PROVIDER
7#define LTTNG_UST_TRACEPOINT_PROVIDER roctx
8
9#undef LTTNG_UST_TRACEPOINT_INCLUDE
10#define LTTNG_UST_TRACEPOINT_INCLUDE "lttng-ust-roctx.h"
11
12#if !defined(LTTNG_TRACEPOINT_ROCTX_H) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ)
13#define LTTNG_TRACEPOINT_ROCTX_H
14
15#include <lttng/tracepoint.h>
16
17LTTNG_UST_TRACEPOINT_EVENT(
18 roctx,
19 mark,
20 LTTNG_UST_TP_ARGS(
21 const char *, message
22 ),
23 LTTNG_UST_TP_FIELDS(
24 lttng_ust_field_string(message, message)
25 )
26)
27
28LTTNG_UST_TRACEPOINT_EVENT(
29 roctx,
30 range_push,
31 LTTNG_UST_TP_ARGS(
32 const char *, message,
33 int, level
34 ),
35 LTTNG_UST_TP_FIELDS(
36 lttng_ust_field_string(message, message)
37 lttng_ust_field_integer(uint64_t, level, level)
38 )
39)
40
41LTTNG_UST_TRACEPOINT_EVENT(
42 roctx,
43 range_pop,
44 LTTNG_UST_TP_ARGS(
45 int, level
46 ),
47 LTTNG_UST_TP_FIELDS(
48 lttng_ust_field_integer(uint64_t, level, level)
49 )
50)
51
52LTTNG_UST_TRACEPOINT_EVENT(
53 roctx,
54 range_start,
55 LTTNG_UST_TP_ARGS(
56 const char *, message,
57 uint64_t, id
58 ),
59 LTTNG_UST_TP_FIELDS(
60 lttng_ust_field_string(message, message)
61 lttng_ust_field_integer_hex(uint64_t, id, id)
62 )
63)
64
65LTTNG_UST_TRACEPOINT_EVENT(
66 roctx,
67 range_stop,
68 LTTNG_UST_TP_ARGS(
69 uint64_t, id
70 ),
71 LTTNG_UST_TP_FIELDS(
72 lttng_ust_field_integer_hex(uint64_t, id, id)
73 )
74)
75
76LTTNG_UST_TRACEPOINT_EVENT(
77 roctx,
78 get_thread_id,
79 LTTNG_UST_TP_ARGS(
80 uint64_t, tid
81 ),
82 LTTNG_UST_TP_FIELDS(
83 lttng_ust_field_integer_hex(uint64_t, roctx_tid, tid)
84 )
85)
86
87#endif /* LTTNG_TRACEPOINT_ROCTX_H */
88
89#include <lttng/tracepoint-event.h>
This page took 0.024586 seconds and 4 git commands to generate.