e077eb460c1c0fd4f020597a5b930aaae4fef1fa
1 // SPDX-FileCopyrightText: 2012 Andrew Gabbasov <andrew_gabbasov@mentor.com>
3 // SPDX-License-Identifier: GPL-2.0-only
6 #define TRACE_SYSTEM regmap
8 #if !defined(LTTNG_TRACE_REGMAP_H) || defined(TRACE_HEADER_MULTI_READ)
9 #define LTTNG_TRACE_REGMAP_H
11 #include <lttng/tracepoint-event.h>
12 #include <linux/ktime.h>
13 #include <lttng/kernel-version.h>
15 #ifndef _TRACE_REGMAP_DEF_
16 #define _TRACE_REGMAP_DEF_
24 LTTNG_TRACEPOINT_EVENT_CLASS(regmap_reg
,
26 TP_PROTO(struct regmap
*map
, unsigned int reg
,
29 TP_ARGS(map
, reg
, val
),
32 ctf_string(name
, regmap_name(map
))
33 ctf_integer(unsigned int, reg
, reg
)
34 ctf_integer(unsigned int, val
, val
)
37 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_reg
, regmap_reg_write
,
39 TP_PROTO(struct regmap
*map
, unsigned int reg
,
42 TP_ARGS(map
, reg
, val
)
45 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_reg
, regmap_reg_read
,
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_cache
,
55 TP_PROTO(struct regmap
*map
, unsigned int reg
,
58 TP_ARGS(map
, reg
, val
)
61 LTTNG_TRACEPOINT_EVENT_CLASS(regmap_block
,
63 TP_PROTO(struct regmap
*map
, unsigned int reg
, int count
),
65 TP_ARGS(map
, reg
, count
),
68 ctf_string(name
, regmap_name(map
))
69 ctf_integer(unsigned int, reg
, reg
)
70 ctf_integer(int, count
, count
)
74 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_block
, regmap_hw_read_start
,
76 TP_PROTO(struct regmap
*map
, unsigned int reg
, int count
),
78 TP_ARGS(map
, reg
, count
)
81 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_block
, regmap_hw_read_done
,
83 TP_PROTO(struct regmap
*map
, unsigned int reg
, int count
),
85 TP_ARGS(map
, reg
, count
)
88 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_block
, regmap_hw_write_start
,
90 TP_PROTO(struct regmap
*map
, unsigned int reg
, int count
),
92 TP_ARGS(map
, reg
, count
)
95 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_block
, regmap_hw_write_done
,
97 TP_PROTO(struct regmap
*map
, unsigned int reg
, int count
),
99 TP_ARGS(map
, reg
, count
)
102 LTTNG_TRACEPOINT_EVENT_MAP(regcache_sync
,
104 regmap_regcache_sync
,
106 TP_PROTO(struct regmap
*map
, const char *type
,
109 TP_ARGS(map
, type
, status
),
112 ctf_string(name
, regmap_name(map
))
113 ctf_string(status
, status
)
114 ctf_string(type
, type
)
118 LTTNG_TRACEPOINT_EVENT_CLASS(regmap_bool
,
120 TP_PROTO(struct regmap
*map
, bool flag
),
125 ctf_string(name
, regmap_name(map
))
126 ctf_integer(int, flag
, flag
)
130 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_bool
, regmap_cache_only
,
132 TP_PROTO(struct regmap
*map
, bool flag
),
137 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_bool
, regmap_cache_bypass
,
139 TP_PROTO(struct regmap
*map
, bool flag
),
145 #endif /* LTTNG_TRACE_REGMAP_H */
147 /* This part must be outside protection */
148 #include <lttng/define_trace.h>
This page took 0.044748 seconds and 5 git commands to generate.