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_
20 LTTNG_TRACEPOINT_EVENT_CLASS(regmap_reg
,
22 TP_PROTO(struct regmap
*map
, unsigned int reg
,
25 TP_ARGS(map
, reg
, val
),
28 __string( name
, regmap_name(map
))
29 __field( unsigned int, reg
)
30 __field( unsigned int, val
)
34 tp_strcpy(name
, regmap_name(map
))
39 TP_printk("%s reg=%x val=%x", __get_str(name
),
40 (unsigned int)__entry
->reg
,
41 (unsigned int)__entry
->val
)
44 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_reg
, regmap_reg_write
,
46 TP_PROTO(struct regmap
*map
, unsigned int reg
,
49 TP_ARGS(map
, reg
, val
)
52 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_reg
, regmap_reg_read
,
54 TP_PROTO(struct regmap
*map
, unsigned int reg
,
57 TP_ARGS(map
, reg
, val
)
60 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_reg
, regmap_reg_read_cache
,
62 TP_PROTO(struct regmap
*map
, unsigned int reg
,
65 TP_ARGS(map
, reg
, val
)
68 LTTNG_TRACEPOINT_EVENT_CLASS(regmap_block
,
70 TP_PROTO(struct regmap
*map
, unsigned int reg
, int count
),
72 TP_ARGS(map
, reg
, count
),
75 __string( name
, regmap_name(map
))
76 __field( unsigned int, reg
)
81 tp_strcpy(name
, regmap_name(map
))
83 tp_assign(count
, count
)
86 TP_printk("%s reg=%x count=%d", __get_str(name
),
87 (unsigned int)__entry
->reg
,
91 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_block
, regmap_hw_read_start
,
93 TP_PROTO(struct regmap
*map
, unsigned int reg
, int count
),
95 TP_ARGS(map
, reg
, count
)
98 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_block
, regmap_hw_read_done
,
100 TP_PROTO(struct regmap
*map
, unsigned int reg
, int count
),
102 TP_ARGS(map
, reg
, count
)
105 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_block
, regmap_hw_write_start
,
107 TP_PROTO(struct regmap
*map
, unsigned int reg
, int count
),
109 TP_ARGS(map
, reg
, count
)
112 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_block
, regmap_hw_write_done
,
114 TP_PROTO(struct regmap
*map
, unsigned int reg
, int count
),
116 TP_ARGS(map
, reg
, count
)
119 LTTNG_TRACEPOINT_EVENT(regcache_sync
,
121 TP_PROTO(struct regmap
*map
, const char *type
,
124 TP_ARGS(map
, type
, status
),
127 __string( name
, regmap_name(map
))
128 __string( status
, status
)
129 __string( type
, type
)
133 tp_strcpy(name
, regmap_name(map
))
134 tp_strcpy(status
, status
)
135 tp_strcpy(type
, type
)
138 TP_printk("%s type=%s status=%s", __get_str(name
),
139 __get_str(type
), __get_str(status
))
142 LTTNG_TRACEPOINT_EVENT_CLASS(regmap_bool
,
144 TP_PROTO(struct regmap
*map
, bool flag
),
149 __string( name
, regmap_name(map
))
154 tp_strcpy(name
, regmap_name(map
))
155 tp_assign(flag
, flag
)
158 TP_printk("%s flag=%d", __get_str(name
),
162 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_bool
, regmap_cache_only
,
164 TP_PROTO(struct regmap
*map
, bool flag
),
169 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_bool
, regmap_cache_bypass
,
171 TP_PROTO(struct regmap
*map
, bool flag
),
176 #endif /* LTTNG_TRACE_REGMAP_H */
178 /* This part must be outside protection */
179 #include "../../../probes/define_trace.h"
This page took 0.03372 seconds and 5 git commands to generate.