diff options
Diffstat (limited to 'net/mac80211/driver-trace.h')
-rw-r--r-- | net/mac80211/driver-trace.h | 144 |
1 files changed, 144 insertions, 0 deletions
diff --git a/net/mac80211/driver-trace.h b/net/mac80211/driver-trace.h index ed9edcbd9aa..f47b00dc7af 100644 --- a/net/mac80211/driver-trace.h +++ b/net/mac80211/driver-trace.h | |||
@@ -319,6 +319,49 @@ TRACE_EVENT(drv_bss_info_changed, | |||
319 | ) | 319 | ) |
320 | ); | 320 | ); |
321 | 321 | ||
322 | DECLARE_EVENT_CLASS(tx_sync_evt, | ||
323 | TP_PROTO(struct ieee80211_local *local, | ||
324 | struct ieee80211_sub_if_data *sdata, | ||
325 | const u8 *bssid, | ||
326 | enum ieee80211_tx_sync_type type), | ||
327 | TP_ARGS(local, sdata, bssid, type), | ||
328 | |||
329 | TP_STRUCT__entry( | ||
330 | LOCAL_ENTRY | ||
331 | VIF_ENTRY | ||
332 | __array(char, bssid, ETH_ALEN) | ||
333 | __field(u32, sync_type) | ||
334 | ), | ||
335 | |||
336 | TP_fast_assign( | ||
337 | LOCAL_ASSIGN; | ||
338 | VIF_ASSIGN; | ||
339 | memcpy(__entry->bssid, bssid, ETH_ALEN); | ||
340 | __entry->sync_type = type; | ||
341 | ), | ||
342 | |||
343 | TP_printk( | ||
344 | LOCAL_PR_FMT VIF_PR_FMT " bssid:%pM type:%d", | ||
345 | LOCAL_PR_ARG, VIF_PR_ARG, __entry->bssid, __entry->sync_type | ||
346 | ) | ||
347 | ); | ||
348 | |||
349 | DEFINE_EVENT(tx_sync_evt, drv_tx_sync, | ||
350 | TP_PROTO(struct ieee80211_local *local, | ||
351 | struct ieee80211_sub_if_data *sdata, | ||
352 | const u8 *bssid, | ||
353 | enum ieee80211_tx_sync_type type), | ||
354 | TP_ARGS(local, sdata, bssid, type) | ||
355 | ); | ||
356 | |||
357 | DEFINE_EVENT(tx_sync_evt, drv_finish_tx_sync, | ||
358 | TP_PROTO(struct ieee80211_local *local, | ||
359 | struct ieee80211_sub_if_data *sdata, | ||
360 | const u8 *bssid, | ||
361 | enum ieee80211_tx_sync_type type), | ||
362 | TP_ARGS(local, sdata, bssid, type) | ||
363 | ); | ||
364 | |||
322 | TRACE_EVENT(drv_prepare_multicast, | 365 | TRACE_EVENT(drv_prepare_multicast, |
323 | TP_PROTO(struct ieee80211_local *local, int mc_count), | 366 | TP_PROTO(struct ieee80211_local *local, int mc_count), |
324 | 367 | ||
@@ -460,6 +503,12 @@ DEFINE_EVENT(local_sdata_evt, drv_hw_scan, | |||
460 | TP_ARGS(local, sdata) | 503 | TP_ARGS(local, sdata) |
461 | ); | 504 | ); |
462 | 505 | ||
506 | DEFINE_EVENT(local_sdata_evt, drv_cancel_hw_scan, | ||
507 | TP_PROTO(struct ieee80211_local *local, | ||
508 | struct ieee80211_sub_if_data *sdata), | ||
509 | TP_ARGS(local, sdata) | ||
510 | ); | ||
511 | |||
463 | DEFINE_EVENT(local_sdata_evt, drv_sched_scan_start, | 512 | DEFINE_EVENT(local_sdata_evt, drv_sched_scan_start, |
464 | TP_PROTO(struct ieee80211_local *local, | 513 | TP_PROTO(struct ieee80211_local *local, |
465 | struct ieee80211_sub_if_data *sdata), | 514 | struct ieee80211_sub_if_data *sdata), |
@@ -1018,6 +1067,56 @@ TRACE_EVENT(drv_set_bitrate_mask, | |||
1018 | ) | 1067 | ) |
1019 | ); | 1068 | ); |
1020 | 1069 | ||
1070 | TRACE_EVENT(drv_set_rekey_data, | ||
1071 | TP_PROTO(struct ieee80211_local *local, | ||
1072 | struct ieee80211_sub_if_data *sdata, | ||
1073 | struct cfg80211_gtk_rekey_data *data), | ||
1074 | |||
1075 | TP_ARGS(local, sdata, data), | ||
1076 | |||
1077 | TP_STRUCT__entry( | ||
1078 | LOCAL_ENTRY | ||
1079 | VIF_ENTRY | ||
1080 | __array(u8, kek, NL80211_KEK_LEN) | ||
1081 | __array(u8, kck, NL80211_KCK_LEN) | ||
1082 | __array(u8, replay_ctr, NL80211_REPLAY_CTR_LEN) | ||
1083 | ), | ||
1084 | |||
1085 | TP_fast_assign( | ||
1086 | LOCAL_ASSIGN; | ||
1087 | VIF_ASSIGN; | ||
1088 | memcpy(__entry->kek, data->kek, NL80211_KEK_LEN); | ||
1089 | memcpy(__entry->kck, data->kck, NL80211_KCK_LEN); | ||
1090 | memcpy(__entry->replay_ctr, data->replay_ctr, | ||
1091 | NL80211_REPLAY_CTR_LEN); | ||
1092 | ), | ||
1093 | |||
1094 | TP_printk(LOCAL_PR_FMT VIF_PR_FMT, | ||
1095 | LOCAL_PR_ARG, VIF_PR_ARG) | ||
1096 | ); | ||
1097 | |||
1098 | TRACE_EVENT(drv_rssi_callback, | ||
1099 | TP_PROTO(struct ieee80211_local *local, | ||
1100 | enum ieee80211_rssi_event rssi_event), | ||
1101 | |||
1102 | TP_ARGS(local, rssi_event), | ||
1103 | |||
1104 | TP_STRUCT__entry( | ||
1105 | LOCAL_ENTRY | ||
1106 | __field(u32, rssi_event) | ||
1107 | ), | ||
1108 | |||
1109 | TP_fast_assign( | ||
1110 | LOCAL_ASSIGN; | ||
1111 | __entry->rssi_event = rssi_event; | ||
1112 | ), | ||
1113 | |||
1114 | TP_printk( | ||
1115 | LOCAL_PR_FMT " rssi_event:%d", | ||
1116 | LOCAL_PR_ARG, __entry->rssi_event | ||
1117 | ) | ||
1118 | ); | ||
1119 | |||
1021 | /* | 1120 | /* |
1022 | * Tracing for API calls that drivers call. | 1121 | * Tracing for API calls that drivers call. |
1023 | */ | 1122 | */ |
@@ -1287,6 +1386,51 @@ DEFINE_EVENT(local_only_evt, api_remain_on_channel_expired, | |||
1287 | TP_ARGS(local) | 1386 | TP_ARGS(local) |
1288 | ); | 1387 | ); |
1289 | 1388 | ||
1389 | TRACE_EVENT(api_gtk_rekey_notify, | ||
1390 | TP_PROTO(struct ieee80211_sub_if_data *sdata, | ||
1391 | const u8 *bssid, const u8 *replay_ctr), | ||
1392 | |||
1393 | TP_ARGS(sdata, bssid, replay_ctr), | ||
1394 | |||
1395 | TP_STRUCT__entry( | ||
1396 | VIF_ENTRY | ||
1397 | __array(u8, bssid, ETH_ALEN) | ||
1398 | __array(u8, replay_ctr, NL80211_REPLAY_CTR_LEN) | ||
1399 | ), | ||
1400 | |||
1401 | TP_fast_assign( | ||
1402 | VIF_ASSIGN; | ||
1403 | memcpy(__entry->bssid, bssid, ETH_ALEN); | ||
1404 | memcpy(__entry->replay_ctr, replay_ctr, NL80211_REPLAY_CTR_LEN); | ||
1405 | ), | ||
1406 | |||
1407 | TP_printk(VIF_PR_FMT, VIF_PR_ARG) | ||
1408 | ); | ||
1409 | |||
1410 | TRACE_EVENT(api_enable_rssi_reports, | ||
1411 | TP_PROTO(struct ieee80211_sub_if_data *sdata, | ||
1412 | int rssi_min_thold, int rssi_max_thold), | ||
1413 | |||
1414 | TP_ARGS(sdata, rssi_min_thold, rssi_max_thold), | ||
1415 | |||
1416 | TP_STRUCT__entry( | ||
1417 | VIF_ENTRY | ||
1418 | __field(int, rssi_min_thold) | ||
1419 | __field(int, rssi_max_thold) | ||
1420 | ), | ||
1421 | |||
1422 | TP_fast_assign( | ||
1423 | VIF_ASSIGN; | ||
1424 | __entry->rssi_min_thold = rssi_min_thold; | ||
1425 | __entry->rssi_max_thold = rssi_max_thold; | ||
1426 | ), | ||
1427 | |||
1428 | TP_printk( | ||
1429 | VIF_PR_FMT " rssi_min_thold =%d, rssi_max_thold = %d", | ||
1430 | VIF_PR_ARG, __entry->rssi_min_thold, __entry->rssi_max_thold | ||
1431 | ) | ||
1432 | ); | ||
1433 | |||
1290 | /* | 1434 | /* |
1291 | * Tracing for internal functions | 1435 | * Tracing for internal functions |
1292 | * (which may also be called in response to driver calls) | 1436 | * (which may also be called in response to driver calls) |