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