2 #define TRACE_SYSTEM regmap
4 #if !defined(LTTNG_TRACE_REGMAP_H) || defined(TRACE_HEADER_MULTI_READ)
5 #define LTTNG_TRACE_REGMAP_H
7 #include "../../../probes/lttng-tracepoint-event.h"
8 #include <linux/ktime.h>
9 #include <linux/version.h>
11 #ifndef _TRACE_REGMAP_DEF_
12 #define _TRACE_REGMAP_DEF_
17 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,4))
21 LTTNG_TRACEPOINT_EVENT_CLASS(regmap_reg
,
23 TP_PROTO(struct regmap
*map
, unsigned int reg
,
26 TP_ARGS(map
, reg
, val
),
29 __string( name
, regmap_name(map
))
30 __field( unsigned int, reg
)
31 __field( unsigned int, val
)
35 tp_strcpy(name
, regmap_name(map
))
40 TP_printk("%s reg=%x val=%x", __get_str(name
),
41 (unsigned int)__entry
->reg
,
42 (unsigned int)__entry
->val
)
45 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_reg
, regmap_reg_write
,
47 TP_PROTO(struct regmap
*map
, unsigned int reg
,
50 TP_ARGS(map
, reg
, val
)
53 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_reg
, regmap_reg_read
,
55 TP_PROTO(struct regmap
*map
, unsigned int reg
,
58 TP_ARGS(map
, reg
, val
)
64 LTTNG_TRACEPOINT_EVENT_CLASS(regmap_reg
,
66 TP_PROTO(struct device
*dev
, unsigned int reg
,
69 TP_ARGS(dev
, reg
, val
),
72 __string( name
, dev_name(dev
) )
73 __field( unsigned int, reg
)
74 __field( unsigned int, val
)
78 tp_strcpy(name
, dev_name(dev
))
83 TP_printk("%s reg=%x val=%x", __get_str(name
),
84 (unsigned int)__entry
->reg
,
85 (unsigned int)__entry
->val
)
88 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_reg
, regmap_reg_write
,
90 TP_PROTO(struct device
*dev
, unsigned int reg
,
93 TP_ARGS(dev
, reg
, val
)
96 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_reg
, regmap_reg_read
,
98 TP_PROTO(struct device
*dev
, unsigned int reg
,
101 TP_ARGS(dev
, reg
, val
)
105 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,4))
106 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_reg
, regmap_reg_read_cache
,
108 TP_PROTO(struct regmap
*map
, unsigned int reg
,
111 TP_ARGS(map
, reg
, val
)
113 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0))
114 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_reg
, regmap_reg_read_cache
,
116 TP_PROTO(struct device
*dev
, unsigned int reg
,
119 TP_ARGS(dev
, reg
, val
)
123 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,4))
124 LTTNG_TRACEPOINT_EVENT_CLASS(regmap_block
,
126 TP_PROTO(struct regmap
*map
, unsigned int reg
, int count
),
128 TP_ARGS(map
, reg
, count
),
131 __string( name
, regmap_name(map
))
132 __field( unsigned int, reg
)
133 __field( int, count
)
137 tp_strcpy(name
, regmap_name(map
))
139 tp_assign(count
, count
)
142 TP_printk("%s reg=%x count=%d", __get_str(name
),
143 (unsigned int)__entry
->reg
,
147 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_block
, regmap_hw_read_start
,
149 TP_PROTO(struct regmap
*map
, unsigned int reg
, int count
),
151 TP_ARGS(map
, reg
, count
)
154 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_block
, regmap_hw_read_done
,
156 TP_PROTO(struct regmap
*map
, unsigned int reg
, int count
),
158 TP_ARGS(map
, reg
, count
)
161 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_block
, regmap_hw_write_start
,
163 TP_PROTO(struct regmap
*map
, unsigned int reg
, int count
),
165 TP_ARGS(map
, reg
, count
)
168 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_block
, regmap_hw_write_done
,
170 TP_PROTO(struct regmap
*map
, unsigned int reg
, int count
),
172 TP_ARGS(map
, reg
, count
)
175 LTTNG_TRACEPOINT_EVENT_CLASS(regmap_block
,
177 TP_PROTO(struct device
*dev
, unsigned int reg
, int count
),
179 TP_ARGS(dev
, reg
, count
),
182 __string( name
, dev_name(dev
) )
183 __field( unsigned int, reg
)
184 __field( int, count
)
188 tp_strcpy(name
, dev_name(dev
))
190 tp_assign(count
, count
)
193 TP_printk("%s reg=%x count=%d", __get_str(name
),
194 (unsigned int)__entry
->reg
,
198 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_block
, regmap_hw_read_start
,
200 TP_PROTO(struct device
*dev
, unsigned int reg
, int count
),
202 TP_ARGS(dev
, reg
, count
)
205 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_block
, regmap_hw_read_done
,
207 TP_PROTO(struct device
*dev
, unsigned int reg
, int count
),
209 TP_ARGS(dev
, reg
, count
)
212 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_block
, regmap_hw_write_start
,
214 TP_PROTO(struct device
*dev
, unsigned int reg
, int count
),
216 TP_ARGS(dev
, reg
, count
)
219 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_block
, regmap_hw_write_done
,
221 TP_PROTO(struct device
*dev
, unsigned int reg
, int count
),
223 TP_ARGS(dev
, reg
, count
)
227 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,4))
228 LTTNG_TRACEPOINT_EVENT(regcache_sync
,
230 TP_PROTO(struct regmap
*map
, const char *type
,
233 TP_ARGS(map
, type
, status
),
236 __string( name
, regmap_name(map
))
237 __string( status
, status
)
238 __string( type
, type
)
242 tp_strcpy(name
, regmap_name(map
))
243 tp_strcpy(status
, status
)
244 tp_strcpy(type
, type
)
247 TP_printk("%s type=%s status=%s", __get_str(name
),
248 __get_str(type
), __get_str(status
))
251 LTTNG_TRACEPOINT_EVENT(regcache_sync
,
253 TP_PROTO(struct device
*dev
, const char *type
,
256 TP_ARGS(dev
, type
, status
),
259 __string( name
, dev_name(dev
) )
260 __string( status
, status
)
261 __string( type
, type
)
265 tp_strcpy(name
, dev_name(dev
))
266 tp_strcpy(status
, status
)
267 tp_strcpy(type
, type
)
270 TP_printk("%s type=%s status=%s", __get_str(name
),
271 __get_str(type
), __get_str(status
))
276 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,4))
277 LTTNG_TRACEPOINT_EVENT_CLASS(regmap_bool
,
279 TP_PROTO(struct regmap
*map
, bool flag
),
284 __string( name
, regmap_name(map
))
289 tp_strcpy(name
, regmap_name(map
))
290 tp_assign(flag
, flag
)
293 TP_printk("%s flag=%d", __get_str(name
),
297 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_bool
, regmap_cache_only
,
299 TP_PROTO(struct regmap
*map
, bool flag
),
304 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_bool
, regmap_cache_bypass
,
306 TP_PROTO(struct regmap
*map
, bool flag
),
310 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0))
311 LTTNG_TRACEPOINT_EVENT_CLASS(regmap_bool
,
313 TP_PROTO(struct device
*dev
, bool flag
),
318 __string( name
, dev_name(dev
) )
323 tp_strcpy(name
, dev_name(dev
))
324 tp_assign(flag
, flag
)
327 TP_printk("%s flag=%d", __get_str(name
),
331 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_bool
, regmap_cache_only
,
333 TP_PROTO(struct device
*dev
, bool flag
),
339 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_bool
, regmap_cache_bypass
,
341 TP_PROTO(struct device
*dev
, bool flag
),
348 #endif /* LTTNG_TRACE_REGMAP_H */
350 /* This part must be outside protection */
351 #include "../../../probes/define_trace.h"
This page took 0.036708 seconds and 5 git commands to generate.