1 /* SPDX-License-Identifier: GPL-2.0 */
3 #define TRACE_SYSTEM regmap
5 #if !defined(LTTNG_TRACE_REGMAP_H) || defined(TRACE_HEADER_MULTI_READ)
6 #define LTTNG_TRACE_REGMAP_H
8 #include <probes/lttng-tracepoint-event.h>
9 #include <linux/ktime.h>
10 #include <linux/version.h>
12 #ifndef _TRACE_REGMAP_DEF_
13 #define _TRACE_REGMAP_DEF_
21 LTTNG_TRACEPOINT_EVENT_CLASS(regmap_reg
,
23 TP_PROTO(struct regmap
*map
, unsigned int reg
,
26 TP_ARGS(map
, reg
, val
),
29 ctf_string(name
, regmap_name(map
))
30 ctf_integer(unsigned int, reg
, reg
)
31 ctf_integer(unsigned int, val
, val
)
34 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_reg
, regmap_reg_write
,
36 TP_PROTO(struct regmap
*map
, unsigned int reg
,
39 TP_ARGS(map
, reg
, val
)
42 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_reg
, regmap_reg_read
,
44 TP_PROTO(struct regmap
*map
, unsigned int reg
,
47 TP_ARGS(map
, reg
, val
)
50 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_reg
, regmap_reg_read_cache
,
52 TP_PROTO(struct regmap
*map
, unsigned int reg
,
55 TP_ARGS(map
, reg
, val
)
58 LTTNG_TRACEPOINT_EVENT_CLASS(regmap_block
,
60 TP_PROTO(struct regmap
*map
, unsigned int reg
, int count
),
62 TP_ARGS(map
, reg
, count
),
65 ctf_string(name
, regmap_name(map
))
66 ctf_integer(unsigned int, reg
, reg
)
67 ctf_integer(int, count
, count
)
71 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_block
, regmap_hw_read_start
,
73 TP_PROTO(struct regmap
*map
, unsigned int reg
, int count
),
75 TP_ARGS(map
, reg
, count
)
78 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_block
, regmap_hw_read_done
,
80 TP_PROTO(struct regmap
*map
, unsigned int reg
, int count
),
82 TP_ARGS(map
, reg
, count
)
85 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_block
, regmap_hw_write_start
,
87 TP_PROTO(struct regmap
*map
, unsigned int reg
, int count
),
89 TP_ARGS(map
, reg
, count
)
92 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_block
, regmap_hw_write_done
,
94 TP_PROTO(struct regmap
*map
, unsigned int reg
, int count
),
96 TP_ARGS(map
, reg
, count
)
99 LTTNG_TRACEPOINT_EVENT_MAP(regcache_sync
,
101 regmap_regcache_sync
,
103 TP_PROTO(struct regmap
*map
, const char *type
,
106 TP_ARGS(map
, type
, status
),
109 ctf_string(name
, regmap_name(map
))
110 ctf_string(status
, status
)
111 ctf_string(type
, type
)
115 LTTNG_TRACEPOINT_EVENT_CLASS(regmap_bool
,
117 TP_PROTO(struct regmap
*map
, bool flag
),
122 ctf_string(name
, regmap_name(map
))
123 ctf_integer(int, flag
, flag
)
127 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_bool
, regmap_cache_only
,
129 TP_PROTO(struct regmap
*map
, bool flag
),
134 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_bool
, regmap_cache_bypass
,
136 TP_PROTO(struct regmap
*map
, bool flag
),
142 #endif /* LTTNG_TRACE_REGMAP_H */
144 /* This part must be outside protection */
145 #include <probes/define_trace.h>
This page took 0.032683 seconds and 4 git commands to generate.