diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-11-16 11:22:28 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-11-26 06:48:17 -0500 |
commit | ec816087e8978b74c1bd5fae0e335dd97d964e9f (patch) | |
tree | 6cf45068add21a79c701aeb384564d974e7b64eb /net | |
parent | a3ad5c3dd55624fde4d663e50b5261c396f6ece5 (diff) |
cfg80211: fix some tracing output issues
In some cases, e.g. probe_status, there were spaces
missing so the trace output was confusing. Also make
it more like mac80211 when printing netdevs/wiphys
to make reading a combined log easier.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/wireless/trace.h | 149 |
1 files changed, 73 insertions, 76 deletions
diff --git a/net/wireless/trace.h b/net/wireless/trace.h index 3c7aa1221563..2134576f426e 100644 --- a/net/wireless/trace.h +++ b/net/wireless/trace.h | |||
@@ -20,29 +20,26 @@ | |||
20 | #define MAC_PR_FMT "%pM" | 20 | #define MAC_PR_FMT "%pM" |
21 | #define MAC_PR_ARG(entry_mac) (__entry->entry_mac) | 21 | #define MAC_PR_ARG(entry_mac) (__entry->entry_mac) |
22 | 22 | ||
23 | #define WIPHY_ENTRY MAC_ENTRY(wiphy_mac) | 23 | #define MAXNAME 32 |
24 | #define WIPHY_ASSIGN MAC_ASSIGN(wiphy_mac, wiphy->perm_addr) | 24 | #define WIPHY_ENTRY __array(char, wiphy_name, 32) |
25 | #define WIPHY_PR_FMT "wiphy " MAC_PR_FMT | 25 | #define WIPHY_ASSIGN strlcpy(__entry->wiphy_name, wiphy_name(wiphy), MAXNAME) |
26 | #define WIPHY_PR_ARG MAC_PR_ARG(wiphy_mac) | 26 | #define WIPHY_PR_FMT "%s" |
27 | 27 | #define WIPHY_PR_ARG __entry->wiphy_name | |
28 | #define WDEV_ENTRY __field(u32, id) | 28 | |
29 | #define WDEV_ASSIGN (__entry->id) = (wdev ? wdev->identifier : 0) | 29 | #define WDEV_ENTRY __field(u32, id) |
30 | #define WDEV_PR_FMT ", wdev id: %u" | 30 | #define WDEV_ASSIGN (__entry->id) = (wdev ? wdev->identifier : 0) |
31 | #define WDEV_PR_ARG (__entry->id) | 31 | #define WDEV_PR_FMT "wdev(%u)" |
32 | 32 | #define WDEV_PR_ARG (__entry->id) | |
33 | #define NETDEV_ENTRY __array(char, name, IFNAMSIZ) \ | 33 | |
34 | MAC_ENTRY(netdev_addr) \ | 34 | #define NETDEV_ENTRY __array(char, name, IFNAMSIZ) \ |
35 | __field(int, ifindex) | 35 | __field(int, ifindex) |
36 | #define NETDEV_ASSIGN \ | 36 | #define NETDEV_ASSIGN \ |
37 | do { \ | 37 | do { \ |
38 | memcpy(__entry->name, netdev->name, IFNAMSIZ); \ | 38 | memcpy(__entry->name, netdev->name, IFNAMSIZ); \ |
39 | MAC_ASSIGN(netdev_addr, netdev->dev_addr); \ | ||
40 | (__entry->ifindex) = (netdev->ifindex); \ | 39 | (__entry->ifindex) = (netdev->ifindex); \ |
41 | } while (0) | 40 | } while (0) |
42 | #define NETDEV_PR_FMT ", netdev - name: %s, addr: " MAC_PR_FMT \ | 41 | #define NETDEV_PR_FMT "netdev:%s(%d)" |
43 | ", intf index: %d" | 42 | #define NETDEV_PR_ARG __entry->name, __entry->ifindex |
44 | #define NETDEV_PR_ARG (__entry->name), MAC_PR_ARG(netdev_addr), \ | ||
45 | (__entry->ifindex) | ||
46 | 43 | ||
47 | #define MESH_CFG_ENTRY __field(u16, dot11MeshRetryTimeout) \ | 44 | #define MESH_CFG_ENTRY __field(u16, dot11MeshRetryTimeout) \ |
48 | __field(u16, dot11MeshConfirmTimeout) \ | 45 | __field(u16, dot11MeshConfirmTimeout) \ |
@@ -123,7 +120,7 @@ | |||
123 | __entry->center_freq = 0; \ | 120 | __entry->center_freq = 0; \ |
124 | } \ | 121 | } \ |
125 | } while (0) | 122 | } while (0) |
126 | #define CHAN_PR_FMT ", band: %d, freq: %u" | 123 | #define CHAN_PR_FMT "band: %d, freq: %u" |
127 | #define CHAN_PR_ARG __entry->band, __entry->center_freq | 124 | #define CHAN_PR_ARG __entry->band, __entry->center_freq |
128 | 125 | ||
129 | #define CHAN_DEF_ENTRY __field(enum ieee80211_band, band) \ | 126 | #define CHAN_DEF_ENTRY __field(enum ieee80211_band, band) \ |
@@ -149,7 +146,7 @@ | |||
149 | } \ | 146 | } \ |
150 | } while (0) | 147 | } while (0) |
151 | #define CHAN_DEF_PR_FMT \ | 148 | #define CHAN_DEF_PR_FMT \ |
152 | ", band: %d, control freq: %u, width: %d, cf1: %u, cf2: %u" | 149 | "band: %d, control freq: %u, width: %d, cf1: %u, cf2: %u" |
153 | #define CHAN_DEF_PR_ARG __entry->band, __entry->control_freq, \ | 150 | #define CHAN_DEF_PR_ARG __entry->band, __entry->control_freq, \ |
154 | __entry->width, __entry->center_freq1, \ | 151 | __entry->width, __entry->center_freq1, \ |
155 | __entry->center_freq2 | 152 | __entry->center_freq2 |
@@ -341,7 +338,7 @@ DECLARE_EVENT_CLASS(wiphy_wdev_evt, | |||
341 | WIPHY_ASSIGN; | 338 | WIPHY_ASSIGN; |
342 | WDEV_ASSIGN; | 339 | WDEV_ASSIGN; |
343 | ), | 340 | ), |
344 | TP_printk(WIPHY_PR_FMT WDEV_PR_FMT, WIPHY_PR_ARG, WDEV_PR_ARG) | 341 | TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT, WIPHY_PR_ARG, WDEV_PR_ARG) |
345 | ); | 342 | ); |
346 | 343 | ||
347 | DEFINE_EVENT(wiphy_wdev_evt, rdev_return_wdev, | 344 | DEFINE_EVENT(wiphy_wdev_evt, rdev_return_wdev, |
@@ -368,7 +365,7 @@ TRACE_EVENT(rdev_change_virtual_intf, | |||
368 | NETDEV_ASSIGN; | 365 | NETDEV_ASSIGN; |
369 | __entry->type = type; | 366 | __entry->type = type; |
370 | ), | 367 | ), |
371 | TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", type: %d", | 368 | TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", type: %d", |
372 | WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->type) | 369 | WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->type) |
373 | ); | 370 | ); |
374 | 371 | ||
@@ -390,7 +387,7 @@ DECLARE_EVENT_CLASS(key_handle, | |||
390 | __entry->key_index = key_index; | 387 | __entry->key_index = key_index; |
391 | __entry->pairwise = pairwise; | 388 | __entry->pairwise = pairwise; |
392 | ), | 389 | ), |
393 | TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", key_index: %u, pairwise: %s, mac addr: " MAC_PR_FMT, | 390 | TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", key_index: %u, pairwise: %s, mac addr: " MAC_PR_FMT, |
394 | WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->key_index, | 391 | WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->key_index, |
395 | BOOL_TO_STR(__entry->pairwise), MAC_PR_ARG(mac_addr)) | 392 | BOOL_TO_STR(__entry->pairwise), MAC_PR_ARG(mac_addr)) |
396 | ); | 393 | ); |
@@ -431,7 +428,7 @@ TRACE_EVENT(rdev_set_default_key, | |||
431 | __entry->unicast = unicast; | 428 | __entry->unicast = unicast; |
432 | __entry->multicast = multicast; | 429 | __entry->multicast = multicast; |
433 | ), | 430 | ), |
434 | TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", key index: %u, unicast: %s, multicast: %s", | 431 | TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", key index: %u, unicast: %s, multicast: %s", |
435 | WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->key_index, | 432 | WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->key_index, |
436 | BOOL_TO_STR(__entry->unicast), | 433 | BOOL_TO_STR(__entry->unicast), |
437 | BOOL_TO_STR(__entry->multicast)) | 434 | BOOL_TO_STR(__entry->multicast)) |
@@ -450,7 +447,7 @@ TRACE_EVENT(rdev_set_default_mgmt_key, | |||
450 | NETDEV_ASSIGN; | 447 | NETDEV_ASSIGN; |
451 | __entry->key_index = key_index; | 448 | __entry->key_index = key_index; |
452 | ), | 449 | ), |
453 | TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", key index: %u", | 450 | TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", key index: %u", |
454 | WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->key_index) | 451 | WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->key_index) |
455 | ); | 452 | ); |
456 | 453 | ||
@@ -485,7 +482,7 @@ TRACE_EVENT(rdev_start_ap, | |||
485 | memset(__entry->ssid, 0, IEEE80211_MAX_SSID_LEN + 1); | 482 | memset(__entry->ssid, 0, IEEE80211_MAX_SSID_LEN + 1); |
486 | memcpy(__entry->ssid, settings->ssid, settings->ssid_len); | 483 | memcpy(__entry->ssid, settings->ssid, settings->ssid_len); |
487 | ), | 484 | ), |
488 | TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", AP settings - ssid: %s, " | 485 | TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", AP settings - ssid: %s, " |
489 | CHAN_DEF_PR_FMT ", beacon interval: %d, dtim period: %d, " | 486 | CHAN_DEF_PR_FMT ", beacon interval: %d, dtim period: %d, " |
490 | "hidden ssid: %d, wpa versions: %u, privacy: %s, " | 487 | "hidden ssid: %d, wpa versions: %u, privacy: %s, " |
491 | "auth type: %d, inactivity timeout: %d", | 488 | "auth type: %d, inactivity timeout: %d", |
@@ -538,7 +535,7 @@ TRACE_EVENT(rdev_change_beacon, | |||
538 | info->probe_resp, info->probe_resp_len); | 535 | info->probe_resp, info->probe_resp_len); |
539 | } | 536 | } |
540 | ), | 537 | ), |
541 | TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT, WIPHY_PR_ARG, NETDEV_PR_ARG) | 538 | TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT, WIPHY_PR_ARG, NETDEV_PR_ARG) |
542 | ); | 539 | ); |
543 | 540 | ||
544 | DECLARE_EVENT_CLASS(wiphy_netdev_evt, | 541 | DECLARE_EVENT_CLASS(wiphy_netdev_evt, |
@@ -552,7 +549,7 @@ DECLARE_EVENT_CLASS(wiphy_netdev_evt, | |||
552 | WIPHY_ASSIGN; | 549 | WIPHY_ASSIGN; |
553 | NETDEV_ASSIGN; | 550 | NETDEV_ASSIGN; |
554 | ), | 551 | ), |
555 | TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT, WIPHY_PR_ARG, NETDEV_PR_ARG) | 552 | TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT, WIPHY_PR_ARG, NETDEV_PR_ARG) |
556 | ); | 553 | ); |
557 | 554 | ||
558 | DEFINE_EVENT(wiphy_netdev_evt, rdev_stop_ap, | 555 | DEFINE_EVENT(wiphy_netdev_evt, rdev_stop_ap, |
@@ -630,7 +627,7 @@ DECLARE_EVENT_CLASS(station_add_change, | |||
630 | memcpy(__entry->ht_capa, params->ht_capa, | 627 | memcpy(__entry->ht_capa, params->ht_capa, |
631 | sizeof(struct ieee80211_ht_cap)); | 628 | sizeof(struct ieee80211_ht_cap)); |
632 | ), | 629 | ), |
633 | TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", station mac: " MAC_PR_FMT | 630 | TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", station mac: " MAC_PR_FMT |
634 | ", station flags mask: %u, station flags set: %u, " | 631 | ", station flags mask: %u, station flags set: %u, " |
635 | "station modify mask: %u, listen interval: %d, aid: %u, " | 632 | "station modify mask: %u, listen interval: %d, aid: %u, " |
636 | "plink action: %u, plink state: %u, uapsd queues: %u", | 633 | "plink action: %u, plink state: %u, uapsd queues: %u", |
@@ -666,7 +663,7 @@ DECLARE_EVENT_CLASS(wiphy_netdev_mac_evt, | |||
666 | NETDEV_ASSIGN; | 663 | NETDEV_ASSIGN; |
667 | MAC_ASSIGN(sta_mac, mac); | 664 | MAC_ASSIGN(sta_mac, mac); |
668 | ), | 665 | ), |
669 | TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", mac: " MAC_PR_FMT, | 666 | TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", mac: " MAC_PR_FMT, |
670 | WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(sta_mac)) | 667 | WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(sta_mac)) |
671 | ); | 668 | ); |
672 | 669 | ||
@@ -706,7 +703,7 @@ TRACE_EVENT(rdev_dump_station, | |||
706 | MAC_ASSIGN(sta_mac, mac); | 703 | MAC_ASSIGN(sta_mac, mac); |
707 | __entry->idx = idx; | 704 | __entry->idx = idx; |
708 | ), | 705 | ), |
709 | TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", station mac: " MAC_PR_FMT ", idx: %d", | 706 | TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", station mac: " MAC_PR_FMT ", idx: %d", |
710 | WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(sta_mac), | 707 | WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(sta_mac), |
711 | __entry->idx) | 708 | __entry->idx) |
712 | ); | 709 | ); |
@@ -744,7 +741,7 @@ DECLARE_EVENT_CLASS(mpath_evt, | |||
744 | MAC_ASSIGN(dst, dst); | 741 | MAC_ASSIGN(dst, dst); |
745 | MAC_ASSIGN(next_hop, next_hop); | 742 | MAC_ASSIGN(next_hop, next_hop); |
746 | ), | 743 | ), |
747 | TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", destination: " MAC_PR_FMT ", next hop: " MAC_PR_FMT, | 744 | TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", destination: " MAC_PR_FMT ", next hop: " MAC_PR_FMT, |
748 | WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(dst), | 745 | WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(dst), |
749 | MAC_PR_ARG(next_hop)) | 746 | MAC_PR_ARG(next_hop)) |
750 | ); | 747 | ); |
@@ -785,7 +782,7 @@ TRACE_EVENT(rdev_dump_mpath, | |||
785 | MAC_ASSIGN(next_hop, next_hop); | 782 | MAC_ASSIGN(next_hop, next_hop); |
786 | __entry->idx = idx; | 783 | __entry->idx = idx; |
787 | ), | 784 | ), |
788 | TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", index: %d, destination: " | 785 | TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", index: %d, destination: " |
789 | MAC_PR_FMT ", next hop: " MAC_PR_FMT, | 786 | MAC_PR_FMT ", next hop: " MAC_PR_FMT, |
790 | WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->idx, MAC_PR_ARG(dst), | 787 | WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->idx, MAC_PR_ARG(dst), |
791 | MAC_PR_ARG(next_hop)) | 788 | MAC_PR_ARG(next_hop)) |
@@ -862,7 +859,7 @@ TRACE_EVENT(rdev_update_mesh_config, | |||
862 | MESH_CFG_ASSIGN; | 859 | MESH_CFG_ASSIGN; |
863 | __entry->mask = mask; | 860 | __entry->mask = mask; |
864 | ), | 861 | ), |
865 | TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", mask: %u", | 862 | TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", mask: %u", |
866 | WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->mask) | 863 | WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->mask) |
867 | ); | 864 | ); |
868 | 865 | ||
@@ -881,7 +878,7 @@ TRACE_EVENT(rdev_join_mesh, | |||
881 | NETDEV_ASSIGN; | 878 | NETDEV_ASSIGN; |
882 | MESH_CFG_ASSIGN; | 879 | MESH_CFG_ASSIGN; |
883 | ), | 880 | ), |
884 | TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT, | 881 | TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT, |
885 | WIPHY_PR_ARG, NETDEV_PR_ARG) | 882 | WIPHY_PR_ARG, NETDEV_PR_ARG) |
886 | ); | 883 | ); |
887 | 884 | ||
@@ -907,7 +904,7 @@ TRACE_EVENT(rdev_change_bss, | |||
907 | __entry->ap_isolate = params->ap_isolate; | 904 | __entry->ap_isolate = params->ap_isolate; |
908 | __entry->ht_opmode = params->ht_opmode; | 905 | __entry->ht_opmode = params->ht_opmode; |
909 | ), | 906 | ), |
910 | TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", use cts prot: %d, " | 907 | TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", use cts prot: %d, " |
911 | "use short preamble: %d, use short slot time: %d, " | 908 | "use short preamble: %d, use short slot time: %d, " |
912 | "ap isolate: %d, ht opmode: %d", | 909 | "ap isolate: %d, ht opmode: %d", |
913 | WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->use_cts_prot, | 910 | WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->use_cts_prot, |
@@ -937,7 +934,7 @@ TRACE_EVENT(rdev_set_txq_params, | |||
937 | __entry->cwmax = params->cwmax; | 934 | __entry->cwmax = params->cwmax; |
938 | __entry->aifs = params->aifs; | 935 | __entry->aifs = params->aifs; |
939 | ), | 936 | ), |
940 | TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", ac: %d, txop: %u, cwmin: %u, cwmax: %u, aifs: %u", | 937 | TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", ac: %d, txop: %u, cwmin: %u, cwmax: %u, aifs: %u", |
941 | WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->ac, __entry->txop, | 938 | WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->ac, __entry->txop, |
942 | __entry->cwmin, __entry->cwmax, __entry->aifs) | 939 | __entry->cwmin, __entry->cwmax, __entry->aifs) |
943 | ); | 940 | ); |
@@ -956,7 +953,7 @@ TRACE_EVENT(rdev_libertas_set_mesh_channel, | |||
956 | NETDEV_ASSIGN; | 953 | NETDEV_ASSIGN; |
957 | CHAN_ASSIGN(chan); | 954 | CHAN_ASSIGN(chan); |
958 | ), | 955 | ), |
959 | TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT CHAN_PR_FMT, WIPHY_PR_ARG, | 956 | TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " CHAN_PR_FMT, WIPHY_PR_ARG, |
960 | NETDEV_PR_ARG, CHAN_PR_ARG) | 957 | NETDEV_PR_ARG, CHAN_PR_ARG) |
961 | ); | 958 | ); |
962 | 959 | ||
@@ -972,7 +969,7 @@ TRACE_EVENT(rdev_set_monitor_channel, | |||
972 | WIPHY_ASSIGN; | 969 | WIPHY_ASSIGN; |
973 | CHAN_DEF_ASSIGN(chandef); | 970 | CHAN_DEF_ASSIGN(chandef); |
974 | ), | 971 | ), |
975 | TP_printk(WIPHY_PR_FMT CHAN_DEF_PR_FMT, | 972 | TP_printk(WIPHY_PR_FMT ", " CHAN_DEF_PR_FMT, |
976 | WIPHY_PR_ARG, CHAN_DEF_PR_ARG) | 973 | WIPHY_PR_ARG, CHAN_DEF_PR_ARG) |
977 | ); | 974 | ); |
978 | 975 | ||
@@ -995,7 +992,7 @@ TRACE_EVENT(rdev_auth, | |||
995 | memset(__entry->bssid, 0, ETH_ALEN); | 992 | memset(__entry->bssid, 0, ETH_ALEN); |
996 | __entry->auth_type = req->auth_type; | 993 | __entry->auth_type = req->auth_type; |
997 | ), | 994 | ), |
998 | TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", auth type: %d, bssid: " MAC_PR_FMT, | 995 | TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", auth type: %d, bssid: " MAC_PR_FMT, |
999 | WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->auth_type, | 996 | WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->auth_type, |
1000 | MAC_PR_ARG(bssid)) | 997 | MAC_PR_ARG(bssid)) |
1001 | ); | 998 | ); |
@@ -1023,7 +1020,7 @@ TRACE_EVENT(rdev_assoc, | |||
1023 | __entry->use_mfp = req->use_mfp; | 1020 | __entry->use_mfp = req->use_mfp; |
1024 | __entry->flags = req->flags; | 1021 | __entry->flags = req->flags; |
1025 | ), | 1022 | ), |
1026 | TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", bssid: " MAC_PR_FMT | 1023 | TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", bssid: " MAC_PR_FMT |
1027 | ", previous bssid: " MAC_PR_FMT ", use mfp: %s, flags: %u", | 1024 | ", previous bssid: " MAC_PR_FMT ", use mfp: %s, flags: %u", |
1028 | WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid), | 1025 | WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid), |
1029 | MAC_PR_ARG(prev_bssid), BOOL_TO_STR(__entry->use_mfp), | 1026 | MAC_PR_ARG(prev_bssid), BOOL_TO_STR(__entry->use_mfp), |
@@ -1046,7 +1043,7 @@ TRACE_EVENT(rdev_deauth, | |||
1046 | MAC_ASSIGN(bssid, req->bssid); | 1043 | MAC_ASSIGN(bssid, req->bssid); |
1047 | __entry->reason_code = req->reason_code; | 1044 | __entry->reason_code = req->reason_code; |
1048 | ), | 1045 | ), |
1049 | TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", bssid: " MAC_PR_FMT ", reason: %u", | 1046 | TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", bssid: " MAC_PR_FMT ", reason: %u", |
1050 | WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid), | 1047 | WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid), |
1051 | __entry->reason_code) | 1048 | __entry->reason_code) |
1052 | ); | 1049 | ); |
@@ -1072,7 +1069,7 @@ TRACE_EVENT(rdev_disassoc, | |||
1072 | __entry->reason_code = req->reason_code; | 1069 | __entry->reason_code = req->reason_code; |
1073 | __entry->local_state_change = req->local_state_change; | 1070 | __entry->local_state_change = req->local_state_change; |
1074 | ), | 1071 | ), |
1075 | TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", bssid: " MAC_PR_FMT | 1072 | TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", bssid: " MAC_PR_FMT |
1076 | ", reason: %u, local state change: %s", | 1073 | ", reason: %u, local state change: %s", |
1077 | WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid), | 1074 | WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid), |
1078 | __entry->reason_code, | 1075 | __entry->reason_code, |
@@ -1093,7 +1090,7 @@ TRACE_EVENT(rdev_mgmt_tx_cancel_wait, | |||
1093 | WDEV_ASSIGN; | 1090 | WDEV_ASSIGN; |
1094 | __entry->cookie = cookie; | 1091 | __entry->cookie = cookie; |
1095 | ), | 1092 | ), |
1096 | TP_printk(WIPHY_PR_FMT WDEV_PR_FMT ", cookie: %llu ", | 1093 | TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", cookie: %llu ", |
1097 | WIPHY_PR_ARG, WDEV_PR_ARG, __entry->cookie) | 1094 | WIPHY_PR_ARG, WDEV_PR_ARG, __entry->cookie) |
1098 | ); | 1095 | ); |
1099 | 1096 | ||
@@ -1113,7 +1110,7 @@ TRACE_EVENT(rdev_set_power_mgmt, | |||
1113 | __entry->enabled = enabled; | 1110 | __entry->enabled = enabled; |
1114 | __entry->timeout = timeout; | 1111 | __entry->timeout = timeout; |
1115 | ), | 1112 | ), |
1116 | TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", %senabled, timeout: %d ", | 1113 | TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", %senabled, timeout: %d ", |
1117 | WIPHY_PR_ARG, NETDEV_PR_ARG, | 1114 | WIPHY_PR_ARG, NETDEV_PR_ARG, |
1118 | __entry->enabled ? "" : "not ", __entry->timeout) | 1115 | __entry->enabled ? "" : "not ", __entry->timeout) |
1119 | ); | 1116 | ); |
@@ -1143,7 +1140,7 @@ TRACE_EVENT(rdev_connect, | |||
1143 | __entry->wpa_versions = sme->crypto.wpa_versions; | 1140 | __entry->wpa_versions = sme->crypto.wpa_versions; |
1144 | __entry->flags = sme->flags; | 1141 | __entry->flags = sme->flags; |
1145 | ), | 1142 | ), |
1146 | TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", bssid: " MAC_PR_FMT | 1143 | TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", bssid: " MAC_PR_FMT |
1147 | ", ssid: %s, auth type: %d, privacy: %s, wpa versions: %u, " | 1144 | ", ssid: %s, auth type: %d, privacy: %s, wpa versions: %u, " |
1148 | "flags: %u", | 1145 | "flags: %u", |
1149 | WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid), __entry->ssid, | 1146 | WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid), __entry->ssid, |
@@ -1168,7 +1165,7 @@ TRACE_EVENT(rdev_set_cqm_rssi_config, | |||
1168 | __entry->rssi_thold = rssi_thold; | 1165 | __entry->rssi_thold = rssi_thold; |
1169 | __entry->rssi_hyst = rssi_hyst; | 1166 | __entry->rssi_hyst = rssi_hyst; |
1170 | ), | 1167 | ), |
1171 | TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT | 1168 | TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT |
1172 | ", rssi_thold: %d, rssi_hyst: %u ", | 1169 | ", rssi_thold: %d, rssi_hyst: %u ", |
1173 | WIPHY_PR_ARG, NETDEV_PR_ARG, | 1170 | WIPHY_PR_ARG, NETDEV_PR_ARG, |
1174 | __entry->rssi_thold, __entry->rssi_hyst) | 1171 | __entry->rssi_thold, __entry->rssi_hyst) |
@@ -1192,7 +1189,7 @@ TRACE_EVENT(rdev_set_cqm_txe_config, | |||
1192 | __entry->pkts = pkts; | 1189 | __entry->pkts = pkts; |
1193 | __entry->intvl = intvl; | 1190 | __entry->intvl = intvl; |
1194 | ), | 1191 | ), |
1195 | TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", rate: %u, packets: %u, interval: %u", | 1192 | TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", rate: %u, packets: %u, interval: %u", |
1196 | WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->rate, __entry->pkts, | 1193 | WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->rate, __entry->pkts, |
1197 | __entry->intvl) | 1194 | __entry->intvl) |
1198 | ); | 1195 | ); |
@@ -1211,7 +1208,7 @@ TRACE_EVENT(rdev_disconnect, | |||
1211 | NETDEV_ASSIGN; | 1208 | NETDEV_ASSIGN; |
1212 | __entry->reason_code = reason_code; | 1209 | __entry->reason_code = reason_code; |
1213 | ), | 1210 | ), |
1214 | TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", reason code: %u", WIPHY_PR_ARG, | 1211 | TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", reason code: %u", WIPHY_PR_ARG, |
1215 | NETDEV_PR_ARG, __entry->reason_code) | 1212 | NETDEV_PR_ARG, __entry->reason_code) |
1216 | ); | 1213 | ); |
1217 | 1214 | ||
@@ -1232,7 +1229,7 @@ TRACE_EVENT(rdev_join_ibss, | |||
1232 | memset(__entry->ssid, 0, IEEE80211_MAX_SSID_LEN + 1); | 1229 | memset(__entry->ssid, 0, IEEE80211_MAX_SSID_LEN + 1); |
1233 | memcpy(__entry->ssid, params->ssid, params->ssid_len); | 1230 | memcpy(__entry->ssid, params->ssid, params->ssid_len); |
1234 | ), | 1231 | ), |
1235 | TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", bssid: " MAC_PR_FMT ", ssid: %s", | 1232 | TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", bssid: " MAC_PR_FMT ", ssid: %s", |
1236 | WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid), __entry->ssid) | 1233 | WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid), __entry->ssid) |
1237 | ); | 1234 | ); |
1238 | 1235 | ||
@@ -1272,7 +1269,7 @@ TRACE_EVENT(rdev_set_tx_power, | |||
1272 | __entry->type = type; | 1269 | __entry->type = type; |
1273 | __entry->mbm = mbm; | 1270 | __entry->mbm = mbm; |
1274 | ), | 1271 | ), |
1275 | TP_printk(WIPHY_PR_FMT WDEV_PR_FMT ", type: %d, mbm: %d", | 1272 | TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", type: %u, mbm: %d", |
1276 | WIPHY_PR_ARG, WDEV_PR_ARG,__entry->type, __entry->mbm) | 1273 | WIPHY_PR_ARG, WDEV_PR_ARG,__entry->type, __entry->mbm) |
1277 | ); | 1274 | ); |
1278 | 1275 | ||
@@ -1333,7 +1330,7 @@ TRACE_EVENT(rdev_set_bitrate_mask, | |||
1333 | NETDEV_ASSIGN; | 1330 | NETDEV_ASSIGN; |
1334 | MAC_ASSIGN(peer, peer); | 1331 | MAC_ASSIGN(peer, peer); |
1335 | ), | 1332 | ), |
1336 | TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", peer: " MAC_PR_FMT, | 1333 | TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", peer: " MAC_PR_FMT, |
1337 | WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer)) | 1334 | WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer)) |
1338 | ); | 1335 | ); |
1339 | 1336 | ||
@@ -1353,7 +1350,7 @@ TRACE_EVENT(rdev_mgmt_frame_register, | |||
1353 | __entry->frame_type = frame_type; | 1350 | __entry->frame_type = frame_type; |
1354 | __entry->reg = reg; | 1351 | __entry->reg = reg; |
1355 | ), | 1352 | ), |
1356 | TP_printk(WIPHY_PR_FMT WDEV_PR_FMT ", frame_type: %u, reg: %s ", | 1353 | TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", frame_type: 0x%.2x, reg: %s ", |
1357 | WIPHY_PR_ARG, WDEV_PR_ARG, __entry->frame_type, | 1354 | WIPHY_PR_ARG, WDEV_PR_ARG, __entry->frame_type, |
1358 | __entry->reg ? "true" : "false") | 1355 | __entry->reg ? "true" : "false") |
1359 | ); | 1356 | ); |
@@ -1439,7 +1436,7 @@ TRACE_EVENT(rdev_sched_scan_start, | |||
1439 | WIPHY_ASSIGN; | 1436 | WIPHY_ASSIGN; |
1440 | NETDEV_ASSIGN; | 1437 | NETDEV_ASSIGN; |
1441 | ), | 1438 | ), |
1442 | TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT, | 1439 | TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT, |
1443 | WIPHY_PR_ARG, NETDEV_PR_ARG) | 1440 | WIPHY_PR_ARG, NETDEV_PR_ARG) |
1444 | ); | 1441 | ); |
1445 | 1442 | ||
@@ -1467,7 +1464,7 @@ TRACE_EVENT(rdev_tdls_mgmt, | |||
1467 | __entry->status_code = status_code; | 1464 | __entry->status_code = status_code; |
1468 | memcpy(__get_dynamic_array(buf), buf, len); | 1465 | memcpy(__get_dynamic_array(buf), buf, len); |
1469 | ), | 1466 | ), |
1470 | TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT MAC_PR_FMT ", action_code: %u, " | 1467 | TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " MAC_PR_FMT ", action_code: %u, " |
1471 | "dialog_token: %u, status_code: %u, buf: %#.2x ", | 1468 | "dialog_token: %u, status_code: %u, buf: %#.2x ", |
1472 | WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer), | 1469 | WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer), |
1473 | __entry->action_code, __entry->dialog_token, | 1470 | __entry->action_code, __entry->dialog_token, |
@@ -1487,7 +1484,7 @@ TRACE_EVENT(rdev_dump_survey, | |||
1487 | NETDEV_ASSIGN; | 1484 | NETDEV_ASSIGN; |
1488 | __entry->idx = idx; | 1485 | __entry->idx = idx; |
1489 | ), | 1486 | ), |
1490 | TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", index: %d", | 1487 | TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", index: %d", |
1491 | WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->idx) | 1488 | WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->idx) |
1492 | ); | 1489 | ); |
1493 | 1490 | ||
@@ -1544,7 +1541,7 @@ TRACE_EVENT(rdev_tdls_oper, | |||
1544 | MAC_ASSIGN(peer, peer); | 1541 | MAC_ASSIGN(peer, peer); |
1545 | __entry->oper = oper; | 1542 | __entry->oper = oper; |
1546 | ), | 1543 | ), |
1547 | TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT MAC_PR_FMT ", oper: %d", | 1544 | TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " MAC_PR_FMT ", oper: %d", |
1548 | WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer), __entry->oper) | 1545 | WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer), __entry->oper) |
1549 | ); | 1546 | ); |
1550 | 1547 | ||
@@ -1562,7 +1559,7 @@ DECLARE_EVENT_CLASS(rdev_pmksa, | |||
1562 | NETDEV_ASSIGN; | 1559 | NETDEV_ASSIGN; |
1563 | MAC_ASSIGN(bssid, pmksa->bssid); | 1560 | MAC_ASSIGN(bssid, pmksa->bssid); |
1564 | ), | 1561 | ), |
1565 | TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", bssid: " MAC_PR_FMT, | 1562 | TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", bssid: " MAC_PR_FMT, |
1566 | WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid)) | 1563 | WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid)) |
1567 | ); | 1564 | ); |
1568 | 1565 | ||
@@ -1580,7 +1577,7 @@ TRACE_EVENT(rdev_probe_client, | |||
1580 | NETDEV_ASSIGN; | 1577 | NETDEV_ASSIGN; |
1581 | MAC_ASSIGN(peer, peer); | 1578 | MAC_ASSIGN(peer, peer); |
1582 | ), | 1579 | ), |
1583 | TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT MAC_PR_FMT, | 1580 | TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " MAC_PR_FMT, |
1584 | WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer)) | 1581 | WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer)) |
1585 | ); | 1582 | ); |
1586 | 1583 | ||
@@ -1613,7 +1610,7 @@ TRACE_EVENT(rdev_remain_on_channel, | |||
1613 | CHAN_ASSIGN(chan); | 1610 | CHAN_ASSIGN(chan); |
1614 | __entry->duration = duration; | 1611 | __entry->duration = duration; |
1615 | ), | 1612 | ), |
1616 | TP_printk(WIPHY_PR_FMT WDEV_PR_FMT CHAN_PR_FMT ", duration: %u", | 1613 | TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", " CHAN_PR_FMT ", duration: %u", |
1617 | WIPHY_PR_ARG, WDEV_PR_ARG, CHAN_PR_ARG, __entry->duration) | 1614 | WIPHY_PR_ARG, WDEV_PR_ARG, CHAN_PR_ARG, __entry->duration) |
1618 | ); | 1615 | ); |
1619 | 1616 | ||
@@ -1647,7 +1644,7 @@ TRACE_EVENT(rdev_cancel_remain_on_channel, | |||
1647 | WDEV_ASSIGN; | 1644 | WDEV_ASSIGN; |
1648 | __entry->cookie = cookie; | 1645 | __entry->cookie = cookie; |
1649 | ), | 1646 | ), |
1650 | TP_printk(WIPHY_PR_FMT WDEV_PR_FMT ", cookie: %llu", | 1647 | TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", cookie: %llu", |
1651 | WIPHY_PR_ARG, WDEV_PR_ARG, __entry->cookie) | 1648 | WIPHY_PR_ARG, WDEV_PR_ARG, __entry->cookie) |
1652 | ); | 1649 | ); |
1653 | 1650 | ||
@@ -1674,7 +1671,7 @@ TRACE_EVENT(rdev_mgmt_tx, | |||
1674 | __entry->no_cck = no_cck; | 1671 | __entry->no_cck = no_cck; |
1675 | __entry->dont_wait_for_ack = dont_wait_for_ack; | 1672 | __entry->dont_wait_for_ack = dont_wait_for_ack; |
1676 | ), | 1673 | ), |
1677 | TP_printk(WIPHY_PR_FMT WDEV_PR_FMT CHAN_PR_FMT ", offchan: %s," | 1674 | TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", " CHAN_PR_FMT ", offchan: %s," |
1678 | " wait: %u, no cck: %s, dont wait for ack: %s", | 1675 | " wait: %u, no cck: %s, dont wait for ack: %s", |
1679 | WIPHY_PR_ARG, WDEV_PR_ARG, CHAN_PR_ARG, | 1676 | WIPHY_PR_ARG, WDEV_PR_ARG, CHAN_PR_ARG, |
1680 | BOOL_TO_STR(__entry->offchan), __entry->wait, | 1677 | BOOL_TO_STR(__entry->offchan), __entry->wait, |
@@ -1696,7 +1693,7 @@ TRACE_EVENT(rdev_set_noack_map, | |||
1696 | NETDEV_ASSIGN; | 1693 | NETDEV_ASSIGN; |
1697 | __entry->noack_map = noack_map; | 1694 | __entry->noack_map = noack_map; |
1698 | ), | 1695 | ), |
1699 | TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", noack_map: %u", | 1696 | TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", noack_map: %u", |
1700 | WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->noack_map) | 1697 | WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->noack_map) |
1701 | ); | 1698 | ); |
1702 | 1699 | ||
@@ -1713,7 +1710,7 @@ TRACE_EVENT(rdev_get_et_sset_count, | |||
1713 | NETDEV_ASSIGN; | 1710 | NETDEV_ASSIGN; |
1714 | __entry->sset = sset; | 1711 | __entry->sset = sset; |
1715 | ), | 1712 | ), |
1716 | TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", sset: %d", | 1713 | TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", sset: %d", |
1717 | WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->sset) | 1714 | WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->sset) |
1718 | ); | 1715 | ); |
1719 | 1716 | ||
@@ -1730,7 +1727,7 @@ TRACE_EVENT(rdev_get_et_strings, | |||
1730 | NETDEV_ASSIGN; | 1727 | NETDEV_ASSIGN; |
1731 | __entry->sset = sset; | 1728 | __entry->sset = sset; |
1732 | ), | 1729 | ), |
1733 | TP_printk(WIPHY_PR_FMT NETDEV_PR_FMT ", sset: %u", | 1730 | TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", sset: %u", |
1734 | WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->sset) | 1731 | WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->sset) |
1735 | ); | 1732 | ); |
1736 | 1733 | ||
@@ -1756,7 +1753,7 @@ TRACE_EVENT(rdev_return_chandef, | |||
1756 | CHAN_DEF_ASSIGN((struct cfg80211_chan_def *)NULL); | 1753 | CHAN_DEF_ASSIGN((struct cfg80211_chan_def *)NULL); |
1757 | __entry->ret = ret; | 1754 | __entry->ret = ret; |
1758 | ), | 1755 | ), |
1759 | TP_printk(WIPHY_PR_FMT CHAN_DEF_PR_FMT ", ret: %d", | 1756 | TP_printk(WIPHY_PR_FMT ", " CHAN_DEF_PR_FMT ", ret: %d", |
1760 | WIPHY_PR_ARG, CHAN_DEF_PR_ARG, __entry->ret) | 1757 | WIPHY_PR_ARG, CHAN_DEF_PR_ARG, __entry->ret) |
1761 | ); | 1758 | ); |
1762 | 1759 | ||
@@ -1836,7 +1833,7 @@ TRACE_EVENT(cfg80211_send_rx_assoc, | |||
1836 | MAC_ASSIGN(bssid, bss->bssid); | 1833 | MAC_ASSIGN(bssid, bss->bssid); |
1837 | CHAN_ASSIGN(bss->channel); | 1834 | CHAN_ASSIGN(bss->channel); |
1838 | ), | 1835 | ), |
1839 | TP_printk(NETDEV_PR_FMT MAC_PR_FMT CHAN_PR_FMT, | 1836 | TP_printk(NETDEV_PR_FMT ", " MAC_PR_FMT ", " CHAN_PR_FMT, |
1840 | NETDEV_PR_ARG, MAC_PR_ARG(bssid), CHAN_PR_ARG) | 1837 | NETDEV_PR_ARG, MAC_PR_ARG(bssid), CHAN_PR_ARG) |
1841 | ); | 1838 | ); |
1842 | 1839 | ||
@@ -1903,7 +1900,7 @@ TRACE_EVENT(cfg80211_michael_mic_failure, | |||
1903 | __entry->key_id = key_id; | 1900 | __entry->key_id = key_id; |
1904 | memcpy(__entry->tsc, tsc, 6); | 1901 | memcpy(__entry->tsc, tsc, 6); |
1905 | ), | 1902 | ), |
1906 | TP_printk(NETDEV_PR_FMT MAC_PR_FMT ", key type: %d, key id: %d, tsc: %pm", | 1903 | TP_printk(NETDEV_PR_FMT ", " MAC_PR_FMT ", key type: %d, key id: %d, tsc: %pm", |
1907 | NETDEV_PR_ARG, MAC_PR_ARG(addr), __entry->key_type, | 1904 | NETDEV_PR_ARG, MAC_PR_ARG(addr), __entry->key_type, |
1908 | __entry->key_id, __entry->tsc) | 1905 | __entry->key_id, __entry->tsc) |
1909 | ); | 1906 | ); |
@@ -1962,7 +1959,7 @@ TRACE_EVENT(cfg80211_new_sta, | |||
1962 | MAC_ASSIGN(mac_addr, mac_addr); | 1959 | MAC_ASSIGN(mac_addr, mac_addr); |
1963 | SINFO_ASSIGN; | 1960 | SINFO_ASSIGN; |
1964 | ), | 1961 | ), |
1965 | TP_printk(NETDEV_PR_FMT MAC_PR_FMT, | 1962 | TP_printk(NETDEV_PR_FMT ", " MAC_PR_FMT, |
1966 | NETDEV_PR_ARG, MAC_PR_ARG(mac_addr)) | 1963 | NETDEV_PR_ARG, MAC_PR_ARG(mac_addr)) |
1967 | ); | 1964 | ); |
1968 | 1965 | ||
@@ -2032,7 +2029,7 @@ TRACE_EVENT(cfg80211_reg_can_beacon, | |||
2032 | WIPHY_ASSIGN; | 2029 | WIPHY_ASSIGN; |
2033 | CHAN_DEF_ASSIGN(chandef); | 2030 | CHAN_DEF_ASSIGN(chandef); |
2034 | ), | 2031 | ), |
2035 | TP_printk(WIPHY_PR_FMT CHAN_DEF_PR_FMT, | 2032 | TP_printk(WIPHY_PR_FMT ", " CHAN_DEF_PR_FMT, |
2036 | WIPHY_PR_ARG, CHAN_DEF_PR_ARG) | 2033 | WIPHY_PR_ARG, CHAN_DEF_PR_ARG) |
2037 | ); | 2034 | ); |
2038 | 2035 | ||
@@ -2048,7 +2045,7 @@ TRACE_EVENT(cfg80211_ch_switch_notify, | |||
2048 | NETDEV_ASSIGN; | 2045 | NETDEV_ASSIGN; |
2049 | CHAN_DEF_ASSIGN(chandef); | 2046 | CHAN_DEF_ASSIGN(chandef); |
2050 | ), | 2047 | ), |
2051 | TP_printk(NETDEV_PR_FMT CHAN_DEF_PR_FMT, | 2048 | TP_printk(NETDEV_PR_FMT ", " CHAN_DEF_PR_FMT, |
2052 | NETDEV_PR_ARG, CHAN_DEF_PR_ARG) | 2049 | NETDEV_PR_ARG, CHAN_DEF_PR_ARG) |
2053 | ); | 2050 | ); |
2054 | 2051 | ||
@@ -2063,7 +2060,7 @@ DECLARE_EVENT_CLASS(cfg80211_rx_evt, | |||
2063 | NETDEV_ASSIGN; | 2060 | NETDEV_ASSIGN; |
2064 | MAC_ASSIGN(addr, addr); | 2061 | MAC_ASSIGN(addr, addr); |
2065 | ), | 2062 | ), |
2066 | TP_printk(NETDEV_PR_FMT MAC_PR_FMT, NETDEV_PR_ARG, MAC_PR_ARG(addr)) | 2063 | TP_printk(NETDEV_PR_FMT ", " MAC_PR_FMT, NETDEV_PR_ARG, MAC_PR_ARG(addr)) |
2067 | ); | 2064 | ); |
2068 | 2065 | ||
2069 | DEFINE_EVENT(cfg80211_rx_evt, cfg80211_ibss_joined, | 2066 | DEFINE_EVENT(cfg80211_rx_evt, cfg80211_ibss_joined, |
@@ -2097,7 +2094,7 @@ TRACE_EVENT(cfg80211_probe_status, | |||
2097 | __entry->cookie = cookie; | 2094 | __entry->cookie = cookie; |
2098 | __entry->acked = acked; | 2095 | __entry->acked = acked; |
2099 | ), | 2096 | ), |
2100 | TP_printk(NETDEV_PR_FMT MAC_PR_FMT ", cookie: %llu, acked: %s", | 2097 | TP_printk(NETDEV_PR_FMT " addr:" MAC_PR_FMT ", cookie: %llu, acked: %s", |
2101 | NETDEV_PR_ARG, MAC_PR_ARG(addr), __entry->cookie, | 2098 | NETDEV_PR_ARG, MAC_PR_ARG(addr), __entry->cookie, |
2102 | BOOL_TO_STR(__entry->acked)) | 2099 | BOOL_TO_STR(__entry->acked)) |
2103 | ); | 2100 | ); |
@@ -2247,7 +2244,7 @@ TRACE_EVENT(cfg80211_get_bss, | |||
2247 | __entry->capa_mask = capa_mask; | 2244 | __entry->capa_mask = capa_mask; |
2248 | __entry->capa_val = capa_val; | 2245 | __entry->capa_val = capa_val; |
2249 | ), | 2246 | ), |
2250 | TP_printk(WIPHY_PR_FMT CHAN_PR_FMT MAC_PR_FMT ", buf: %#.2x, " | 2247 | TP_printk(WIPHY_PR_FMT ", " CHAN_PR_FMT ", " MAC_PR_FMT ", buf: %#.2x, " |
2251 | "capa_mask: %d, capa_val: %u", WIPHY_PR_ARG, CHAN_PR_ARG, | 2248 | "capa_mask: %d, capa_val: %u", WIPHY_PR_ARG, CHAN_PR_ARG, |
2252 | MAC_PR_ARG(bssid), ((u8 *)__get_dynamic_array(ssid))[0], | 2249 | MAC_PR_ARG(bssid), ((u8 *)__get_dynamic_array(ssid))[0], |
2253 | __entry->capa_mask, __entry->capa_val) | 2250 | __entry->capa_mask, __entry->capa_val) |
@@ -2271,7 +2268,7 @@ TRACE_EVENT(cfg80211_inform_bss_frame, | |||
2271 | memcpy(__get_dynamic_array(mgmt), mgmt, len); | 2268 | memcpy(__get_dynamic_array(mgmt), mgmt, len); |
2272 | __entry->signal = signal; | 2269 | __entry->signal = signal; |
2273 | ), | 2270 | ), |
2274 | TP_printk(WIPHY_PR_FMT CHAN_PR_FMT "signal: %d", | 2271 | TP_printk(WIPHY_PR_FMT ", " CHAN_PR_FMT "signal: %d", |
2275 | WIPHY_PR_ARG, CHAN_PR_ARG, __entry->signal) | 2272 | WIPHY_PR_ARG, CHAN_PR_ARG, __entry->signal) |
2276 | ); | 2273 | ); |
2277 | 2274 | ||
@@ -2286,7 +2283,7 @@ DECLARE_EVENT_CLASS(cfg80211_bss_evt, | |||
2286 | MAC_ASSIGN(bssid, pub->bssid); | 2283 | MAC_ASSIGN(bssid, pub->bssid); |
2287 | CHAN_ASSIGN(pub->channel); | 2284 | CHAN_ASSIGN(pub->channel); |
2288 | ), | 2285 | ), |
2289 | TP_printk(MAC_PR_FMT CHAN_PR_FMT, MAC_PR_ARG(bssid), CHAN_PR_ARG) | 2286 | TP_printk(MAC_PR_FMT ", " CHAN_PR_FMT, MAC_PR_ARG(bssid), CHAN_PR_ARG) |
2290 | ); | 2287 | ); |
2291 | 2288 | ||
2292 | DEFINE_EVENT(cfg80211_bss_evt, cfg80211_return_bss, | 2289 | DEFINE_EVENT(cfg80211_bss_evt, cfg80211_return_bss, |