1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
|
/* Copyright (c) 2014-2015, 2017, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#undef TRACE_SYSTEM
#define TRACE_SYSTEM msm_bus
#if !defined(_TRACE_MSM_BUS_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_MSM_BUS_H
#include <linux/tracepoint.h>
TRACE_EVENT(bus_update_request,
TP_PROTO(int sec, int nsec, const char *name, int src, int dest,
unsigned long long ab, unsigned long long ib),
TP_ARGS(sec, nsec, name, src, dest, ab, ib),
TP_STRUCT__entry(
__field(int, sec)
__field(int, nsec)
__string(name, name)
__field(int, src)
__field(int, dest)
__field(u64, ab)
__field(u64, ib)
),
TP_fast_assign(
__entry->sec = sec;
__entry->nsec = nsec;
__assign_str(name, name);
__entry->src = src;
__entry->dest = dest;
__entry->ab = ab;
__entry->ib = ib;
),
TP_printk("time= %u.%09u name=%s src=%d dest=%d ab=%llu ib=%llu",
__entry->sec,
__entry->nsec,
__get_str(name),
__entry->src,
__entry->dest,
(unsigned long long)__entry->ab,
(unsigned long long)__entry->ib)
);
TRACE_EVENT(bus_update_request_end,
TP_PROTO(const char *name),
TP_ARGS(name),
TP_STRUCT__entry(
__string(name, name)
),
TP_fast_assign(
__assign_str(name, name);
),
TP_printk("client-name=%s", __get_str(name))
);
TRACE_EVENT(bus_max_votes,
TP_PROTO(int sec, int nsec, const char *bus_name, const char *ctx,
const char *bw_type_name, unsigned long long bw,
const char *cl_name),
TP_ARGS(sec, nsec, bus_name, ctx, bw_type_name, bw, cl_name),
TP_STRUCT__entry(
__field(int, sec)
__field(int, nsec)
__string(bus_name, bus_name)
__string(ctx, ctx)
__string(bw_type_name, bw_type_name)
__field(u64, bw)
__string(cl_name, cl_name)
),
TP_fast_assign(
__entry->sec = sec;
__entry->nsec = nsec;
__assign_str(bus_name, bus_name);
__assign_str(ctx, ctx);
__assign_str(bw_type_name, bw_type_name);
__entry->bw = bw;
__assign_str(cl_name, cl_name);
),
TP_printk("time= %u.%09u %s: %s max_%s: %llu: client-name: %s",
__entry->sec,
__entry->nsec,
__get_str(bus_name),
__get_str(ctx),
__get_str(bw_type_name),
(unsigned long long)__entry->bw,
__get_str(cl_name))
);
TRACE_EVENT(bus_bimc_config_limiter,
TP_PROTO(int mas_id, unsigned long long cur_lim_bw),
TP_ARGS(mas_id, cur_lim_bw),
TP_STRUCT__entry(
__field(int, mas_id)
__field(u64, cur_lim_bw)
),
TP_fast_assign(
__entry->mas_id = mas_id;
__entry->cur_lim_bw = cur_lim_bw;
),
TP_printk("Master=%d cur_lim_bw=%llu",
__entry->mas_id,
(unsigned long long)__entry->cur_lim_bw)
);
TRACE_EVENT(bus_avail_bw,
TP_PROTO(unsigned long long cur_bimc_bw, unsigned long long cur_mdp_bw),
TP_ARGS(cur_bimc_bw, cur_mdp_bw),
TP_STRUCT__entry(
__field(u64, cur_bimc_bw)
__field(u64, cur_mdp_bw)
),
TP_fast_assign(
__entry->cur_bimc_bw = cur_bimc_bw;
__entry->cur_mdp_bw = cur_mdp_bw;
),
TP_printk("cur_bimc_bw = %llu cur_mdp_bw = %llu",
(unsigned long long)__entry->cur_bimc_bw,
(unsigned long long)__entry->cur_mdp_bw)
);
TRACE_EVENT(bus_rules_matches,
TP_PROTO(int node_id, int rule_id, unsigned long long node_ab,
unsigned long long node_ib, unsigned long long node_clk),
TP_ARGS(node_id, rule_id, node_ab, node_ib, node_clk),
TP_STRUCT__entry(
__field(int, node_id)
__field(int, rule_id)
__field(u64, node_ab)
__field(u64, node_ib)
__field(u64, node_clk)
),
TP_fast_assign(
__entry->node_id = node_id;
__entry->rule_id = rule_id;
__entry->node_ab = node_ab;
__entry->node_ib = node_ib;
__entry->node_clk = node_clk;
),
TP_printk("Rule match node%d rule%d node-ab%llu:ib%llu:clk%llu",
__entry->node_id, __entry->rule_id,
(unsigned long long)__entry->node_ab,
(unsigned long long)__entry->node_ib,
(unsigned long long)__entry->node_clk)
);
TRACE_EVENT(bus_bke_params,
TP_PROTO(u32 gc, u32 gp, u32 thl, u32 thm, u32 thh),
TP_ARGS(gc, gp, thl, thm, thh),
TP_STRUCT__entry(
__field(u32, gc)
__field(u32, gp)
__field(u32, thl)
__field(u32, thm)
__field(u32, thh)
),
TP_fast_assign(
__entry->gc = gc;
__entry->gp = gp;
__entry->thl = thl;
__entry->thm = thm;
__entry->thh = thh;
),
TP_printk("BKE Params GC=0x%x GP=0x%x THL=0x%x THM=0x%x THH=0x%x",
__entry->gc, __entry->gp, __entry->thl, __entry->thm,
__entry->thh)
);
TRACE_EVENT(bus_client_status,
TP_PROTO(const char *name, int src, int dest,
unsigned long long ab, unsigned long long ib, int active_only),
TP_ARGS(name, src, dest, ab, ib, active_only),
TP_STRUCT__entry(
__string(name, name)
__field(int, src)
__field(int, dest)
__field(u64, ab)
__field(u64, ib)
__field(int, active_only)
),
TP_fast_assign(
__assign_str(name, name);
__entry->src = src;
__entry->dest = dest;
__entry->ab = ab;
__entry->ib = ib;
__entry->active_only = active_only;
),
TP_printk("name=%s src=%d dest=%d ab=%llu ib=%llu active_only=%d",
__get_str(name),
__entry->src,
__entry->dest,
(unsigned long long)__entry->ab,
(unsigned long long)__entry->ib,
__entry->active_only)
);
TRACE_EVENT(bus_agg_bw,
TP_PROTO(unsigned int node_id, int rpm_id, int ctx_set,
unsigned long long agg_ab),
TP_ARGS(node_id, rpm_id, ctx_set, agg_ab),
TP_STRUCT__entry(
__field(unsigned int, node_id)
__field(int, rpm_id)
__field(int, ctx_set)
__field(u64, agg_ab)
),
TP_fast_assign(
__entry->node_id = node_id;
__entry->rpm_id = rpm_id;
__entry->ctx_set = ctx_set;
__entry->agg_ab = agg_ab;
),
TP_printk("node_id:%u rpm_id:%d rpm_ctx:%d agg_ab:%llu",
__entry->node_id,
__entry->rpm_id,
__entry->ctx_set,
(unsigned long long)__entry->agg_ab)
);
#endif
#define TRACE_INCLUDE_FILE trace_msm_bus
#include <trace/define_trace.h>
|