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 device
*dev
, unsigned int reg
,
25 TP_ARGS(dev
, reg
, val
),
28 __string( name
, dev_name(dev
) )
29 __field( unsigned int, reg
)
30 __field( unsigned int, val
)
34 tp_strcpy(name
, dev_name(dev
))
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 device
*dev
, unsigned int reg
,
49 TP_ARGS(dev
, reg
, val
)
53 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_reg
, regmap_reg_read
,
55 TP_PROTO(struct device
*dev
, unsigned int reg
,
58 TP_ARGS(dev
, reg
, val
)
62 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0))
63 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_reg
, regmap_reg_read_cache
,
65 TP_PROTO(struct device
*dev
, unsigned int reg
,
68 TP_ARGS(dev
, reg
, val
)
73 LTTNG_TRACEPOINT_EVENT_CLASS(regmap_block
,
75 TP_PROTO(struct device
*dev
, unsigned int reg
, int count
),
77 TP_ARGS(dev
, reg
, count
),
80 __string( name
, dev_name(dev
) )
81 __field( unsigned int, reg
)
86 tp_strcpy(name
, dev_name(dev
))
88 tp_assign(count
, count
)
91 TP_printk("%s reg=%x count=%d", __get_str(name
),
92 (unsigned int)__entry
->reg
,
96 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_block
, regmap_hw_read_start
,
98 TP_PROTO(struct device
*dev
, unsigned int reg
, int count
),
100 TP_ARGS(dev
, reg
, count
)
103 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_block
, regmap_hw_read_done
,
105 TP_PROTO(struct device
*dev
, unsigned int reg
, int count
),
107 TP_ARGS(dev
, reg
, count
)
110 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_block
, regmap_hw_write_start
,
112 TP_PROTO(struct device
*dev
, unsigned int reg
, int count
),
114 TP_ARGS(dev
, reg
, count
)
117 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_block
, regmap_hw_write_done
,
119 TP_PROTO(struct device
*dev
, unsigned int reg
, int count
),
121 TP_ARGS(dev
, reg
, count
)
124 LTTNG_TRACEPOINT_EVENT(regcache_sync
,
126 TP_PROTO(struct device
*dev
, const char *type
,
129 TP_ARGS(dev
, type
, status
),
132 __string( name
, dev_name(dev
) )
133 __string( status
, status
)
134 __string( type
, type
)
138 tp_strcpy(name
, dev_name(dev
))
139 tp_strcpy(status
, status
)
140 tp_strcpy(type
, type
)
143 TP_printk("%s type=%s status=%s", __get_str(name
),
144 __get_str(type
), __get_str(status
))
147 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0))
148 LTTNG_TRACEPOINT_EVENT_CLASS(regmap_bool
,
150 TP_PROTO(struct device
*dev
, bool flag
),
155 __string( name
, dev_name(dev
) )
160 tp_strcpy(name
, dev_name(dev
))
161 tp_assign(flag
, flag
)
164 TP_printk("%s flag=%d", __get_str(name
),
168 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_bool
, regmap_cache_only
,
170 TP_PROTO(struct device
*dev
, bool flag
),
176 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_bool
, regmap_cache_bypass
,
178 TP_PROTO(struct device
*dev
, bool flag
),
185 #endif /* LTTNG_TRACE_REGMAP_H */
187 /* This part must be outside protection */
188 #include "../../../probes/define_trace.h"
This page took 0.032306 seconds and 4 git commands to generate.