instrumentation: regmap: remove unused include version.h
[lttng-modules.git] / instrumentation / events / lttng-module / regmap.h
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 #undef TRACE_SYSTEM
3 #define TRACE_SYSTEM regmap
4
5 #if !defined(LTTNG_TRACE_REGMAP_H) || defined(TRACE_HEADER_MULTI_READ)
6 #define LTTNG_TRACE_REGMAP_H
7
8 #include <probes/lttng-tracepoint-event.h>
9 #include <linux/ktime.h>
10
11 #ifndef _TRACE_REGMAP_DEF_
12 #define _TRACE_REGMAP_DEF_
13 struct device;
14 struct regmap;
15 #endif
16
17 /*
18 * Log register events
19 */
20 LTTNG_TRACEPOINT_EVENT_CLASS(regmap_reg,
21
22 TP_PROTO(struct regmap *map, unsigned int reg,
23 unsigned int val),
24
25 TP_ARGS(map, reg, val),
26
27 TP_FIELDS(
28 ctf_string(name, regmap_name(map))
29 ctf_integer(unsigned int, reg, reg)
30 ctf_integer(unsigned int, val, val)
31 )
32 )
33 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_reg, regmap_reg_write,
34
35 TP_PROTO(struct regmap *map, unsigned int reg,
36 unsigned int val),
37
38 TP_ARGS(map, reg, val)
39 )
40
41 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_reg, regmap_reg_read,
42
43 TP_PROTO(struct regmap *map, unsigned int reg,
44 unsigned int val),
45
46 TP_ARGS(map, reg, val)
47 )
48
49 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_reg, regmap_reg_read_cache,
50
51 TP_PROTO(struct regmap *map, unsigned int reg,
52 unsigned int val),
53
54 TP_ARGS(map, reg, val)
55 )
56
57 LTTNG_TRACEPOINT_EVENT_CLASS(regmap_block,
58
59 TP_PROTO(struct regmap *map, unsigned int reg, int count),
60
61 TP_ARGS(map, reg, count),
62
63 TP_FIELDS(
64 ctf_string(name, regmap_name(map))
65 ctf_integer(unsigned int, reg, reg)
66 ctf_integer(int, count, count)
67 )
68 )
69
70 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_block, regmap_hw_read_start,
71
72 TP_PROTO(struct regmap *map, unsigned int reg, int count),
73
74 TP_ARGS(map, reg, count)
75 )
76
77 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_block, regmap_hw_read_done,
78
79 TP_PROTO(struct regmap *map, unsigned int reg, int count),
80
81 TP_ARGS(map, reg, count)
82 )
83
84 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_block, regmap_hw_write_start,
85
86 TP_PROTO(struct regmap *map, unsigned int reg, int count),
87
88 TP_ARGS(map, reg, count)
89 )
90
91 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_block, regmap_hw_write_done,
92
93 TP_PROTO(struct regmap *map, unsigned int reg, int count),
94
95 TP_ARGS(map, reg, count)
96 )
97
98 LTTNG_TRACEPOINT_EVENT_MAP(regcache_sync,
99
100 regmap_regcache_sync,
101
102 TP_PROTO(struct regmap *map, const char *type,
103 const char *status),
104
105 TP_ARGS(map, type, status),
106
107 TP_FIELDS(
108 ctf_string(name, regmap_name(map))
109 ctf_string(status, status)
110 ctf_string(type, type)
111 )
112 )
113
114 LTTNG_TRACEPOINT_EVENT_CLASS(regmap_bool,
115
116 TP_PROTO(struct regmap *map, bool flag),
117
118 TP_ARGS(map, flag),
119
120 TP_FIELDS(
121 ctf_string(name, regmap_name(map))
122 ctf_integer(int, flag, flag)
123 )
124 )
125
126 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_bool, regmap_cache_only,
127
128 TP_PROTO(struct regmap *map, bool flag),
129
130 TP_ARGS(map, flag)
131 )
132
133 LTTNG_TRACEPOINT_EVENT_INSTANCE(regmap_bool, regmap_cache_bypass,
134
135 TP_PROTO(struct regmap *map, bool flag),
136
137 TP_ARGS(map, flag)
138
139 )
140
141 #endif /* LTTNG_TRACE_REGMAP_H */
142
143 /* This part must be outside protection */
144 #include <probes/define_trace.h>
This page took 0.031587 seconds and 4 git commands to generate.