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 ctf_string(name
, dev_name(dev
))
29 ctf_integer(unsigned int, reg
, reg
)
30 ctf_integer(unsigned int, val
, val
)
34 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_reg
, regmap_reg_write
,
36 TP_PROTO(struct device
*dev
, unsigned int reg
,
39 TP_ARGS(dev
, reg
, val
)
43 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_reg
, regmap_reg_read
,
45 TP_PROTO(struct device
*dev
, unsigned int reg
,
48 TP_ARGS(dev
, reg
, val
)
52 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0))
53 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_reg
, regmap_reg_read_cache
,
55 TP_PROTO(struct device
*dev
, unsigned int reg
,
58 TP_ARGS(dev
, reg
, val
)
63 LTTNG_TRACEPOINT_EVENT_CLASS(regmap_block
,
65 TP_PROTO(struct device
*dev
, unsigned int reg
, int count
),
67 TP_ARGS(dev
, reg
, count
),
70 ctf_string(name
, dev_name(dev
))
71 ctf_integer(unsigned int, reg
, reg
)
72 ctf_integer(int, count
, count
)
76 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_block
, regmap_hw_read_start
,
78 TP_PROTO(struct device
*dev
, unsigned int reg
, int count
),
80 TP_ARGS(dev
, reg
, count
)
83 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_block
, regmap_hw_read_done
,
85 TP_PROTO(struct device
*dev
, unsigned int reg
, int count
),
87 TP_ARGS(dev
, reg
, count
)
90 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_block
, regmap_hw_write_start
,
92 TP_PROTO(struct device
*dev
, unsigned int reg
, int count
),
94 TP_ARGS(dev
, reg
, count
)
97 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_block
, regmap_hw_write_done
,
99 TP_PROTO(struct device
*dev
, unsigned int reg
, int count
),
101 TP_ARGS(dev
, reg
, count
)
104 LTTNG_TRACEPOINT_EVENT_MAP(regcache_sync
,
106 regmap_regcache_sync
,
108 TP_PROTO(struct device
*dev
, const char *type
,
111 TP_ARGS(dev
, type
, status
),
114 ctf_string(name
, dev_name(dev
))
115 ctf_string(status
, status
)
116 ctf_string(type
, type
)
120 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0))
121 LTTNG_TRACEPOINT_EVENT_CLASS(regmap_bool
,
123 TP_PROTO(struct device
*dev
, bool flag
),
128 ctf_string(name
, dev_name(dev
))
129 ctf_integer(int, flag
, flag
)
133 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_bool
, regmap_cache_only
,
135 TP_PROTO(struct device
*dev
, bool flag
),
141 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_bool
, regmap_cache_bypass
,
143 TP_PROTO(struct device
*dev
, bool flag
),
150 #endif /* LTTNG_TRACE_REGMAP_H */
152 /* This part must be outside protection */
153 #include "../../../probes/define_trace.h"
This page took 0.048748 seconds and 5 git commands to generate.