Cleanup: Move lttng-modules instrumentation headers
[lttng-modules.git] / include / instrumentation / events / regmap.h
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 #undef TRACE_SYSTEM
3 #define TRACE_SYSTEM regmap
4
5 #if !defined(LTTNG_TRACE_REGMAP_H) || defined(TRACE_HEADER_MULTI_READ)
6 #define LTTNG_TRACE_REGMAP_H
7
8 #include <lttng/tracepoint-event.h>
9 #include <linux/ktime.h>
10 #include <linux/version.h>
11
12 #ifndef _TRACE_REGMAP_DEF_
13 #define _TRACE_REGMAP_DEF_
14 struct device;
15 struct regmap;
16 #endif
17
18 /*
19 * Log register events
20 */
21 LTTNG_TRACEPOINT_EVENT_CLASS(regmap_reg,
22
23 TP_PROTO(struct regmap *map, unsigned int reg,
24 unsigned int val),
25
26 TP_ARGS(map, reg, val),
27
28 TP_FIELDS(
29 ctf_string(name, regmap_name(map))
30 ctf_integer(unsigned int, reg, reg)
31 ctf_integer(unsigned int, val, val)
32 )
33 )
34 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_reg, regmap_reg_write,
35
36 TP_PROTO(struct regmap *map, unsigned int reg,
37 unsigned int val),
38
39 TP_ARGS(map, reg, val)
40 )
41
42 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_reg, regmap_reg_read,
43
44 TP_PROTO(struct regmap *map, unsigned int reg,
45 unsigned int val),
46
47 TP_ARGS(map, reg, val)
48 )
49
50 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_reg, regmap_reg_read_cache,
51
52 TP_PROTO(struct regmap *map, unsigned int reg,
53 unsigned int val),
54
55 TP_ARGS(map, reg, val)
56 )
57
58 LTTNG_TRACEPOINT_EVENT_CLASS(regmap_block,
59
60 TP_PROTO(struct regmap *map, unsigned int reg, int count),
61
62 TP_ARGS(map, reg, count),
63
64 TP_FIELDS(
65 ctf_string(name, regmap_name(map))
66 ctf_integer(unsigned int, reg, reg)
67 ctf_integer(int, count, count)
68 )
69 )
70
71 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_block, regmap_hw_read_start,
72
73 TP_PROTO(struct regmap *map, unsigned int reg, int count),
74
75 TP_ARGS(map, reg, count)
76 )
77
78 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_block, regmap_hw_read_done,
79
80 TP_PROTO(struct regmap *map, unsigned int reg, int count),
81
82 TP_ARGS(map, reg, count)
83 )
84
85 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_block, regmap_hw_write_start,
86
87 TP_PROTO(struct regmap *map, unsigned int reg, int count),
88
89 TP_ARGS(map, reg, count)
90 )
91
92 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_block, regmap_hw_write_done,
93
94 TP_PROTO(struct regmap *map, unsigned int reg, int count),
95
96 TP_ARGS(map, reg, count)
97 )
98
99 LTTNG_TRACEPOINT_EVENT_MAP(regcache_sync,
100
101 regmap_regcache_sync,
102
103 TP_PROTO(struct regmap *map, const char *type,
104 const char *status),
105
106 TP_ARGS(map, type, status),
107
108 TP_FIELDS(
109 ctf_string(name, regmap_name(map))
110 ctf_string(status, status)
111 ctf_string(type, type)
112 )
113 )
114
115 LTTNG_TRACEPOINT_EVENT_CLASS(regmap_bool,
116
117 TP_PROTO(struct regmap *map, bool flag),
118
119 TP_ARGS(map, flag),
120
121 TP_FIELDS(
122 ctf_string(name, regmap_name(map))
123 ctf_integer(int, flag, flag)
124 )
125 )
126
127 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_bool, regmap_cache_only,
128
129 TP_PROTO(struct regmap *map, bool flag),
130
131 TP_ARGS(map, flag)
132 )
133
134 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_bool, regmap_cache_bypass,
135
136 TP_PROTO(struct regmap *map, bool flag),
137
138 TP_ARGS(map, flag)
139
140 )
141
142 #endif /* LTTNG_TRACE_REGMAP_H */
143
144 /* This part must be outside protection */
145 #include <lttng/define_trace.h>
This page took 0.033252 seconds and 4 git commands to generate.