diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-07-07 07:46:22 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-07-24 15:05:06 -0400 |
commit | 0a2b8bb24d4eb67788edd71d1ef8aa86c2e17e0f (patch) | |
tree | 515bc3db1f3d46ce967320b0bb9914ccd64fddbc /net/mac80211/driver-trace.h | |
parent | 99783e2cde6eccbd31efeb03a79f26bb5f239c36 (diff) |
mac80211: driver operation debugging
This makes mac80211 use the event tracing framework
to log all operations as given to the driver. This
will need to be extended with more information, but
as a start it should be good.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/driver-trace.h')
-rw-r--r-- | net/mac80211/driver-trace.h | 648 |
1 files changed, 648 insertions, 0 deletions
diff --git a/net/mac80211/driver-trace.h b/net/mac80211/driver-trace.h new file mode 100644 index 000000000000..48c93d13e7b0 --- /dev/null +++ b/net/mac80211/driver-trace.h | |||
@@ -0,0 +1,648 @@ | |||
1 | #if !defined(__MAC80211_DRIVER_TRACE) || defined(TRACE_HEADER_MULTI_READ) | ||
2 | #define __MAC80211_DRIVER_TRACE | ||
3 | |||
4 | #include <linux/tracepoint.h> | ||
5 | #include <net/mac80211.h> | ||
6 | #include "ieee80211_i.h" | ||
7 | |||
8 | #ifndef CONFIG_MAC80211_DRIVER_API_TRACER | ||
9 | #undef TRACE_EVENT | ||
10 | #define TRACE_EVENT(name, proto, ...) \ | ||
11 | static inline void trace_ ## name(proto) {} | ||
12 | #endif | ||
13 | |||
14 | #undef TRACE_SYSTEM | ||
15 | #define TRACE_SYSTEM mac80211 | ||
16 | |||
17 | #define MAXNAME 32 | ||
18 | #define LOCAL_ENTRY __array(char, wiphy_name, 32) | ||
19 | #define LOCAL_ASSIGN strlcpy(__entry->wiphy_name, wiphy_name(local->hw.wiphy), MAXNAME) | ||
20 | #define LOCAL_PR_FMT "%s" | ||
21 | #define LOCAL_PR_ARG __entry->wiphy_name | ||
22 | |||
23 | #define STA_ENTRY __array(char, sta_addr, ETH_ALEN) | ||
24 | #define STA_ASSIGN (sta ? memcpy(__entry->sta_addr, sta->addr, ETH_ALEN) : memset(__entry->sta_addr, 0, ETH_ALEN)) | ||
25 | #define STA_PR_FMT " sta:%pM" | ||
26 | #define STA_PR_ARG __entry->sta_addr | ||
27 | |||
28 | #define VIF_ENTRY __field(enum nl80211_iftype, vif_type) __field(void *, vif) | ||
29 | #define VIF_ASSIGN __entry->vif_type = vif ? vif->type : 0; __entry->vif = vif | ||
30 | #define VIF_PR_FMT " vif:%p(%d)" | ||
31 | #define VIF_PR_ARG __entry->vif, __entry->vif_type | ||
32 | |||
33 | TRACE_EVENT(drv_start, | ||
34 | TP_PROTO(struct ieee80211_local *local, int ret), | ||
35 | |||
36 | TP_ARGS(local, ret), | ||
37 | |||
38 | TP_STRUCT__entry( | ||
39 | LOCAL_ENTRY | ||
40 | __field(int, ret) | ||
41 | ), | ||
42 | |||
43 | TP_fast_assign( | ||
44 | LOCAL_ASSIGN; | ||
45 | __entry->ret = ret; | ||
46 | ), | ||
47 | |||
48 | TP_printk( | ||
49 | LOCAL_PR_FMT, LOCAL_PR_ARG | ||
50 | ) | ||
51 | ); | ||
52 | |||
53 | TRACE_EVENT(drv_stop, | ||
54 | TP_PROTO(struct ieee80211_local *local), | ||
55 | |||
56 | TP_ARGS(local), | ||
57 | |||
58 | TP_STRUCT__entry( | ||
59 | LOCAL_ENTRY | ||
60 | ), | ||
61 | |||
62 | TP_fast_assign( | ||
63 | LOCAL_ASSIGN; | ||
64 | ), | ||
65 | |||
66 | TP_printk( | ||
67 | LOCAL_PR_FMT, LOCAL_PR_ARG | ||
68 | ) | ||
69 | ); | ||
70 | |||
71 | TRACE_EVENT(drv_add_interface, | ||
72 | TP_PROTO(struct ieee80211_local *local, | ||
73 | const u8 *addr, | ||
74 | struct ieee80211_vif *vif, | ||
75 | int ret), | ||
76 | |||
77 | TP_ARGS(local, addr, vif, ret), | ||
78 | |||
79 | TP_STRUCT__entry( | ||
80 | LOCAL_ENTRY | ||
81 | VIF_ENTRY | ||
82 | __array(char, addr, 6) | ||
83 | __field(int, ret) | ||
84 | ), | ||
85 | |||
86 | TP_fast_assign( | ||
87 | LOCAL_ASSIGN; | ||
88 | VIF_ASSIGN; | ||
89 | memcpy(__entry->addr, addr, 6); | ||
90 | __entry->ret = ret; | ||
91 | ), | ||
92 | |||
93 | TP_printk( | ||
94 | LOCAL_PR_FMT VIF_PR_FMT " addr:%pM ret:%d", | ||
95 | LOCAL_PR_ARG, VIF_PR_ARG, __entry->addr, __entry->ret | ||
96 | ) | ||
97 | ); | ||
98 | |||
99 | TRACE_EVENT(drv_remove_interface, | ||
100 | TP_PROTO(struct ieee80211_local *local, | ||
101 | const u8 *addr, struct ieee80211_vif *vif), | ||
102 | |||
103 | TP_ARGS(local, addr, vif), | ||
104 | |||
105 | TP_STRUCT__entry( | ||
106 | LOCAL_ENTRY | ||
107 | VIF_ENTRY | ||
108 | __array(char, addr, 6) | ||
109 | ), | ||
110 | |||
111 | TP_fast_assign( | ||
112 | LOCAL_ASSIGN; | ||
113 | VIF_ASSIGN; | ||
114 | memcpy(__entry->addr, addr, 6); | ||
115 | ), | ||
116 | |||
117 | TP_printk( | ||
118 | LOCAL_PR_FMT VIF_PR_FMT " addr:%pM", | ||
119 | LOCAL_PR_ARG, VIF_PR_ARG, __entry->addr | ||
120 | ) | ||
121 | ); | ||
122 | |||
123 | TRACE_EVENT(drv_config, | ||
124 | TP_PROTO(struct ieee80211_local *local, | ||
125 | u32 changed, | ||
126 | int ret), | ||
127 | |||
128 | TP_ARGS(local, changed, ret), | ||
129 | |||
130 | TP_STRUCT__entry( | ||
131 | LOCAL_ENTRY | ||
132 | __field(u32, changed) | ||
133 | __field(int, ret) | ||
134 | ), | ||
135 | |||
136 | TP_fast_assign( | ||
137 | LOCAL_ASSIGN; | ||
138 | __entry->changed = changed; | ||
139 | __entry->ret = ret; | ||
140 | ), | ||
141 | |||
142 | TP_printk( | ||
143 | LOCAL_PR_FMT " ch:%#x ret:%d", | ||
144 | LOCAL_PR_ARG, __entry->changed, __entry->ret | ||
145 | ) | ||
146 | ); | ||
147 | |||
148 | TRACE_EVENT(drv_bss_info_changed, | ||
149 | TP_PROTO(struct ieee80211_local *local, | ||
150 | struct ieee80211_vif *vif, | ||
151 | struct ieee80211_bss_conf *info, | ||
152 | u32 changed), | ||
153 | |||
154 | TP_ARGS(local, vif, info, changed), | ||
155 | |||
156 | TP_STRUCT__entry( | ||
157 | LOCAL_ENTRY | ||
158 | VIF_ENTRY | ||
159 | __field(bool, assoc) | ||
160 | __field(u16, aid) | ||
161 | __field(bool, cts) | ||
162 | __field(bool, shortpre) | ||
163 | __field(bool, shortslot) | ||
164 | __field(u8, dtimper) | ||
165 | __field(u16, bcnint) | ||
166 | __field(u16, assoc_cap) | ||
167 | __field(u64, timestamp) | ||
168 | __field(u32, basic_rates) | ||
169 | __field(u32, changed) | ||
170 | ), | ||
171 | |||
172 | TP_fast_assign( | ||
173 | LOCAL_ASSIGN; | ||
174 | VIF_ASSIGN; | ||
175 | __entry->changed = changed; | ||
176 | __entry->aid = info->aid; | ||
177 | __entry->assoc = info->assoc; | ||
178 | __entry->shortpre = info->use_short_preamble; | ||
179 | __entry->cts = info->use_cts_prot; | ||
180 | __entry->shortslot = info->use_short_slot; | ||
181 | __entry->dtimper = info->dtim_period; | ||
182 | __entry->bcnint = info->beacon_int; | ||
183 | __entry->assoc_cap = info->assoc_capability; | ||
184 | __entry->timestamp = info->timestamp; | ||
185 | __entry->basic_rates = info->basic_rates; | ||
186 | ), | ||
187 | |||
188 | TP_printk( | ||
189 | LOCAL_PR_FMT VIF_PR_FMT " changed:%#x", | ||
190 | LOCAL_PR_ARG, VIF_PR_ARG, __entry->changed | ||
191 | ) | ||
192 | ); | ||
193 | |||
194 | TRACE_EVENT(drv_configure_filter, | ||
195 | TP_PROTO(struct ieee80211_local *local, | ||
196 | unsigned int changed_flags, | ||
197 | unsigned int *total_flags, | ||
198 | int mc_count), | ||
199 | |||
200 | TP_ARGS(local, changed_flags, total_flags, mc_count), | ||
201 | |||
202 | TP_STRUCT__entry( | ||
203 | LOCAL_ENTRY | ||
204 | __field(unsigned int, changed) | ||
205 | __field(unsigned int, total) | ||
206 | __field(int, mc) | ||
207 | ), | ||
208 | |||
209 | TP_fast_assign( | ||
210 | LOCAL_ASSIGN; | ||
211 | __entry->changed = changed_flags; | ||
212 | __entry->total = *total_flags; | ||
213 | __entry->mc = mc_count; | ||
214 | ), | ||
215 | |||
216 | TP_printk( | ||
217 | LOCAL_PR_FMT " changed:%#x total:%#x mc:%d", | ||
218 | LOCAL_PR_ARG, __entry->changed, __entry->total, __entry->mc | ||
219 | ) | ||
220 | ); | ||
221 | |||
222 | TRACE_EVENT(drv_set_tim, | ||
223 | TP_PROTO(struct ieee80211_local *local, | ||
224 | struct ieee80211_sta *sta, bool set, int ret), | ||
225 | |||
226 | TP_ARGS(local, sta, set, ret), | ||
227 | |||
228 | TP_STRUCT__entry( | ||
229 | LOCAL_ENTRY | ||
230 | STA_ENTRY | ||
231 | __field(bool, set) | ||
232 | __field(int, ret) | ||
233 | ), | ||
234 | |||
235 | TP_fast_assign( | ||
236 | LOCAL_ASSIGN; | ||
237 | STA_ASSIGN; | ||
238 | __entry->set = set; | ||
239 | __entry->ret = ret; | ||
240 | ), | ||
241 | |||
242 | TP_printk( | ||
243 | LOCAL_PR_FMT STA_PR_FMT " set:%d ret:%d", | ||
244 | LOCAL_PR_ARG, STA_PR_FMT, __entry->set, __entry->ret | ||
245 | ) | ||
246 | ); | ||
247 | |||
248 | TRACE_EVENT(drv_set_key, | ||
249 | TP_PROTO(struct ieee80211_local *local, | ||
250 | enum set_key_cmd cmd, struct ieee80211_vif *vif, | ||
251 | struct ieee80211_sta *sta, | ||
252 | struct ieee80211_key_conf *key, int ret), | ||
253 | |||
254 | TP_ARGS(local, cmd, vif, sta, key, ret), | ||
255 | |||
256 | TP_STRUCT__entry( | ||
257 | LOCAL_ENTRY | ||
258 | VIF_ENTRY | ||
259 | STA_ENTRY | ||
260 | __field(enum ieee80211_key_alg, alg) | ||
261 | __field(u8, hw_key_idx) | ||
262 | __field(u8, flags) | ||
263 | __field(s8, keyidx) | ||
264 | __field(int, ret) | ||
265 | ), | ||
266 | |||
267 | TP_fast_assign( | ||
268 | LOCAL_ASSIGN; | ||
269 | VIF_ASSIGN; | ||
270 | STA_ASSIGN; | ||
271 | __entry->alg = key->alg; | ||
272 | __entry->flags = key->flags; | ||
273 | __entry->keyidx = key->keyidx; | ||
274 | __entry->hw_key_idx = key->hw_key_idx; | ||
275 | __entry->ret = ret; | ||
276 | ), | ||
277 | |||
278 | TP_printk( | ||
279 | LOCAL_PR_FMT VIF_PR_FMT STA_PR_FMT " ret:%d", | ||
280 | LOCAL_PR_ARG, VIF_PR_ARG, STA_PR_ARG, __entry->ret | ||
281 | ) | ||
282 | ); | ||
283 | |||
284 | TRACE_EVENT(drv_update_tkip_key, | ||
285 | TP_PROTO(struct ieee80211_local *local, | ||
286 | struct ieee80211_key_conf *conf, | ||
287 | const u8 *address, u32 iv32), | ||
288 | |||
289 | TP_ARGS(local, conf, address, iv32), | ||
290 | |||
291 | TP_STRUCT__entry( | ||
292 | LOCAL_ENTRY | ||
293 | __array(u8, addr, 6) | ||
294 | __field(u32, iv32) | ||
295 | ), | ||
296 | |||
297 | TP_fast_assign( | ||
298 | LOCAL_ASSIGN; | ||
299 | memcpy(__entry->addr, address, 6); | ||
300 | __entry->iv32 = iv32; | ||
301 | ), | ||
302 | |||
303 | TP_printk( | ||
304 | LOCAL_PR_FMT " addr:%pM iv32:%#x", | ||
305 | LOCAL_PR_ARG, __entry->addr, __entry->iv32 | ||
306 | ) | ||
307 | ); | ||
308 | |||
309 | TRACE_EVENT(drv_hw_scan, | ||
310 | TP_PROTO(struct ieee80211_local *local, | ||
311 | struct cfg80211_scan_request *req, int ret), | ||
312 | |||
313 | TP_ARGS(local, req, ret), | ||
314 | |||
315 | TP_STRUCT__entry( | ||
316 | LOCAL_ENTRY | ||
317 | __field(int, ret) | ||
318 | ), | ||
319 | |||
320 | TP_fast_assign( | ||
321 | LOCAL_ASSIGN; | ||
322 | __entry->ret = ret; | ||
323 | ), | ||
324 | |||
325 | TP_printk( | ||
326 | LOCAL_PR_FMT " ret:%d", | ||
327 | LOCAL_PR_ARG, __entry->ret | ||
328 | ) | ||
329 | ); | ||
330 | |||
331 | TRACE_EVENT(drv_sw_scan_start, | ||
332 | TP_PROTO(struct ieee80211_local *local), | ||
333 | |||
334 | TP_ARGS(local), | ||
335 | |||
336 | TP_STRUCT__entry( | ||
337 | LOCAL_ENTRY | ||
338 | ), | ||
339 | |||
340 | TP_fast_assign( | ||
341 | LOCAL_ASSIGN; | ||
342 | ), | ||
343 | |||
344 | TP_printk( | ||
345 | LOCAL_PR_FMT, LOCAL_PR_ARG | ||
346 | ) | ||
347 | ); | ||
348 | |||
349 | TRACE_EVENT(drv_sw_scan_complete, | ||
350 | TP_PROTO(struct ieee80211_local *local), | ||
351 | |||
352 | TP_ARGS(local), | ||
353 | |||
354 | TP_STRUCT__entry( | ||
355 | LOCAL_ENTRY | ||
356 | ), | ||
357 | |||
358 | TP_fast_assign( | ||
359 | LOCAL_ASSIGN; | ||
360 | ), | ||
361 | |||
362 | TP_printk( | ||
363 | LOCAL_PR_FMT, LOCAL_PR_ARG | ||
364 | ) | ||
365 | ); | ||
366 | |||
367 | TRACE_EVENT(drv_get_stats, | ||
368 | TP_PROTO(struct ieee80211_local *local, | ||
369 | struct ieee80211_low_level_stats *stats, | ||
370 | int ret), | ||
371 | |||
372 | TP_ARGS(local, stats, ret), | ||
373 | |||
374 | TP_STRUCT__entry( | ||
375 | LOCAL_ENTRY | ||
376 | __field(int, ret) | ||
377 | __field(unsigned int, ackfail) | ||
378 | __field(unsigned int, rtsfail) | ||
379 | __field(unsigned int, fcserr) | ||
380 | __field(unsigned int, rtssucc) | ||
381 | ), | ||
382 | |||
383 | TP_fast_assign( | ||
384 | LOCAL_ASSIGN; | ||
385 | __entry->ret = ret; | ||
386 | __entry->ackfail = stats->dot11ACKFailureCount; | ||
387 | __entry->rtsfail = stats->dot11RTSFailureCount; | ||
388 | __entry->fcserr = stats->dot11FCSErrorCount; | ||
389 | __entry->rtssucc = stats->dot11RTSSuccessCount; | ||
390 | ), | ||
391 | |||
392 | TP_printk( | ||
393 | LOCAL_PR_FMT " ret:%d", | ||
394 | LOCAL_PR_ARG, __entry->ret | ||
395 | ) | ||
396 | ); | ||
397 | |||
398 | TRACE_EVENT(drv_get_tkip_seq, | ||
399 | TP_PROTO(struct ieee80211_local *local, | ||
400 | u8 hw_key_idx, u32 *iv32, u16 *iv16), | ||
401 | |||
402 | TP_ARGS(local, hw_key_idx, iv32, iv16), | ||
403 | |||
404 | TP_STRUCT__entry( | ||
405 | LOCAL_ENTRY | ||
406 | __field(u8, hw_key_idx) | ||
407 | __field(u32, iv32) | ||
408 | __field(u16, iv16) | ||
409 | ), | ||
410 | |||
411 | TP_fast_assign( | ||
412 | LOCAL_ASSIGN; | ||
413 | __entry->hw_key_idx = hw_key_idx; | ||
414 | __entry->iv32 = *iv32; | ||
415 | __entry->iv16 = *iv16; | ||
416 | ), | ||
417 | |||
418 | TP_printk( | ||
419 | LOCAL_PR_FMT, LOCAL_PR_ARG | ||
420 | ) | ||
421 | ); | ||
422 | |||
423 | TRACE_EVENT(drv_set_rts_threshold, | ||
424 | TP_PROTO(struct ieee80211_local *local, u32 value, int ret), | ||
425 | |||
426 | TP_ARGS(local, value, ret), | ||
427 | |||
428 | TP_STRUCT__entry( | ||
429 | LOCAL_ENTRY | ||
430 | __field(u32, value) | ||
431 | __field(int, ret) | ||
432 | ), | ||
433 | |||
434 | TP_fast_assign( | ||
435 | LOCAL_ASSIGN; | ||
436 | __entry->ret = ret; | ||
437 | __entry->value = value; | ||
438 | ), | ||
439 | |||
440 | TP_printk( | ||
441 | LOCAL_PR_FMT " value:%d ret:%d", | ||
442 | LOCAL_PR_ARG, __entry->value, __entry->ret | ||
443 | ) | ||
444 | ); | ||
445 | |||
446 | TRACE_EVENT(drv_sta_notify, | ||
447 | TP_PROTO(struct ieee80211_local *local, | ||
448 | struct ieee80211_vif *vif, | ||
449 | enum sta_notify_cmd cmd, | ||
450 | struct ieee80211_sta *sta), | ||
451 | |||
452 | TP_ARGS(local, vif, cmd, sta), | ||
453 | |||
454 | TP_STRUCT__entry( | ||
455 | LOCAL_ENTRY | ||
456 | VIF_ENTRY | ||
457 | STA_ENTRY | ||
458 | __field(u32, cmd) | ||
459 | ), | ||
460 | |||
461 | TP_fast_assign( | ||
462 | LOCAL_ASSIGN; | ||
463 | VIF_ASSIGN; | ||
464 | STA_ASSIGN; | ||
465 | __entry->cmd = cmd; | ||
466 | ), | ||
467 | |||
468 | TP_printk( | ||
469 | LOCAL_PR_FMT VIF_PR_FMT STA_PR_FMT " cmd:%d", | ||
470 | LOCAL_PR_ARG, VIF_PR_ARG, STA_PR_ARG, __entry->cmd | ||
471 | ) | ||
472 | ); | ||
473 | |||
474 | TRACE_EVENT(drv_conf_tx, | ||
475 | TP_PROTO(struct ieee80211_local *local, u16 queue, | ||
476 | const struct ieee80211_tx_queue_params *params, | ||
477 | int ret), | ||
478 | |||
479 | TP_ARGS(local, queue, params, ret), | ||
480 | |||
481 | TP_STRUCT__entry( | ||
482 | LOCAL_ENTRY | ||
483 | __field(u16, queue) | ||
484 | __field(u16, txop) | ||
485 | __field(u16, cw_min) | ||
486 | __field(u16, cw_max) | ||
487 | __field(u8, aifs) | ||
488 | __field(int, ret) | ||
489 | ), | ||
490 | |||
491 | TP_fast_assign( | ||
492 | LOCAL_ASSIGN; | ||
493 | __entry->queue = queue; | ||
494 | __entry->ret = ret; | ||
495 | __entry->txop = params->txop; | ||
496 | __entry->cw_max = params->cw_max; | ||
497 | __entry->cw_min = params->cw_min; | ||
498 | __entry->aifs = params->aifs; | ||
499 | ), | ||
500 | |||
501 | TP_printk( | ||
502 | LOCAL_PR_FMT " queue:%d ret:%d", | ||
503 | LOCAL_PR_ARG, __entry->queue, __entry->ret | ||
504 | ) | ||
505 | ); | ||
506 | |||
507 | TRACE_EVENT(drv_get_tx_stats, | ||
508 | TP_PROTO(struct ieee80211_local *local, | ||
509 | struct ieee80211_tx_queue_stats *stats, | ||
510 | int ret), | ||
511 | |||
512 | TP_ARGS(local, stats, ret), | ||
513 | |||
514 | TP_STRUCT__entry( | ||
515 | LOCAL_ENTRY | ||
516 | __field(int, ret) | ||
517 | ), | ||
518 | |||
519 | TP_fast_assign( | ||
520 | LOCAL_ASSIGN; | ||
521 | __entry->ret = ret; | ||
522 | ), | ||
523 | |||
524 | TP_printk( | ||
525 | LOCAL_PR_FMT " ret:%d", | ||
526 | LOCAL_PR_ARG, __entry->ret | ||
527 | ) | ||
528 | ); | ||
529 | |||
530 | TRACE_EVENT(drv_get_tsf, | ||
531 | TP_PROTO(struct ieee80211_local *local, u64 ret), | ||
532 | |||
533 | TP_ARGS(local, ret), | ||
534 | |||
535 | TP_STRUCT__entry( | ||
536 | LOCAL_ENTRY | ||
537 | __field(u64, ret) | ||
538 | ), | ||
539 | |||
540 | TP_fast_assign( | ||
541 | LOCAL_ASSIGN; | ||
542 | __entry->ret = ret; | ||
543 | ), | ||
544 | |||
545 | TP_printk( | ||
546 | LOCAL_PR_FMT " ret:%llu", | ||
547 | LOCAL_PR_ARG, (unsigned long long)__entry->ret | ||
548 | ) | ||
549 | ); | ||
550 | |||
551 | TRACE_EVENT(drv_set_tsf, | ||
552 | TP_PROTO(struct ieee80211_local *local, u64 tsf), | ||
553 | |||
554 | TP_ARGS(local, tsf), | ||
555 | |||
556 | TP_STRUCT__entry( | ||
557 | LOCAL_ENTRY | ||
558 | __field(u64, tsf) | ||
559 | ), | ||
560 | |||
561 | TP_fast_assign( | ||
562 | LOCAL_ASSIGN; | ||
563 | __entry->tsf = tsf; | ||
564 | ), | ||
565 | |||
566 | TP_printk( | ||
567 | LOCAL_PR_FMT " tsf:%llu", | ||
568 | LOCAL_PR_ARG, (unsigned long long)__entry->tsf | ||
569 | ) | ||
570 | ); | ||
571 | |||
572 | TRACE_EVENT(drv_reset_tsf, | ||
573 | TP_PROTO(struct ieee80211_local *local), | ||
574 | |||
575 | TP_ARGS(local), | ||
576 | |||
577 | TP_STRUCT__entry( | ||
578 | LOCAL_ENTRY | ||
579 | ), | ||
580 | |||
581 | TP_fast_assign( | ||
582 | LOCAL_ASSIGN; | ||
583 | ), | ||
584 | |||
585 | TP_printk( | ||
586 | LOCAL_PR_FMT, LOCAL_PR_ARG | ||
587 | ) | ||
588 | ); | ||
589 | |||
590 | TRACE_EVENT(drv_tx_last_beacon, | ||
591 | TP_PROTO(struct ieee80211_local *local, int ret), | ||
592 | |||
593 | TP_ARGS(local, ret), | ||
594 | |||
595 | TP_STRUCT__entry( | ||
596 | LOCAL_ENTRY | ||
597 | __field(int, ret) | ||
598 | ), | ||
599 | |||
600 | TP_fast_assign( | ||
601 | LOCAL_ASSIGN; | ||
602 | __entry->ret = ret; | ||
603 | ), | ||
604 | |||
605 | TP_printk( | ||
606 | LOCAL_PR_FMT " ret:%d", | ||
607 | LOCAL_PR_ARG, __entry->ret | ||
608 | ) | ||
609 | ); | ||
610 | |||
611 | TRACE_EVENT(drv_ampdu_action, | ||
612 | TP_PROTO(struct ieee80211_local *local, | ||
613 | enum ieee80211_ampdu_mlme_action action, | ||
614 | struct ieee80211_sta *sta, u16 tid, | ||
615 | u16 *ssn, int ret), | ||
616 | |||
617 | TP_ARGS(local, action, sta, tid, ssn, ret), | ||
618 | |||
619 | TP_STRUCT__entry( | ||
620 | LOCAL_ENTRY | ||
621 | STA_ENTRY | ||
622 | __field(u32, action) | ||
623 | __field(u16, tid) | ||
624 | __field(u16, ssn) | ||
625 | __field(int, ret) | ||
626 | ), | ||
627 | |||
628 | TP_fast_assign( | ||
629 | LOCAL_ASSIGN; | ||
630 | STA_ASSIGN; | ||
631 | __entry->ret = ret; | ||
632 | __entry->action = action; | ||
633 | __entry->tid = tid; | ||
634 | __entry->ssn = *ssn; | ||
635 | ), | ||
636 | |||
637 | TP_printk( | ||
638 | LOCAL_PR_FMT STA_PR_FMT " action:%d tid:%d ret:%d", | ||
639 | LOCAL_PR_ARG, STA_PR_ARG, __entry->action, __entry->tid, __entry->ret | ||
640 | ) | ||
641 | ); | ||
642 | #endif /* __MAC80211_DRIVER_TRACE */ | ||
643 | |||
644 | #undef TRACE_INCLUDE_PATH | ||
645 | #define TRACE_INCLUDE_PATH . | ||
646 | #undef TRACE_INCLUDE_FILE | ||
647 | #define TRACE_INCLUDE_FILE driver-trace | ||
648 | #include <trace/define_trace.h> | ||