License cleanup: add SPDX GPL-2.0 license identifier to files with no license
Many source files in the tree are missing licensing information, which
makes it harder for compliance tools to determine the correct license.
By default all files without license information are under the default
license of the kernel, which is GPL version 2.
Update the files which contain no license information with the 'GPL-2.0'
SPDX license identifier. The SPDX identifier is a legally binding
shorthand, which can be used instead of the full boiler plate text.
This patch is based on work done by Thomas Gleixner and Kate Stewart and
Philippe Ombredanne.
How this work was done:
Patches were generated and checked against linux-4.14-rc6 for a subset of
the use cases:
- file had no licensing information it it.
- file was a */uapi/* one with no licensing information in it,
- file was a */uapi/* one with existing licensing information,
Further patches will be generated in subsequent months to fix up cases
where non-standard license headers were used, and references to license
had to be inferred by heuristics based on keywords.
The analysis to determine which SPDX License Identifier to be applied to
a file was done in a spreadsheet of side by side results from of the
output of two independent scanners (ScanCode & Windriver) producing SPDX
tag:value files created by Philippe Ombredanne. Philippe prepared the
base worksheet, and did an initial spot review of a few 1000 files.
The 4.13 kernel was the starting point of the analysis with 60,537 files
assessed. Kate Stewart did a file by file comparison of the scanner
results in the spreadsheet to determine which SPDX license identifier(s)
to be applied to the file. She confirmed any determination that was not
immediately clear with lawyers working with the Linux Foundation.
Criteria used to select files for SPDX license identifier tagging was:
- Files considered eligible had to be source code files.
- Make and config files were included as candidates if they contained >5
lines of source
- File already had some variant of a license header in it (even if <5
lines).
All documentation files were explicitly excluded.
The following heuristics were used to determine which SPDX license
identifiers to apply.
- when both scanners couldn't find any license traces, file was
considered to have no license information in it, and the top level
COPYING file license applied.
For non */uapi/* files that summary was:
SPDX license identifier # files
---------------------------------------------------|-------
GPL-2.0 11139
and resulted in the first patch in this series.
If that file was a */uapi/* path one, it was "GPL-2.0 WITH
Linux-syscall-note" otherwise it was "GPL-2.0". Results of that was:
SPDX license identifier # files
---------------------------------------------------|-------
GPL-2.0 WITH Linux-syscall-note 930
and resulted in the second patch in this series.
- if a file had some form of licensing information in it, and was one
of the */uapi/* ones, it was denoted with the Linux-syscall-note if
any GPL family license was found in the file or had no licensing in
it (per prior point). Results summary:
SPDX license identifier # files
---------------------------------------------------|------
GPL-2.0 WITH Linux-syscall-note 270
GPL-2.0+ WITH Linux-syscall-note 169
((GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause) 21
((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 17
LGPL-2.1+ WITH Linux-syscall-note 15
GPL-1.0+ WITH Linux-syscall-note 14
((GPL-2.0+ WITH Linux-syscall-note) OR BSD-3-Clause) 5
LGPL-2.0+ WITH Linux-syscall-note 4
LGPL-2.1 WITH Linux-syscall-note 3
((GPL-2.0 WITH Linux-syscall-note) OR MIT) 3
((GPL-2.0 WITH Linux-syscall-note) AND MIT) 1
and that resulted in the third patch in this series.
- when the two scanners agreed on the detected license(s), that became
the concluded license(s).
- when there was disagreement between the two scanners (one detected a
license but the other didn't, or they both detected different
licenses) a manual inspection of the file occurred.
- In most cases a manual inspection of the information in the file
resulted in a clear resolution of the license that should apply (and
which scanner probably needed to revisit its heuristics).
- When it was not immediately clear, the license identifier was
confirmed with lawyers working with the Linux Foundation.
- If there was any question as to the appropriate license identifier,
the file was flagged for further research and to be revisited later
in time.
In total, over 70 hours of logged manual review was done on the
spreadsheet to determine the SPDX license identifiers to apply to the
source files by Kate, Philippe, Thomas and, in some cases, confirmation
by lawyers working with the Linux Foundation.
Kate also obtained a third independent scan of the 4.13 code base from
FOSSology, and compared selected files where the other two scanners
disagreed against that SPDX file, to see if there was new insights. The
Windriver scanner is based on an older version of FOSSology in part, so
they are related.
Thomas did random spot checks in about 500 files from the spreadsheets
for the uapi headers and agreed with SPDX license identifier in the
files he inspected. For the non-uapi files Thomas did random spot checks
in about 15000 files.
In initial set of patches against 4.14-rc6, 3 files were found to have
copy/paste license identifier errors, and have been fixed to reflect the
correct identifier.
Additionally Philippe spent 10 hours this week doing a detailed manual
inspection and review of the 12,461 patched files from the initial patch
version early this week with:
- a full scancode scan run, collecting the matched texts, detected
license ids and scores
- reviewing anything where there was a license detected (about 500+
files) to ensure that the applied SPDX license was correct
- reviewing anything where there was no detection but the patch license
was not GPL-2.0 WITH Linux-syscall-note to ensure that the applied
SPDX license was correct
This produced a worksheet with 20 files needing minor correction. This
worksheet was then exported into 3 different .csv files for the
different types of files to be modified.
These .csv files were then reviewed by Greg. Thomas wrote a script to
parse the csv files and add the proper SPDX tag to the file, in the
format that the file expected. This script was further refined by Greg
based on the output to detect more types of files automatically and to
distinguish between header and source .c files (which need different
comment types.) Finally Greg ran the script using the .csv files to
generate the patches.
Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org>
Reviewed-by: Philippe Ombredanne <pombredanne@nexb.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-01 21:07:57 +07:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2012-07-31 22:48:27 +07:00
|
|
|
#undef TRACE_SYSTEM
|
|
|
|
#define TRACE_SYSTEM cfg80211
|
|
|
|
|
|
|
|
#if !defined(__RDEV_OPS_TRACE) || defined(TRACE_HEADER_MULTI_READ)
|
|
|
|
#define __RDEV_OPS_TRACE
|
|
|
|
|
|
|
|
#include <linux/tracepoint.h>
|
|
|
|
|
|
|
|
#include <linux/rtnetlink.h>
|
2015-03-03 10:54:58 +07:00
|
|
|
#include <linux/etherdevice.h>
|
2012-07-31 22:48:27 +07:00
|
|
|
#include <net/cfg80211.h>
|
|
|
|
#include "core.h"
|
|
|
|
|
|
|
|
#define MAC_ENTRY(entry_mac) __array(u8, entry_mac, ETH_ALEN)
|
|
|
|
#define MAC_ASSIGN(entry_mac, given_mac) do { \
|
|
|
|
if (given_mac) \
|
|
|
|
memcpy(__entry->entry_mac, given_mac, ETH_ALEN); \
|
|
|
|
else \
|
2015-03-03 10:54:58 +07:00
|
|
|
eth_zero_addr(__entry->entry_mac); \
|
2012-07-31 22:48:27 +07:00
|
|
|
} while (0)
|
|
|
|
#define MAC_PR_FMT "%pM"
|
|
|
|
#define MAC_PR_ARG(entry_mac) (__entry->entry_mac)
|
|
|
|
|
2012-11-16 23:22:28 +07:00
|
|
|
#define MAXNAME 32
|
|
|
|
#define WIPHY_ENTRY __array(char, wiphy_name, 32)
|
|
|
|
#define WIPHY_ASSIGN strlcpy(__entry->wiphy_name, wiphy_name(wiphy), MAXNAME)
|
|
|
|
#define WIPHY_PR_FMT "%s"
|
|
|
|
#define WIPHY_PR_ARG __entry->wiphy_name
|
|
|
|
|
|
|
|
#define WDEV_ENTRY __field(u32, id)
|
2013-03-20 02:26:57 +07:00
|
|
|
#define WDEV_ASSIGN (__entry->id) = (!IS_ERR_OR_NULL(wdev) \
|
|
|
|
? wdev->identifier : 0)
|
2012-11-16 23:22:28 +07:00
|
|
|
#define WDEV_PR_FMT "wdev(%u)"
|
|
|
|
#define WDEV_PR_ARG (__entry->id)
|
|
|
|
|
|
|
|
#define NETDEV_ENTRY __array(char, name, IFNAMSIZ) \
|
|
|
|
__field(int, ifindex)
|
2012-07-31 22:48:27 +07:00
|
|
|
#define NETDEV_ASSIGN \
|
|
|
|
do { \
|
|
|
|
memcpy(__entry->name, netdev->name, IFNAMSIZ); \
|
|
|
|
(__entry->ifindex) = (netdev->ifindex); \
|
|
|
|
} while (0)
|
2012-11-16 23:22:28 +07:00
|
|
|
#define NETDEV_PR_FMT "netdev:%s(%d)"
|
|
|
|
#define NETDEV_PR_ARG __entry->name, __entry->ifindex
|
2012-07-31 22:48:27 +07:00
|
|
|
|
|
|
|
#define MESH_CFG_ENTRY __field(u16, dot11MeshRetryTimeout) \
|
|
|
|
__field(u16, dot11MeshConfirmTimeout) \
|
|
|
|
__field(u16, dot11MeshHoldingTimeout) \
|
|
|
|
__field(u16, dot11MeshMaxPeerLinks) \
|
|
|
|
__field(u8, dot11MeshMaxRetries) \
|
|
|
|
__field(u8, dot11MeshTTL) \
|
|
|
|
__field(u8, element_ttl) \
|
|
|
|
__field(bool, auto_open_plinks) \
|
|
|
|
__field(u32, dot11MeshNbrOffsetMaxNeighbor) \
|
|
|
|
__field(u8, dot11MeshHWMPmaxPREQretries) \
|
|
|
|
__field(u32, path_refresh_time) \
|
|
|
|
__field(u32, dot11MeshHWMPactivePathTimeout) \
|
|
|
|
__field(u16, min_discovery_timeout) \
|
|
|
|
__field(u16, dot11MeshHWMPpreqMinInterval) \
|
|
|
|
__field(u16, dot11MeshHWMPperrMinInterval) \
|
|
|
|
__field(u16, dot11MeshHWMPnetDiameterTraversalTime) \
|
|
|
|
__field(u8, dot11MeshHWMPRootMode) \
|
|
|
|
__field(u16, dot11MeshHWMPRannInterval) \
|
|
|
|
__field(bool, dot11MeshGateAnnouncementProtocol) \
|
|
|
|
__field(bool, dot11MeshForwarding) \
|
|
|
|
__field(s32, rssi_threshold) \
|
|
|
|
__field(u16, ht_opmode) \
|
|
|
|
__field(u32, dot11MeshHWMPactivePathToRootTimeout) \
|
|
|
|
__field(u16, dot11MeshHWMProotInterval) \
|
2020-06-17 14:30:33 +07:00
|
|
|
__field(u16, dot11MeshHWMPconfirmationInterval) \
|
|
|
|
__field(bool, dot11MeshNolearn)
|
2012-07-31 22:48:27 +07:00
|
|
|
#define MESH_CFG_ASSIGN \
|
|
|
|
do { \
|
|
|
|
__entry->dot11MeshRetryTimeout = conf->dot11MeshRetryTimeout; \
|
|
|
|
__entry->dot11MeshConfirmTimeout = \
|
|
|
|
conf->dot11MeshConfirmTimeout; \
|
|
|
|
__entry->dot11MeshHoldingTimeout = \
|
|
|
|
conf->dot11MeshHoldingTimeout; \
|
|
|
|
__entry->dot11MeshMaxPeerLinks = conf->dot11MeshMaxPeerLinks; \
|
|
|
|
__entry->dot11MeshMaxRetries = conf->dot11MeshMaxRetries; \
|
|
|
|
__entry->dot11MeshTTL = conf->dot11MeshTTL; \
|
|
|
|
__entry->element_ttl = conf->element_ttl; \
|
|
|
|
__entry->auto_open_plinks = conf->auto_open_plinks; \
|
|
|
|
__entry->dot11MeshNbrOffsetMaxNeighbor = \
|
|
|
|
conf->dot11MeshNbrOffsetMaxNeighbor; \
|
|
|
|
__entry->dot11MeshHWMPmaxPREQretries = \
|
|
|
|
conf->dot11MeshHWMPmaxPREQretries; \
|
|
|
|
__entry->path_refresh_time = conf->path_refresh_time; \
|
|
|
|
__entry->dot11MeshHWMPactivePathTimeout = \
|
|
|
|
conf->dot11MeshHWMPactivePathTimeout; \
|
|
|
|
__entry->min_discovery_timeout = conf->min_discovery_timeout; \
|
|
|
|
__entry->dot11MeshHWMPpreqMinInterval = \
|
|
|
|
conf->dot11MeshHWMPpreqMinInterval; \
|
|
|
|
__entry->dot11MeshHWMPperrMinInterval = \
|
|
|
|
conf->dot11MeshHWMPperrMinInterval; \
|
|
|
|
__entry->dot11MeshHWMPnetDiameterTraversalTime = \
|
|
|
|
conf->dot11MeshHWMPnetDiameterTraversalTime; \
|
|
|
|
__entry->dot11MeshHWMPRootMode = conf->dot11MeshHWMPRootMode; \
|
|
|
|
__entry->dot11MeshHWMPRannInterval = \
|
|
|
|
conf->dot11MeshHWMPRannInterval; \
|
|
|
|
__entry->dot11MeshGateAnnouncementProtocol = \
|
|
|
|
conf->dot11MeshGateAnnouncementProtocol; \
|
|
|
|
__entry->dot11MeshForwarding = conf->dot11MeshForwarding; \
|
|
|
|
__entry->rssi_threshold = conf->rssi_threshold; \
|
|
|
|
__entry->ht_opmode = conf->ht_opmode; \
|
|
|
|
__entry->dot11MeshHWMPactivePathToRootTimeout = \
|
|
|
|
conf->dot11MeshHWMPactivePathToRootTimeout; \
|
|
|
|
__entry->dot11MeshHWMProotInterval = \
|
|
|
|
conf->dot11MeshHWMProotInterval; \
|
|
|
|
__entry->dot11MeshHWMPconfirmationInterval = \
|
|
|
|
conf->dot11MeshHWMPconfirmationInterval; \
|
2020-06-17 14:30:33 +07:00
|
|
|
__entry->dot11MeshNolearn = conf->dot11MeshNolearn; \
|
2012-07-31 22:48:27 +07:00
|
|
|
} while (0)
|
|
|
|
|
2016-04-12 20:56:15 +07:00
|
|
|
#define CHAN_ENTRY __field(enum nl80211_band, band) \
|
2020-04-02 08:18:03 +07:00
|
|
|
__field(u32, center_freq) \
|
|
|
|
__field(u16, freq_offset)
|
2012-07-31 22:48:27 +07:00
|
|
|
#define CHAN_ASSIGN(chan) \
|
|
|
|
do { \
|
|
|
|
if (chan) { \
|
|
|
|
__entry->band = chan->band; \
|
|
|
|
__entry->center_freq = chan->center_freq; \
|
2020-04-02 08:18:03 +07:00
|
|
|
__entry->freq_offset = chan->freq_offset; \
|
2012-07-31 22:48:27 +07:00
|
|
|
} else { \
|
|
|
|
__entry->band = 0; \
|
|
|
|
__entry->center_freq = 0; \
|
2020-04-02 08:18:03 +07:00
|
|
|
__entry->freq_offset = 0; \
|
2012-07-31 22:48:27 +07:00
|
|
|
} \
|
|
|
|
} while (0)
|
2020-04-02 08:18:03 +07:00
|
|
|
#define CHAN_PR_FMT "band: %d, freq: %u.%03u"
|
|
|
|
#define CHAN_PR_ARG __entry->band, __entry->center_freq, __entry->freq_offset
|
2012-07-31 22:48:27 +07:00
|
|
|
|
2016-04-12 20:56:15 +07:00
|
|
|
#define CHAN_DEF_ENTRY __field(enum nl80211_band, band) \
|
2012-11-09 05:14:50 +07:00
|
|
|
__field(u32, control_freq) \
|
2020-04-02 08:18:03 +07:00
|
|
|
__field(u32, freq_offset) \
|
2012-11-09 05:14:50 +07:00
|
|
|
__field(u32, width) \
|
|
|
|
__field(u32, center_freq1) \
|
2020-04-02 08:18:03 +07:00
|
|
|
__field(u32, freq1_offset) \
|
2012-11-09 05:14:50 +07:00
|
|
|
__field(u32, center_freq2)
|
2012-11-09 03:25:48 +07:00
|
|
|
#define CHAN_DEF_ASSIGN(chandef) \
|
|
|
|
do { \
|
|
|
|
if ((chandef) && (chandef)->chan) { \
|
|
|
|
__entry->band = (chandef)->chan->band; \
|
2012-11-09 05:14:50 +07:00
|
|
|
__entry->control_freq = \
|
2012-11-09 03:25:48 +07:00
|
|
|
(chandef)->chan->center_freq; \
|
2020-04-02 08:18:03 +07:00
|
|
|
__entry->freq_offset = \
|
|
|
|
(chandef)->chan->freq_offset; \
|
2012-11-09 05:14:50 +07:00
|
|
|
__entry->width = (chandef)->width; \
|
|
|
|
__entry->center_freq1 = (chandef)->center_freq1;\
|
2020-04-02 08:18:03 +07:00
|
|
|
__entry->freq1_offset = (chandef)->freq1_offset;\
|
2012-11-09 05:14:50 +07:00
|
|
|
__entry->center_freq2 = (chandef)->center_freq2;\
|
2012-11-09 03:25:48 +07:00
|
|
|
} else { \
|
|
|
|
__entry->band = 0; \
|
2012-11-09 05:14:50 +07:00
|
|
|
__entry->control_freq = 0; \
|
2020-04-02 08:18:03 +07:00
|
|
|
__entry->freq_offset = 0; \
|
2012-11-09 05:14:50 +07:00
|
|
|
__entry->width = 0; \
|
|
|
|
__entry->center_freq1 = 0; \
|
2020-04-02 08:18:03 +07:00
|
|
|
__entry->freq1_offset = 0; \
|
2012-11-09 05:14:50 +07:00
|
|
|
__entry->center_freq2 = 0; \
|
2012-11-09 03:25:48 +07:00
|
|
|
} \
|
|
|
|
} while (0)
|
2012-11-09 05:14:50 +07:00
|
|
|
#define CHAN_DEF_PR_FMT \
|
2020-04-02 08:18:03 +07:00
|
|
|
"band: %d, control freq: %u.%03u, width: %d, cf1: %u.%03u, cf2: %u"
|
2012-11-09 05:14:50 +07:00
|
|
|
#define CHAN_DEF_PR_ARG __entry->band, __entry->control_freq, \
|
2020-04-02 08:18:03 +07:00
|
|
|
__entry->freq_offset, __entry->width, \
|
|
|
|
__entry->center_freq1, __entry->freq1_offset, \
|
2012-11-09 05:14:50 +07:00
|
|
|
__entry->center_freq2
|
2012-11-09 03:25:48 +07:00
|
|
|
|
2012-07-31 22:48:27 +07:00
|
|
|
#define SINFO_ENTRY __field(int, generation) \
|
|
|
|
__field(u32, connected_time) \
|
|
|
|
__field(u32, inactive_time) \
|
|
|
|
__field(u32, rx_bytes) \
|
|
|
|
__field(u32, tx_bytes) \
|
|
|
|
__field(u32, rx_packets) \
|
|
|
|
__field(u32, tx_packets) \
|
|
|
|
__field(u32, tx_retries) \
|
|
|
|
__field(u32, tx_failed) \
|
|
|
|
__field(u32, rx_dropped_misc) \
|
|
|
|
__field(u32, beacon_loss_count) \
|
|
|
|
__field(u16, llid) \
|
|
|
|
__field(u16, plid) \
|
|
|
|
__field(u8, plink_state)
|
|
|
|
#define SINFO_ASSIGN \
|
|
|
|
do { \
|
|
|
|
__entry->generation = sinfo->generation; \
|
|
|
|
__entry->connected_time = sinfo->connected_time; \
|
|
|
|
__entry->inactive_time = sinfo->inactive_time; \
|
|
|
|
__entry->rx_bytes = sinfo->rx_bytes; \
|
|
|
|
__entry->tx_bytes = sinfo->tx_bytes; \
|
|
|
|
__entry->rx_packets = sinfo->rx_packets; \
|
|
|
|
__entry->tx_packets = sinfo->tx_packets; \
|
|
|
|
__entry->tx_retries = sinfo->tx_retries; \
|
|
|
|
__entry->tx_failed = sinfo->tx_failed; \
|
|
|
|
__entry->rx_dropped_misc = sinfo->rx_dropped_misc; \
|
|
|
|
__entry->beacon_loss_count = sinfo->beacon_loss_count; \
|
|
|
|
__entry->llid = sinfo->llid; \
|
|
|
|
__entry->plid = sinfo->plid; \
|
|
|
|
__entry->plink_state = sinfo->plink_state; \
|
|
|
|
} while (0)
|
|
|
|
|
|
|
|
#define BOOL_TO_STR(bo) (bo) ? "true" : "false"
|
|
|
|
|
2013-12-17 14:01:30 +07:00
|
|
|
#define QOS_MAP_ENTRY __field(u8, num_des) \
|
|
|
|
__array(u8, dscp_exception, \
|
|
|
|
2 * IEEE80211_QOS_MAP_MAX_EX) \
|
|
|
|
__array(u8, up, IEEE80211_QOS_MAP_LEN_MIN)
|
|
|
|
#define QOS_MAP_ASSIGN(qos_map) \
|
|
|
|
do { \
|
|
|
|
if ((qos_map)) { \
|
|
|
|
__entry->num_des = (qos_map)->num_des; \
|
|
|
|
memcpy(__entry->dscp_exception, \
|
|
|
|
&(qos_map)->dscp_exception, \
|
|
|
|
2 * IEEE80211_QOS_MAP_MAX_EX); \
|
|
|
|
memcpy(__entry->up, &(qos_map)->up, \
|
|
|
|
IEEE80211_QOS_MAP_LEN_MIN); \
|
|
|
|
} else { \
|
|
|
|
__entry->num_des = 0; \
|
|
|
|
memset(__entry->dscp_exception, 0, \
|
|
|
|
2 * IEEE80211_QOS_MAP_MAX_EX); \
|
|
|
|
memset(__entry->up, 0, \
|
|
|
|
IEEE80211_QOS_MAP_LEN_MIN); \
|
|
|
|
} \
|
|
|
|
} while (0)
|
|
|
|
|
2012-07-31 22:48:27 +07:00
|
|
|
/*************************************************************
|
|
|
|
* rdev->ops traces *
|
|
|
|
*************************************************************/
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_suspend,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct cfg80211_wowlan *wow),
|
|
|
|
TP_ARGS(wiphy, wow),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
__field(bool, any)
|
|
|
|
__field(bool, disconnect)
|
|
|
|
__field(bool, magic_pkt)
|
|
|
|
__field(bool, gtk_rekey_failure)
|
|
|
|
__field(bool, eap_identity_req)
|
|
|
|
__field(bool, four_way_handshake)
|
|
|
|
__field(bool, rfkill_release)
|
|
|
|
__field(bool, valid_wow)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
if (wow) {
|
|
|
|
__entry->any = wow->any;
|
|
|
|
__entry->disconnect = wow->disconnect;
|
|
|
|
__entry->magic_pkt = wow->magic_pkt;
|
|
|
|
__entry->gtk_rekey_failure = wow->gtk_rekey_failure;
|
|
|
|
__entry->eap_identity_req = wow->eap_identity_req;
|
|
|
|
__entry->four_way_handshake = wow->four_way_handshake;
|
|
|
|
__entry->rfkill_release = wow->rfkill_release;
|
|
|
|
__entry->valid_wow = true;
|
|
|
|
} else {
|
|
|
|
__entry->valid_wow = false;
|
|
|
|
}
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", wow%s - any: %d, disconnect: %d, "
|
|
|
|
"magic pkt: %d, gtk rekey failure: %d, eap identify req: %d, "
|
|
|
|
"four way handshake: %d, rfkill release: %d.",
|
|
|
|
WIPHY_PR_ARG, __entry->valid_wow ? "" : "(Not configured!)",
|
|
|
|
__entry->any, __entry->disconnect, __entry->magic_pkt,
|
|
|
|
__entry->gtk_rekey_failure, __entry->eap_identity_req,
|
|
|
|
__entry->four_way_handshake, __entry->rfkill_release)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_return_int,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, int ret),
|
|
|
|
TP_ARGS(wiphy, ret),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
__field(int, ret)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
__entry->ret = ret;
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", returned: %d", WIPHY_PR_ARG, __entry->ret)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_scan,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct cfg80211_scan_request *request),
|
|
|
|
TP_ARGS(wiphy, request),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT, WIPHY_PR_ARG)
|
|
|
|
);
|
|
|
|
|
|
|
|
DECLARE_EVENT_CLASS(wiphy_only_evt,
|
|
|
|
TP_PROTO(struct wiphy *wiphy),
|
|
|
|
TP_ARGS(wiphy),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT, WIPHY_PR_ARG)
|
|
|
|
);
|
|
|
|
|
|
|
|
DEFINE_EVENT(wiphy_only_evt, rdev_resume,
|
|
|
|
TP_PROTO(struct wiphy *wiphy),
|
|
|
|
TP_ARGS(wiphy)
|
|
|
|
);
|
|
|
|
|
|
|
|
DEFINE_EVENT(wiphy_only_evt, rdev_return_void,
|
|
|
|
TP_PROTO(struct wiphy *wiphy),
|
|
|
|
TP_ARGS(wiphy)
|
|
|
|
);
|
|
|
|
|
|
|
|
DEFINE_EVENT(wiphy_only_evt, rdev_get_antenna,
|
|
|
|
TP_PROTO(struct wiphy *wiphy),
|
|
|
|
TP_ARGS(wiphy)
|
|
|
|
);
|
|
|
|
|
|
|
|
DEFINE_EVENT(wiphy_only_evt, rdev_rfkill_poll,
|
|
|
|
TP_PROTO(struct wiphy *wiphy),
|
|
|
|
TP_ARGS(wiphy)
|
|
|
|
);
|
|
|
|
|
|
|
|
DECLARE_EVENT_CLASS(wiphy_enabled_evt,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, bool enabled),
|
|
|
|
TP_ARGS(wiphy, enabled),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
__field(bool, enabled)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
__entry->enabled = enabled;
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", %senabled ",
|
|
|
|
WIPHY_PR_ARG, __entry->enabled ? "" : "not ")
|
|
|
|
);
|
|
|
|
|
|
|
|
DEFINE_EVENT(wiphy_enabled_evt, rdev_set_wakeup,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, bool enabled),
|
|
|
|
TP_ARGS(wiphy, enabled)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_add_virtual_intf,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, char *name, enum nl80211_iftype type),
|
|
|
|
TP_ARGS(wiphy, name, type),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
__string(vir_intf_name, name ? name : "<noname>")
|
|
|
|
__field(enum nl80211_iftype, type)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
__assign_str(vir_intf_name, name ? name : "<noname>");
|
|
|
|
__entry->type = type;
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", virtual intf name: %s, type: %d",
|
|
|
|
WIPHY_PR_ARG, __get_str(vir_intf_name), __entry->type)
|
|
|
|
);
|
|
|
|
|
|
|
|
DECLARE_EVENT_CLASS(wiphy_wdev_evt,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev),
|
|
|
|
TP_ARGS(wiphy, wdev),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
WDEV_ENTRY
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
WDEV_ASSIGN;
|
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT, WIPHY_PR_ARG, WDEV_PR_ARG)
|
2012-07-31 22:48:27 +07:00
|
|
|
);
|
|
|
|
|
cfg80211: add peer measurement with FTM initiator API
Add a new "peer measurement" API, that can be used to measure
certain things related to a peer. Right now, only implement
FTM (flight time measurement) over it, but the idea is that
it'll be extensible to also support measuring the necessary
things to calculate e.g. angle-of-arrival for WiGig.
The API is structured to have a generic list of peers and
channels to measure with/on, and then for each of those a
set of measurements (again, only FTM right now) to perform.
Results are sent to the requesting socket, including a final
complete message.
Closing the controlling netlink socket will abort a running
measurement.
v3:
- add a bit to report "final" for partial results
- remove list keeping etc. and just unicast out the results
to the requester (big code reduction ...)
- also send complete message unicast, and as a result
remove the multicast group
- separate out struct cfg80211_pmsr_ftm_request_peer
from struct cfg80211_pmsr_request_peer
- document timeout == 0 if no timeout
- disallow setting timeout nl80211 attribute to 0,
must not include attribute for no timeout
- make MAC address randomization optional
- change num bursts exponent default to 0 (1 burst, rather
rather than the old default of 15==don't care)
v4:
- clarify NL80211_ATTR_TIMEOUT documentation
v5:
- remove unnecessary nl80211 multicast/family changes
- remove partial results bit/flag, final is sufficient
- add max_bursts_exponent, max_ftms_per_burst to capability
- rename "frames per burst" -> "FTMs per burst"
v6:
- rename cfg80211_pmsr_free_wdev() to cfg80211_pmsr_wdev_down()
and call it in leave, so the device can't go down with any
pending measurements
v7:
- wording fixes (Lior)
- fix ftm.max_bursts_exponent to allow having the limit of 0 (Lior)
v8:
- copyright statements
- minor coding style fixes
- fix error path leak
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2018-09-10 18:29:12 +07:00
|
|
|
DECLARE_EVENT_CLASS(wiphy_wdev_cookie_evt,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, u64 cookie),
|
|
|
|
TP_ARGS(wiphy, wdev, cookie),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
WDEV_ENTRY
|
|
|
|
__field(u64, cookie)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
WDEV_ASSIGN;
|
|
|
|
__entry->cookie = cookie;
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", cookie: %lld",
|
|
|
|
WIPHY_PR_ARG, WDEV_PR_ARG,
|
|
|
|
(unsigned long long)__entry->cookie)
|
|
|
|
);
|
|
|
|
|
2012-07-31 22:48:27 +07:00
|
|
|
DEFINE_EVENT(wiphy_wdev_evt, rdev_return_wdev,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev),
|
|
|
|
TP_ARGS(wiphy, wdev)
|
|
|
|
);
|
|
|
|
|
|
|
|
DEFINE_EVENT(wiphy_wdev_evt, rdev_del_virtual_intf,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev),
|
|
|
|
TP_ARGS(wiphy, wdev)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_change_virtual_intf,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
enum nl80211_iftype type),
|
|
|
|
TP_ARGS(wiphy, netdev, type),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
__field(enum nl80211_iftype, type)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
__entry->type = type;
|
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", type: %d",
|
2012-07-31 22:48:27 +07:00
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->type)
|
|
|
|
);
|
|
|
|
|
|
|
|
DECLARE_EVENT_CLASS(key_handle,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index,
|
|
|
|
bool pairwise, const u8 *mac_addr),
|
|
|
|
TP_ARGS(wiphy, netdev, key_index, pairwise, mac_addr),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(mac_addr)
|
|
|
|
__field(u8, key_index)
|
|
|
|
__field(bool, pairwise)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MAC_ASSIGN(mac_addr, mac_addr);
|
|
|
|
__entry->key_index = key_index;
|
|
|
|
__entry->pairwise = pairwise;
|
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", key_index: %u, pairwise: %s, mac addr: " MAC_PR_FMT,
|
2012-07-31 22:48:27 +07:00
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->key_index,
|
|
|
|
BOOL_TO_STR(__entry->pairwise), MAC_PR_ARG(mac_addr))
|
|
|
|
);
|
|
|
|
|
2019-03-20 03:34:07 +07:00
|
|
|
DEFINE_EVENT(key_handle, rdev_get_key,
|
2012-07-31 22:48:27 +07:00
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index,
|
|
|
|
bool pairwise, const u8 *mac_addr),
|
|
|
|
TP_ARGS(wiphy, netdev, key_index, pairwise, mac_addr)
|
|
|
|
);
|
|
|
|
|
2019-03-20 03:34:07 +07:00
|
|
|
DEFINE_EVENT(key_handle, rdev_del_key,
|
2012-07-31 22:48:27 +07:00
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index,
|
|
|
|
bool pairwise, const u8 *mac_addr),
|
|
|
|
TP_ARGS(wiphy, netdev, key_index, pairwise, mac_addr)
|
|
|
|
);
|
|
|
|
|
2019-03-20 03:34:07 +07:00
|
|
|
TRACE_EVENT(rdev_add_key,
|
2012-07-31 22:48:27 +07:00
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index,
|
2019-03-20 03:34:07 +07:00
|
|
|
bool pairwise, const u8 *mac_addr, u8 mode),
|
|
|
|
TP_ARGS(wiphy, netdev, key_index, pairwise, mac_addr, mode),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(mac_addr)
|
|
|
|
__field(u8, key_index)
|
|
|
|
__field(bool, pairwise)
|
|
|
|
__field(u8, mode)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MAC_ASSIGN(mac_addr, mac_addr);
|
|
|
|
__entry->key_index = key_index;
|
|
|
|
__entry->pairwise = pairwise;
|
|
|
|
__entry->mode = mode;
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", key_index: %u, "
|
|
|
|
"mode: %u, pairwise: %s, mac addr: " MAC_PR_FMT,
|
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->key_index,
|
|
|
|
__entry->mode, BOOL_TO_STR(__entry->pairwise),
|
|
|
|
MAC_PR_ARG(mac_addr))
|
2012-07-31 22:48:27 +07:00
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_set_default_key,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index,
|
|
|
|
bool unicast, bool multicast),
|
|
|
|
TP_ARGS(wiphy, netdev, key_index, unicast, multicast),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
__field(u8, key_index)
|
|
|
|
__field(bool, unicast)
|
|
|
|
__field(bool, multicast)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
__entry->key_index = key_index;
|
|
|
|
__entry->unicast = unicast;
|
|
|
|
__entry->multicast = multicast;
|
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", key index: %u, unicast: %s, multicast: %s",
|
2012-07-31 22:48:27 +07:00
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->key_index,
|
|
|
|
BOOL_TO_STR(__entry->unicast),
|
|
|
|
BOOL_TO_STR(__entry->multicast))
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_set_default_mgmt_key,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index),
|
|
|
|
TP_ARGS(wiphy, netdev, key_index),
|
2020-02-22 20:25:43 +07:00
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
__field(u8, key_index)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
__entry->key_index = key_index;
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", key index: %u",
|
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->key_index)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_set_default_beacon_key,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index),
|
|
|
|
TP_ARGS(wiphy, netdev, key_index),
|
2012-07-31 22:48:27 +07:00
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
__field(u8, key_index)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
__entry->key_index = key_index;
|
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", key index: %u",
|
2012-07-31 22:48:27 +07:00
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->key_index)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_start_ap,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
struct cfg80211_ap_settings *settings),
|
|
|
|
TP_ARGS(wiphy, netdev, settings),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
2012-11-09 03:25:48 +07:00
|
|
|
CHAN_DEF_ENTRY
|
2012-07-31 22:48:27 +07:00
|
|
|
__field(int, beacon_interval)
|
|
|
|
__field(int, dtim_period)
|
|
|
|
__array(char, ssid, IEEE80211_MAX_SSID_LEN + 1)
|
|
|
|
__field(enum nl80211_hidden_ssid, hidden_ssid)
|
|
|
|
__field(u32, wpa_ver)
|
|
|
|
__field(bool, privacy)
|
|
|
|
__field(enum nl80211_auth_type, auth_type)
|
|
|
|
__field(int, inactivity_timeout)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
2012-11-09 03:25:48 +07:00
|
|
|
CHAN_DEF_ASSIGN(&settings->chandef);
|
2012-07-31 22:48:27 +07:00
|
|
|
__entry->beacon_interval = settings->beacon_interval;
|
|
|
|
__entry->dtim_period = settings->dtim_period;
|
|
|
|
__entry->hidden_ssid = settings->hidden_ssid;
|
|
|
|
__entry->wpa_ver = settings->crypto.wpa_versions;
|
|
|
|
__entry->privacy = settings->privacy;
|
|
|
|
__entry->auth_type = settings->auth_type;
|
|
|
|
__entry->inactivity_timeout = settings->inactivity_timeout;
|
|
|
|
memset(__entry->ssid, 0, IEEE80211_MAX_SSID_LEN + 1);
|
|
|
|
memcpy(__entry->ssid, settings->ssid, settings->ssid_len);
|
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", AP settings - ssid: %s, "
|
2012-11-09 03:25:48 +07:00
|
|
|
CHAN_DEF_PR_FMT ", beacon interval: %d, dtim period: %d, "
|
2012-07-31 22:48:27 +07:00
|
|
|
"hidden ssid: %d, wpa versions: %u, privacy: %s, "
|
|
|
|
"auth type: %d, inactivity timeout: %d",
|
2012-11-09 03:25:48 +07:00
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->ssid, CHAN_DEF_PR_ARG,
|
2012-07-31 22:48:27 +07:00
|
|
|
__entry->beacon_interval, __entry->dtim_period,
|
|
|
|
__entry->hidden_ssid, __entry->wpa_ver,
|
|
|
|
BOOL_TO_STR(__entry->privacy), __entry->auth_type,
|
|
|
|
__entry->inactivity_timeout)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_change_beacon,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
struct cfg80211_beacon_data *info),
|
|
|
|
TP_ARGS(wiphy, netdev, info),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
__dynamic_array(u8, head, info ? info->head_len : 0)
|
|
|
|
__dynamic_array(u8, tail, info ? info->tail_len : 0)
|
|
|
|
__dynamic_array(u8, beacon_ies, info ? info->beacon_ies_len : 0)
|
|
|
|
__dynamic_array(u8, proberesp_ies,
|
|
|
|
info ? info->proberesp_ies_len : 0)
|
|
|
|
__dynamic_array(u8, assocresp_ies,
|
|
|
|
info ? info->assocresp_ies_len : 0)
|
|
|
|
__dynamic_array(u8, probe_resp, info ? info->probe_resp_len : 0)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
if (info) {
|
|
|
|
if (info->head)
|
|
|
|
memcpy(__get_dynamic_array(head), info->head,
|
|
|
|
info->head_len);
|
|
|
|
if (info->tail)
|
|
|
|
memcpy(__get_dynamic_array(tail), info->tail,
|
|
|
|
info->tail_len);
|
|
|
|
if (info->beacon_ies)
|
|
|
|
memcpy(__get_dynamic_array(beacon_ies),
|
|
|
|
info->beacon_ies, info->beacon_ies_len);
|
|
|
|
if (info->proberesp_ies)
|
|
|
|
memcpy(__get_dynamic_array(proberesp_ies),
|
|
|
|
info->proberesp_ies,
|
|
|
|
info->proberesp_ies_len);
|
|
|
|
if (info->assocresp_ies)
|
|
|
|
memcpy(__get_dynamic_array(assocresp_ies),
|
|
|
|
info->assocresp_ies,
|
|
|
|
info->assocresp_ies_len);
|
|
|
|
if (info->probe_resp)
|
|
|
|
memcpy(__get_dynamic_array(probe_resp),
|
|
|
|
info->probe_resp, info->probe_resp_len);
|
|
|
|
}
|
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT, WIPHY_PR_ARG, NETDEV_PR_ARG)
|
2012-07-31 22:48:27 +07:00
|
|
|
);
|
|
|
|
|
|
|
|
DECLARE_EVENT_CLASS(wiphy_netdev_evt,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev),
|
|
|
|
TP_ARGS(wiphy, netdev),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT, WIPHY_PR_ARG, NETDEV_PR_ARG)
|
2012-07-31 22:48:27 +07:00
|
|
|
);
|
|
|
|
|
|
|
|
DEFINE_EVENT(wiphy_netdev_evt, rdev_stop_ap,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev),
|
|
|
|
TP_ARGS(wiphy, netdev)
|
|
|
|
);
|
|
|
|
|
|
|
|
DEFINE_EVENT(wiphy_netdev_evt, rdev_set_rekey_data,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev),
|
|
|
|
TP_ARGS(wiphy, netdev)
|
|
|
|
);
|
|
|
|
|
|
|
|
DEFINE_EVENT(wiphy_netdev_evt, rdev_get_mesh_config,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev),
|
|
|
|
TP_ARGS(wiphy, netdev)
|
|
|
|
);
|
|
|
|
|
|
|
|
DEFINE_EVENT(wiphy_netdev_evt, rdev_leave_mesh,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev),
|
|
|
|
TP_ARGS(wiphy, netdev)
|
|
|
|
);
|
|
|
|
|
|
|
|
DEFINE_EVENT(wiphy_netdev_evt, rdev_leave_ibss,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev),
|
|
|
|
TP_ARGS(wiphy, netdev)
|
|
|
|
);
|
|
|
|
|
2014-11-03 16:33:18 +07:00
|
|
|
DEFINE_EVENT(wiphy_netdev_evt, rdev_leave_ocb,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev),
|
|
|
|
TP_ARGS(wiphy, netdev)
|
|
|
|
);
|
|
|
|
|
2012-07-31 22:48:27 +07:00
|
|
|
DEFINE_EVENT(wiphy_netdev_evt, rdev_flush_pmksa,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev),
|
|
|
|
TP_ARGS(wiphy, netdev)
|
|
|
|
);
|
|
|
|
|
2019-12-22 21:55:31 +07:00
|
|
|
DEFINE_EVENT(wiphy_netdev_evt, rdev_end_cac,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev),
|
|
|
|
TP_ARGS(wiphy, netdev)
|
|
|
|
);
|
|
|
|
|
2012-07-31 22:48:27 +07:00
|
|
|
DECLARE_EVENT_CLASS(station_add_change,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *mac,
|
|
|
|
struct station_parameters *params),
|
|
|
|
TP_ARGS(wiphy, netdev, mac, params),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(sta_mac)
|
|
|
|
__field(u32, sta_flags_mask)
|
|
|
|
__field(u32, sta_flags_set)
|
|
|
|
__field(u32, sta_modify_mask)
|
|
|
|
__field(int, listen_interval)
|
2015-10-23 02:27:47 +07:00
|
|
|
__field(u16, capability)
|
2012-07-31 22:48:27 +07:00
|
|
|
__field(u16, aid)
|
|
|
|
__field(u8, plink_action)
|
|
|
|
__field(u8, plink_state)
|
|
|
|
__field(u8, uapsd_queues)
|
2015-10-23 02:27:47 +07:00
|
|
|
__field(u8, max_sp)
|
|
|
|
__field(u8, opmode_notif)
|
|
|
|
__field(bool, opmode_notif_used)
|
2012-07-31 22:48:27 +07:00
|
|
|
__array(u8, ht_capa, (int)sizeof(struct ieee80211_ht_cap))
|
2015-10-23 02:27:47 +07:00
|
|
|
__array(u8, vht_capa, (int)sizeof(struct ieee80211_vht_cap))
|
2015-03-21 01:56:41 +07:00
|
|
|
__array(char, vlan, IFNAMSIZ)
|
2015-10-23 02:27:47 +07:00
|
|
|
__dynamic_array(u8, supported_rates,
|
|
|
|
params->supported_rates_len)
|
|
|
|
__dynamic_array(u8, ext_capab, params->ext_capab_len)
|
|
|
|
__dynamic_array(u8, supported_channels,
|
|
|
|
params->supported_channels_len)
|
|
|
|
__dynamic_array(u8, supported_oper_classes,
|
|
|
|
params->supported_oper_classes_len)
|
2012-07-31 22:48:27 +07:00
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MAC_ASSIGN(sta_mac, mac);
|
|
|
|
__entry->sta_flags_mask = params->sta_flags_mask;
|
|
|
|
__entry->sta_flags_set = params->sta_flags_set;
|
|
|
|
__entry->sta_modify_mask = params->sta_modify_mask;
|
|
|
|
__entry->listen_interval = params->listen_interval;
|
|
|
|
__entry->aid = params->aid;
|
|
|
|
__entry->plink_action = params->plink_action;
|
|
|
|
__entry->plink_state = params->plink_state;
|
|
|
|
__entry->uapsd_queues = params->uapsd_queues;
|
|
|
|
memset(__entry->ht_capa, 0, sizeof(struct ieee80211_ht_cap));
|
|
|
|
if (params->ht_capa)
|
|
|
|
memcpy(__entry->ht_capa, params->ht_capa,
|
|
|
|
sizeof(struct ieee80211_ht_cap));
|
2015-10-23 02:27:47 +07:00
|
|
|
memset(__entry->vht_capa, 0, sizeof(struct ieee80211_vht_cap));
|
|
|
|
if (params->vht_capa)
|
|
|
|
memcpy(__entry->vht_capa, params->vht_capa,
|
|
|
|
sizeof(struct ieee80211_vht_cap));
|
2015-03-21 01:56:41 +07:00
|
|
|
memset(__entry->vlan, 0, sizeof(__entry->vlan));
|
|
|
|
if (params->vlan)
|
|
|
|
memcpy(__entry->vlan, params->vlan->name, IFNAMSIZ);
|
2015-10-23 02:27:47 +07:00
|
|
|
if (params->supported_rates && params->supported_rates_len)
|
|
|
|
memcpy(__get_dynamic_array(supported_rates),
|
|
|
|
params->supported_rates,
|
|
|
|
params->supported_rates_len);
|
|
|
|
if (params->ext_capab && params->ext_capab_len)
|
|
|
|
memcpy(__get_dynamic_array(ext_capab),
|
|
|
|
params->ext_capab,
|
|
|
|
params->ext_capab_len);
|
|
|
|
if (params->supported_channels &&
|
|
|
|
params->supported_channels_len)
|
|
|
|
memcpy(__get_dynamic_array(supported_channels),
|
|
|
|
params->supported_channels,
|
|
|
|
params->supported_channels_len);
|
|
|
|
if (params->supported_oper_classes &&
|
|
|
|
params->supported_oper_classes_len)
|
|
|
|
memcpy(__get_dynamic_array(supported_oper_classes),
|
|
|
|
params->supported_oper_classes,
|
|
|
|
params->supported_oper_classes_len);
|
|
|
|
__entry->max_sp = params->max_sp;
|
|
|
|
__entry->capability = params->capability;
|
|
|
|
__entry->opmode_notif = params->opmode_notif;
|
|
|
|
__entry->opmode_notif_used = params->opmode_notif_used;
|
2012-07-31 22:48:27 +07:00
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", station mac: " MAC_PR_FMT
|
2012-07-31 22:48:27 +07:00
|
|
|
", station flags mask: %u, station flags set: %u, "
|
|
|
|
"station modify mask: %u, listen interval: %d, aid: %u, "
|
2015-03-21 01:56:41 +07:00
|
|
|
"plink action: %u, plink state: %u, uapsd queues: %u, vlan:%s",
|
2012-07-31 22:48:27 +07:00
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(sta_mac),
|
|
|
|
__entry->sta_flags_mask, __entry->sta_flags_set,
|
|
|
|
__entry->sta_modify_mask, __entry->listen_interval,
|
|
|
|
__entry->aid, __entry->plink_action, __entry->plink_state,
|
2015-03-21 01:56:41 +07:00
|
|
|
__entry->uapsd_queues, __entry->vlan)
|
2012-07-31 22:48:27 +07:00
|
|
|
);
|
|
|
|
|
|
|
|
DEFINE_EVENT(station_add_change, rdev_add_station,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *mac,
|
|
|
|
struct station_parameters *params),
|
|
|
|
TP_ARGS(wiphy, netdev, mac, params)
|
|
|
|
);
|
|
|
|
|
|
|
|
DEFINE_EVENT(station_add_change, rdev_change_station,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *mac,
|
|
|
|
struct station_parameters *params),
|
|
|
|
TP_ARGS(wiphy, netdev, mac, params)
|
|
|
|
);
|
|
|
|
|
|
|
|
DECLARE_EVENT_CLASS(wiphy_netdev_mac_evt,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, const u8 *mac),
|
|
|
|
TP_ARGS(wiphy, netdev, mac),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(sta_mac)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MAC_ASSIGN(sta_mac, mac);
|
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", mac: " MAC_PR_FMT,
|
2012-07-31 22:48:27 +07:00
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(sta_mac))
|
|
|
|
);
|
|
|
|
|
2014-10-11 00:52:40 +07:00
|
|
|
DECLARE_EVENT_CLASS(station_del,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
struct station_del_parameters *params),
|
|
|
|
TP_ARGS(wiphy, netdev, params),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(sta_mac)
|
2014-10-20 17:20:45 +07:00
|
|
|
__field(u8, subtype)
|
|
|
|
__field(u16, reason_code)
|
2014-10-11 00:52:40 +07:00
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MAC_ASSIGN(sta_mac, params->mac);
|
2014-10-20 17:20:45 +07:00
|
|
|
__entry->subtype = params->subtype;
|
|
|
|
__entry->reason_code = params->reason_code;
|
2014-10-11 00:52:40 +07:00
|
|
|
),
|
2014-10-20 17:20:45 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", station mac: " MAC_PR_FMT
|
|
|
|
", subtype: %u, reason_code: %u",
|
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(sta_mac),
|
|
|
|
__entry->subtype, __entry->reason_code)
|
2014-10-11 00:52:40 +07:00
|
|
|
);
|
|
|
|
|
|
|
|
DEFINE_EVENT(station_del, rdev_del_station,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
struct station_del_parameters *params),
|
|
|
|
TP_ARGS(wiphy, netdev, params)
|
2012-07-31 22:48:27 +07:00
|
|
|
);
|
|
|
|
|
|
|
|
DEFINE_EVENT(wiphy_netdev_mac_evt, rdev_get_station,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, const u8 *mac),
|
|
|
|
TP_ARGS(wiphy, netdev, mac)
|
|
|
|
);
|
|
|
|
|
|
|
|
DEFINE_EVENT(wiphy_netdev_mac_evt, rdev_del_mpath,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, const u8 *mac),
|
|
|
|
TP_ARGS(wiphy, netdev, mac)
|
|
|
|
);
|
|
|
|
|
|
|
|
DEFINE_EVENT(wiphy_netdev_mac_evt, rdev_set_wds_peer,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, const u8 *mac),
|
|
|
|
TP_ARGS(wiphy, netdev, mac)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_dump_station,
|
2018-11-09 17:10:47 +07:00
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, int _idx,
|
2012-07-31 22:48:27 +07:00
|
|
|
u8 *mac),
|
2018-11-09 17:10:47 +07:00
|
|
|
TP_ARGS(wiphy, netdev, _idx, mac),
|
2012-07-31 22:48:27 +07:00
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(sta_mac)
|
|
|
|
__field(int, idx)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MAC_ASSIGN(sta_mac, mac);
|
2018-11-09 17:10:47 +07:00
|
|
|
__entry->idx = _idx;
|
2012-07-31 22:48:27 +07:00
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", station mac: " MAC_PR_FMT ", idx: %d",
|
2012-07-31 22:48:27 +07:00
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(sta_mac),
|
|
|
|
__entry->idx)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_return_int_station_info,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, int ret, struct station_info *sinfo),
|
|
|
|
TP_ARGS(wiphy, ret, sinfo),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
__field(int, ret)
|
|
|
|
SINFO_ENTRY
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
__entry->ret = ret;
|
|
|
|
SINFO_ASSIGN;
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", returned %d" ,
|
|
|
|
WIPHY_PR_ARG, __entry->ret)
|
|
|
|
);
|
|
|
|
|
|
|
|
DECLARE_EVENT_CLASS(mpath_evt,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *dst,
|
|
|
|
u8 *next_hop),
|
|
|
|
TP_ARGS(wiphy, netdev, dst, next_hop),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(dst)
|
|
|
|
MAC_ENTRY(next_hop)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MAC_ASSIGN(dst, dst);
|
|
|
|
MAC_ASSIGN(next_hop, next_hop);
|
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", destination: " MAC_PR_FMT ", next hop: " MAC_PR_FMT,
|
2012-07-31 22:48:27 +07:00
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(dst),
|
|
|
|
MAC_PR_ARG(next_hop))
|
|
|
|
);
|
|
|
|
|
|
|
|
DEFINE_EVENT(mpath_evt, rdev_add_mpath,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *dst,
|
|
|
|
u8 *next_hop),
|
|
|
|
TP_ARGS(wiphy, netdev, dst, next_hop)
|
|
|
|
);
|
|
|
|
|
|
|
|
DEFINE_EVENT(mpath_evt, rdev_change_mpath,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *dst,
|
|
|
|
u8 *next_hop),
|
|
|
|
TP_ARGS(wiphy, netdev, dst, next_hop)
|
|
|
|
);
|
|
|
|
|
|
|
|
DEFINE_EVENT(mpath_evt, rdev_get_mpath,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 *dst,
|
|
|
|
u8 *next_hop),
|
|
|
|
TP_ARGS(wiphy, netdev, dst, next_hop)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_dump_mpath,
|
2018-11-09 17:10:47 +07:00
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, int _idx,
|
2012-07-31 22:48:27 +07:00
|
|
|
u8 *dst, u8 *next_hop),
|
2018-11-09 17:10:47 +07:00
|
|
|
TP_ARGS(wiphy, netdev, _idx, dst, next_hop),
|
2012-07-31 22:48:27 +07:00
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(dst)
|
|
|
|
MAC_ENTRY(next_hop)
|
|
|
|
__field(int, idx)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MAC_ASSIGN(dst, dst);
|
|
|
|
MAC_ASSIGN(next_hop, next_hop);
|
2018-11-09 17:10:47 +07:00
|
|
|
__entry->idx = _idx;
|
2012-07-31 22:48:27 +07:00
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", index: %d, destination: "
|
2012-07-31 22:48:27 +07:00
|
|
|
MAC_PR_FMT ", next hop: " MAC_PR_FMT,
|
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->idx, MAC_PR_ARG(dst),
|
|
|
|
MAC_PR_ARG(next_hop))
|
|
|
|
);
|
|
|
|
|
2014-09-12 13:58:49 +07:00
|
|
|
TRACE_EVENT(rdev_get_mpp,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
u8 *dst, u8 *mpp),
|
|
|
|
TP_ARGS(wiphy, netdev, dst, mpp),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(dst)
|
|
|
|
MAC_ENTRY(mpp)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MAC_ASSIGN(dst, dst);
|
|
|
|
MAC_ASSIGN(mpp, mpp);
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", destination: " MAC_PR_FMT
|
|
|
|
", mpp: " MAC_PR_FMT, WIPHY_PR_ARG, NETDEV_PR_ARG,
|
|
|
|
MAC_PR_ARG(dst), MAC_PR_ARG(mpp))
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_dump_mpp,
|
2018-11-09 17:10:47 +07:00
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, int _idx,
|
2014-09-12 13:58:49 +07:00
|
|
|
u8 *dst, u8 *mpp),
|
2018-11-09 17:10:47 +07:00
|
|
|
TP_ARGS(wiphy, netdev, _idx, mpp, dst),
|
2014-09-12 13:58:49 +07:00
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(dst)
|
|
|
|
MAC_ENTRY(mpp)
|
|
|
|
__field(int, idx)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MAC_ASSIGN(dst, dst);
|
|
|
|
MAC_ASSIGN(mpp, mpp);
|
2018-11-09 17:10:47 +07:00
|
|
|
__entry->idx = _idx;
|
2014-09-12 13:58:49 +07:00
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", index: %d, destination: "
|
|
|
|
MAC_PR_FMT ", mpp: " MAC_PR_FMT,
|
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->idx, MAC_PR_ARG(dst),
|
|
|
|
MAC_PR_ARG(mpp))
|
|
|
|
);
|
|
|
|
|
2012-07-31 22:48:27 +07:00
|
|
|
TRACE_EVENT(rdev_return_int_mpath_info,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, int ret, struct mpath_info *pinfo),
|
|
|
|
TP_ARGS(wiphy, ret, pinfo),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
__field(int, ret)
|
|
|
|
__field(int, generation)
|
|
|
|
__field(u32, filled)
|
|
|
|
__field(u32, frame_qlen)
|
|
|
|
__field(u32, sn)
|
|
|
|
__field(u32, metric)
|
|
|
|
__field(u32, exptime)
|
|
|
|
__field(u32, discovery_timeout)
|
|
|
|
__field(u8, discovery_retries)
|
|
|
|
__field(u8, flags)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
__entry->ret = ret;
|
|
|
|
__entry->generation = pinfo->generation;
|
|
|
|
__entry->filled = pinfo->filled;
|
|
|
|
__entry->frame_qlen = pinfo->frame_qlen;
|
|
|
|
__entry->sn = pinfo->sn;
|
|
|
|
__entry->metric = pinfo->metric;
|
|
|
|
__entry->exptime = pinfo->exptime;
|
|
|
|
__entry->discovery_timeout = pinfo->discovery_timeout;
|
|
|
|
__entry->discovery_retries = pinfo->discovery_retries;
|
|
|
|
__entry->flags = pinfo->flags;
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", returned %d. mpath info - generation: %d, "
|
|
|
|
"filled: %u, frame qlen: %u, sn: %u, metric: %u, exptime: %u,"
|
|
|
|
" discovery timeout: %u, discovery retries: %u, flags: %u",
|
|
|
|
WIPHY_PR_ARG, __entry->ret, __entry->generation,
|
|
|
|
__entry->filled, __entry->frame_qlen, __entry->sn,
|
|
|
|
__entry->metric, __entry->exptime, __entry->discovery_timeout,
|
|
|
|
__entry->discovery_retries, __entry->flags)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_return_int_mesh_config,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, int ret, struct mesh_config *conf),
|
|
|
|
TP_ARGS(wiphy, ret, conf),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
MESH_CFG_ENTRY
|
|
|
|
__field(int, ret)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
MESH_CFG_ASSIGN;
|
|
|
|
__entry->ret = ret;
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", returned: %d",
|
|
|
|
WIPHY_PR_ARG, __entry->ret)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_update_mesh_config,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u32 mask,
|
|
|
|
const struct mesh_config *conf),
|
|
|
|
TP_ARGS(wiphy, netdev, mask, conf),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MESH_CFG_ENTRY
|
|
|
|
__field(u32, mask)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MESH_CFG_ASSIGN;
|
|
|
|
__entry->mask = mask;
|
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", mask: %u",
|
2012-07-31 22:48:27 +07:00
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->mask)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_join_mesh,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
const struct mesh_config *conf,
|
|
|
|
const struct mesh_setup *setup),
|
|
|
|
TP_ARGS(wiphy, netdev, conf, setup),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MESH_CFG_ENTRY
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MESH_CFG_ASSIGN;
|
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT,
|
2012-07-31 22:48:27 +07:00
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_change_bss,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
struct bss_parameters *params),
|
|
|
|
TP_ARGS(wiphy, netdev, params),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
__field(int, use_cts_prot)
|
|
|
|
__field(int, use_short_preamble)
|
|
|
|
__field(int, use_short_slot_time)
|
|
|
|
__field(int, ap_isolate)
|
|
|
|
__field(int, ht_opmode)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
__entry->use_cts_prot = params->use_cts_prot;
|
|
|
|
__entry->use_short_preamble = params->use_short_preamble;
|
|
|
|
__entry->use_short_slot_time = params->use_short_slot_time;
|
|
|
|
__entry->ap_isolate = params->ap_isolate;
|
|
|
|
__entry->ht_opmode = params->ht_opmode;
|
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", use cts prot: %d, "
|
2012-07-31 22:48:27 +07:00
|
|
|
"use short preamble: %d, use short slot time: %d, "
|
|
|
|
"ap isolate: %d, ht opmode: %d",
|
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->use_cts_prot,
|
|
|
|
__entry->use_short_preamble, __entry->use_short_slot_time,
|
|
|
|
__entry->ap_isolate, __entry->ht_opmode)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_set_txq_params,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
struct ieee80211_txq_params *params),
|
|
|
|
TP_ARGS(wiphy, netdev, params),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
__field(enum nl80211_ac, ac)
|
|
|
|
__field(u16, txop)
|
|
|
|
__field(u16, cwmin)
|
|
|
|
__field(u16, cwmax)
|
|
|
|
__field(u8, aifs)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
__entry->ac = params->ac;
|
|
|
|
__entry->txop = params->txop;
|
|
|
|
__entry->cwmin = params->cwmin;
|
|
|
|
__entry->cwmax = params->cwmax;
|
|
|
|
__entry->aifs = params->aifs;
|
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", ac: %d, txop: %u, cwmin: %u, cwmax: %u, aifs: %u",
|
2012-07-31 22:48:27 +07:00
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->ac, __entry->txop,
|
|
|
|
__entry->cwmin, __entry->cwmax, __entry->aifs)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_libertas_set_mesh_channel,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
struct ieee80211_channel *chan),
|
|
|
|
TP_ARGS(wiphy, netdev, chan),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
CHAN_ENTRY
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
CHAN_ASSIGN(chan);
|
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " CHAN_PR_FMT, WIPHY_PR_ARG,
|
2012-07-31 22:48:27 +07:00
|
|
|
NETDEV_PR_ARG, CHAN_PR_ARG)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_set_monitor_channel,
|
2012-11-09 03:25:48 +07:00
|
|
|
TP_PROTO(struct wiphy *wiphy,
|
|
|
|
struct cfg80211_chan_def *chandef),
|
|
|
|
TP_ARGS(wiphy, chandef),
|
2012-07-31 22:48:27 +07:00
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
2012-11-09 03:25:48 +07:00
|
|
|
CHAN_DEF_ENTRY
|
2012-07-31 22:48:27 +07:00
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
2012-11-09 03:25:48 +07:00
|
|
|
CHAN_DEF_ASSIGN(chandef);
|
2012-07-31 22:48:27 +07:00
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " CHAN_DEF_PR_FMT,
|
2012-11-09 03:25:48 +07:00
|
|
|
WIPHY_PR_ARG, CHAN_DEF_PR_ARG)
|
2012-07-31 22:48:27 +07:00
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_auth,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
struct cfg80211_auth_request *req),
|
|
|
|
TP_ARGS(wiphy, netdev, req),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(bssid)
|
|
|
|
__field(enum nl80211_auth_type, auth_type)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
if (req->bss)
|
|
|
|
MAC_ASSIGN(bssid, req->bss->bssid);
|
|
|
|
else
|
2015-03-03 10:54:58 +07:00
|
|
|
eth_zero_addr(__entry->bssid);
|
2012-07-31 22:48:27 +07:00
|
|
|
__entry->auth_type = req->auth_type;
|
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", auth type: %d, bssid: " MAC_PR_FMT,
|
2012-07-31 22:48:27 +07:00
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->auth_type,
|
|
|
|
MAC_PR_ARG(bssid))
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_assoc,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
struct cfg80211_assoc_request *req),
|
|
|
|
TP_ARGS(wiphy, netdev, req),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(bssid)
|
|
|
|
MAC_ENTRY(prev_bssid)
|
|
|
|
__field(bool, use_mfp)
|
|
|
|
__field(u32, flags)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
if (req->bss)
|
|
|
|
MAC_ASSIGN(bssid, req->bss->bssid);
|
|
|
|
else
|
2015-03-03 10:54:58 +07:00
|
|
|
eth_zero_addr(__entry->bssid);
|
2012-07-31 22:48:27 +07:00
|
|
|
MAC_ASSIGN(prev_bssid, req->prev_bssid);
|
|
|
|
__entry->use_mfp = req->use_mfp;
|
|
|
|
__entry->flags = req->flags;
|
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", bssid: " MAC_PR_FMT
|
2012-07-31 22:48:27 +07:00
|
|
|
", previous bssid: " MAC_PR_FMT ", use mfp: %s, flags: %u",
|
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid),
|
|
|
|
MAC_PR_ARG(prev_bssid), BOOL_TO_STR(__entry->use_mfp),
|
|
|
|
__entry->flags)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_deauth,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
struct cfg80211_deauth_request *req),
|
|
|
|
TP_ARGS(wiphy, netdev, req),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(bssid)
|
|
|
|
__field(u16, reason_code)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MAC_ASSIGN(bssid, req->bssid);
|
|
|
|
__entry->reason_code = req->reason_code;
|
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", bssid: " MAC_PR_FMT ", reason: %u",
|
2012-07-31 22:48:27 +07:00
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid),
|
|
|
|
__entry->reason_code)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_disassoc,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
struct cfg80211_disassoc_request *req),
|
|
|
|
TP_ARGS(wiphy, netdev, req),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(bssid)
|
|
|
|
__field(u16, reason_code)
|
|
|
|
__field(bool, local_state_change)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
if (req->bss)
|
|
|
|
MAC_ASSIGN(bssid, req->bss->bssid);
|
|
|
|
else
|
2015-03-03 10:54:58 +07:00
|
|
|
eth_zero_addr(__entry->bssid);
|
2012-07-31 22:48:27 +07:00
|
|
|
__entry->reason_code = req->reason_code;
|
|
|
|
__entry->local_state_change = req->local_state_change;
|
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", bssid: " MAC_PR_FMT
|
2012-07-31 22:48:27 +07:00
|
|
|
", reason: %u, local state change: %s",
|
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid),
|
|
|
|
__entry->reason_code,
|
|
|
|
BOOL_TO_STR(__entry->local_state_change))
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_mgmt_tx_cancel_wait,
|
|
|
|
TP_PROTO(struct wiphy *wiphy,
|
|
|
|
struct wireless_dev *wdev, u64 cookie),
|
|
|
|
TP_ARGS(wiphy, wdev, cookie),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
WDEV_ENTRY
|
|
|
|
__field(u64, cookie)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
WDEV_ASSIGN;
|
|
|
|
__entry->cookie = cookie;
|
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", cookie: %llu ",
|
2012-07-31 22:48:27 +07:00
|
|
|
WIPHY_PR_ARG, WDEV_PR_ARG, __entry->cookie)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_set_power_mgmt,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
bool enabled, int timeout),
|
|
|
|
TP_ARGS(wiphy, netdev, enabled, timeout),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
__field(bool, enabled)
|
|
|
|
__field(int, timeout)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
__entry->enabled = enabled;
|
|
|
|
__entry->timeout = timeout;
|
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", %senabled, timeout: %d ",
|
2012-07-31 22:48:27 +07:00
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG,
|
|
|
|
__entry->enabled ? "" : "not ", __entry->timeout)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_connect,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
struct cfg80211_connect_params *sme),
|
|
|
|
TP_ARGS(wiphy, netdev, sme),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(bssid)
|
|
|
|
__array(char, ssid, IEEE80211_MAX_SSID_LEN + 1)
|
|
|
|
__field(enum nl80211_auth_type, auth_type)
|
|
|
|
__field(bool, privacy)
|
|
|
|
__field(u32, wpa_versions)
|
|
|
|
__field(u32, flags)
|
2016-03-29 17:53:27 +07:00
|
|
|
MAC_ENTRY(prev_bssid)
|
2012-07-31 22:48:27 +07:00
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MAC_ASSIGN(bssid, sme->bssid);
|
|
|
|
memset(__entry->ssid, 0, IEEE80211_MAX_SSID_LEN + 1);
|
|
|
|
memcpy(__entry->ssid, sme->ssid, sme->ssid_len);
|
|
|
|
__entry->auth_type = sme->auth_type;
|
|
|
|
__entry->privacy = sme->privacy;
|
|
|
|
__entry->wpa_versions = sme->crypto.wpa_versions;
|
|
|
|
__entry->flags = sme->flags;
|
2016-03-29 17:53:27 +07:00
|
|
|
MAC_ASSIGN(prev_bssid, sme->prev_bssid);
|
2012-07-31 22:48:27 +07:00
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", bssid: " MAC_PR_FMT
|
2012-07-31 22:48:27 +07:00
|
|
|
", ssid: %s, auth type: %d, privacy: %s, wpa versions: %u, "
|
2016-03-29 17:53:27 +07:00
|
|
|
"flags: %u, previous bssid: " MAC_PR_FMT,
|
2012-07-31 22:48:27 +07:00
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid), __entry->ssid,
|
|
|
|
__entry->auth_type, BOOL_TO_STR(__entry->privacy),
|
2016-03-29 17:53:27 +07:00
|
|
|
__entry->wpa_versions, __entry->flags, MAC_PR_ARG(prev_bssid))
|
2012-07-31 22:48:27 +07:00
|
|
|
);
|
|
|
|
|
2016-10-27 20:51:11 +07:00
|
|
|
TRACE_EVENT(rdev_update_connect_params,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
struct cfg80211_connect_params *sme, u32 changed),
|
|
|
|
TP_ARGS(wiphy, netdev, sme, changed),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
__field(u32, changed)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
__entry->changed = changed;
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", parameters changed: %u",
|
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->changed)
|
|
|
|
);
|
|
|
|
|
2012-07-31 22:48:27 +07:00
|
|
|
TRACE_EVENT(rdev_set_cqm_rssi_config,
|
|
|
|
TP_PROTO(struct wiphy *wiphy,
|
|
|
|
struct net_device *netdev, s32 rssi_thold,
|
|
|
|
u32 rssi_hyst),
|
|
|
|
TP_ARGS(wiphy, netdev, rssi_thold, rssi_hyst),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
__field(s32, rssi_thold)
|
|
|
|
__field(u32, rssi_hyst)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
__entry->rssi_thold = rssi_thold;
|
|
|
|
__entry->rssi_hyst = rssi_hyst;
|
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT
|
2012-07-31 22:48:27 +07:00
|
|
|
", rssi_thold: %d, rssi_hyst: %u ",
|
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG,
|
|
|
|
__entry->rssi_thold, __entry->rssi_hyst)
|
|
|
|
);
|
|
|
|
|
2017-02-10 16:02:31 +07:00
|
|
|
TRACE_EVENT(rdev_set_cqm_rssi_range_config,
|
|
|
|
TP_PROTO(struct wiphy *wiphy,
|
|
|
|
struct net_device *netdev, s32 low, s32 high),
|
|
|
|
TP_ARGS(wiphy, netdev, low, high),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
__field(s32, rssi_low)
|
|
|
|
__field(s32, rssi_high)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
__entry->rssi_low = low;
|
|
|
|
__entry->rssi_high = high;
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT
|
|
|
|
", range: %d - %d ",
|
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG,
|
|
|
|
__entry->rssi_low, __entry->rssi_high)
|
|
|
|
);
|
|
|
|
|
2012-07-31 22:48:27 +07:00
|
|
|
TRACE_EVENT(rdev_set_cqm_txe_config,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u32 rate,
|
|
|
|
u32 pkts, u32 intvl),
|
|
|
|
TP_ARGS(wiphy, netdev, rate, pkts, intvl),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
__field(u32, rate)
|
|
|
|
__field(u32, pkts)
|
|
|
|
__field(u32, intvl)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
__entry->rate = rate;
|
|
|
|
__entry->pkts = pkts;
|
|
|
|
__entry->intvl = intvl;
|
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", rate: %u, packets: %u, interval: %u",
|
2012-07-31 22:48:27 +07:00
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->rate, __entry->pkts,
|
|
|
|
__entry->intvl)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_disconnect,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
u16 reason_code),
|
|
|
|
TP_ARGS(wiphy, netdev, reason_code),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
__field(u16, reason_code)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
__entry->reason_code = reason_code;
|
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", reason code: %u", WIPHY_PR_ARG,
|
2012-07-31 22:48:27 +07:00
|
|
|
NETDEV_PR_ARG, __entry->reason_code)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_join_ibss,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
struct cfg80211_ibss_params *params),
|
|
|
|
TP_ARGS(wiphy, netdev, params),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(bssid)
|
|
|
|
__array(char, ssid, IEEE80211_MAX_SSID_LEN + 1)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MAC_ASSIGN(bssid, params->bssid);
|
|
|
|
memset(__entry->ssid, 0, IEEE80211_MAX_SSID_LEN + 1);
|
|
|
|
memcpy(__entry->ssid, params->ssid, params->ssid_len);
|
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", bssid: " MAC_PR_FMT ", ssid: %s",
|
2012-07-31 22:48:27 +07:00
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid), __entry->ssid)
|
|
|
|
);
|
|
|
|
|
2014-11-03 16:33:18 +07:00
|
|
|
TRACE_EVENT(rdev_join_ocb,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
const struct ocb_setup *setup),
|
|
|
|
TP_ARGS(wiphy, netdev, setup),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT,
|
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG)
|
|
|
|
);
|
|
|
|
|
2012-07-31 22:48:27 +07:00
|
|
|
TRACE_EVENT(rdev_set_wiphy_params,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, u32 changed),
|
|
|
|
TP_ARGS(wiphy, changed),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
__field(u32, changed)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
__entry->changed = changed;
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", changed: %u",
|
|
|
|
WIPHY_PR_ARG, __entry->changed)
|
|
|
|
);
|
|
|
|
|
2012-10-24 15:17:18 +07:00
|
|
|
DEFINE_EVENT(wiphy_wdev_evt, rdev_get_tx_power,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev),
|
|
|
|
TP_ARGS(wiphy, wdev)
|
|
|
|
);
|
|
|
|
|
2012-07-31 22:48:27 +07:00
|
|
|
TRACE_EVENT(rdev_set_tx_power,
|
2012-10-24 15:17:18 +07:00
|
|
|
TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev,
|
|
|
|
enum nl80211_tx_power_setting type, int mbm),
|
|
|
|
TP_ARGS(wiphy, wdev, type, mbm),
|
2012-07-31 22:48:27 +07:00
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
2012-10-24 15:17:18 +07:00
|
|
|
WDEV_ENTRY
|
2012-07-31 22:48:27 +07:00
|
|
|
__field(enum nl80211_tx_power_setting, type)
|
|
|
|
__field(int, mbm)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
2012-10-24 15:17:18 +07:00
|
|
|
WDEV_ASSIGN;
|
2012-07-31 22:48:27 +07:00
|
|
|
__entry->type = type;
|
|
|
|
__entry->mbm = mbm;
|
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", type: %u, mbm: %d",
|
2012-10-24 15:17:18 +07:00
|
|
|
WIPHY_PR_ARG, WDEV_PR_ARG,__entry->type, __entry->mbm)
|
2012-07-31 22:48:27 +07:00
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_return_int_int,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, int func_ret, int func_fill),
|
|
|
|
TP_ARGS(wiphy, func_ret, func_fill),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
__field(int, func_ret)
|
|
|
|
__field(int, func_fill)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
__entry->func_ret = func_ret;
|
|
|
|
__entry->func_fill = func_fill;
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", function returns: %d, function filled: %d",
|
|
|
|
WIPHY_PR_ARG, __entry->func_ret, __entry->func_fill)
|
|
|
|
);
|
|
|
|
|
|
|
|
#ifdef CONFIG_NL80211_TESTMODE
|
|
|
|
TRACE_EVENT(rdev_testmode_cmd,
|
2013-07-31 22:04:15 +07:00
|
|
|
TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev),
|
|
|
|
TP_ARGS(wiphy, wdev),
|
2012-07-31 22:48:27 +07:00
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
2013-07-31 22:04:15 +07:00
|
|
|
WDEV_ENTRY
|
2012-07-31 22:48:27 +07:00
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
2013-07-31 22:04:15 +07:00
|
|
|
WDEV_ASSIGN;
|
2012-07-31 22:48:27 +07:00
|
|
|
),
|
2013-07-31 22:04:15 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT WDEV_PR_FMT, WIPHY_PR_ARG, WDEV_PR_ARG)
|
2012-07-31 22:48:27 +07:00
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_testmode_dump,
|
|
|
|
TP_PROTO(struct wiphy *wiphy),
|
|
|
|
TP_ARGS(wiphy),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT, WIPHY_PR_ARG)
|
|
|
|
);
|
|
|
|
#endif /* CONFIG_NL80211_TESTMODE */
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_set_bitrate_mask,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
const u8 *peer, const struct cfg80211_bitrate_mask *mask),
|
|
|
|
TP_ARGS(wiphy, netdev, peer, mask),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(peer)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MAC_ASSIGN(peer, peer);
|
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", peer: " MAC_PR_FMT,
|
2012-07-31 22:48:27 +07:00
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer))
|
|
|
|
);
|
|
|
|
|
2020-04-17 17:43:01 +07:00
|
|
|
TRACE_EVENT(rdev_update_mgmt_frame_registrations,
|
2012-07-31 22:48:27 +07:00
|
|
|
TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev,
|
2020-04-17 17:43:01 +07:00
|
|
|
struct mgmt_frame_regs *upd),
|
|
|
|
TP_ARGS(wiphy, wdev, upd),
|
2012-07-31 22:48:27 +07:00
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
WDEV_ENTRY
|
2020-04-17 17:43:01 +07:00
|
|
|
__field(u16, global_stypes)
|
|
|
|
__field(u16, interface_stypes)
|
2012-07-31 22:48:27 +07:00
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
WDEV_ASSIGN;
|
2020-04-17 17:43:01 +07:00
|
|
|
__entry->global_stypes = upd->global_stypes;
|
|
|
|
__entry->interface_stypes = upd->interface_stypes;
|
2012-07-31 22:48:27 +07:00
|
|
|
),
|
2020-04-17 17:43:01 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", global: 0x%.2x, intf: 0x%.2x",
|
|
|
|
WIPHY_PR_ARG, WDEV_PR_ARG,
|
|
|
|
__entry->global_stypes, __entry->interface_stypes)
|
2012-07-31 22:48:27 +07:00
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_return_int_tx_rx,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, int ret, u32 tx, u32 rx),
|
|
|
|
TP_ARGS(wiphy, ret, tx, rx),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
__field(int, ret)
|
|
|
|
__field(u32, tx)
|
|
|
|
__field(u32, rx)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
__entry->ret = ret;
|
|
|
|
__entry->tx = tx;
|
|
|
|
__entry->rx = rx;
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", returned %d, tx: %u, rx: %u",
|
|
|
|
WIPHY_PR_ARG, __entry->ret, __entry->tx, __entry->rx)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_return_void_tx_rx,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, u32 tx, u32 tx_max,
|
|
|
|
u32 rx, u32 rx_max),
|
|
|
|
TP_ARGS(wiphy, tx, tx_max, rx, rx_max),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
__field(u32, tx)
|
|
|
|
__field(u32, tx_max)
|
|
|
|
__field(u32, rx)
|
|
|
|
__field(u32, rx_max)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
__entry->tx = tx;
|
|
|
|
__entry->tx_max = tx_max;
|
|
|
|
__entry->rx = rx;
|
|
|
|
__entry->rx_max = rx_max;
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", tx: %u, tx_max: %u, rx: %u, rx_max: %u ",
|
|
|
|
WIPHY_PR_ARG, __entry->tx, __entry->tx_max, __entry->rx,
|
|
|
|
__entry->rx_max)
|
|
|
|
);
|
|
|
|
|
|
|
|
DECLARE_EVENT_CLASS(tx_rx_evt,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, u32 tx, u32 rx),
|
|
|
|
TP_ARGS(wiphy, rx, tx),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
__field(u32, tx)
|
|
|
|
__field(u32, rx)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
__entry->tx = tx;
|
|
|
|
__entry->rx = rx;
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", tx: %u, rx: %u ",
|
|
|
|
WIPHY_PR_ARG, __entry->tx, __entry->rx)
|
|
|
|
);
|
|
|
|
|
|
|
|
DEFINE_EVENT(tx_rx_evt, rdev_set_antenna,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, u32 tx, u32 rx),
|
|
|
|
TP_ARGS(wiphy, rx, tx)
|
|
|
|
);
|
|
|
|
|
2017-04-21 19:05:00 +07:00
|
|
|
DECLARE_EVENT_CLASS(wiphy_netdev_id_evt,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u64 id),
|
|
|
|
TP_ARGS(wiphy, netdev, id),
|
2012-07-31 22:48:27 +07:00
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
2017-04-21 19:05:00 +07:00
|
|
|
__field(u64, id)
|
2012-07-31 22:48:27 +07:00
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
2017-04-21 19:05:00 +07:00
|
|
|
__entry->id = id;
|
2012-07-31 22:48:27 +07:00
|
|
|
),
|
2017-04-21 19:05:00 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", id: %llu",
|
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->id)
|
|
|
|
);
|
|
|
|
|
|
|
|
DEFINE_EVENT(wiphy_netdev_id_evt, rdev_sched_scan_start,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u64 id),
|
|
|
|
TP_ARGS(wiphy, netdev, id)
|
2012-07-31 22:48:27 +07:00
|
|
|
);
|
|
|
|
|
2017-04-21 19:05:02 +07:00
|
|
|
DEFINE_EVENT(wiphy_netdev_id_evt, rdev_sched_scan_stop,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u64 id),
|
|
|
|
TP_ARGS(wiphy, netdev, id)
|
|
|
|
);
|
|
|
|
|
2012-07-31 22:48:27 +07:00
|
|
|
TRACE_EVENT(rdev_tdls_mgmt,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
u8 *peer, u8 action_code, u8 dialog_token,
|
2014-02-20 17:52:09 +07:00
|
|
|
u16 status_code, u32 peer_capability,
|
2014-06-11 21:18:21 +07:00
|
|
|
bool initiator, const u8 *buf, size_t len),
|
2012-07-31 22:48:27 +07:00
|
|
|
TP_ARGS(wiphy, netdev, peer, action_code, dialog_token, status_code,
|
2014-06-11 21:18:21 +07:00
|
|
|
peer_capability, initiator, buf, len),
|
2012-07-31 22:48:27 +07:00
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(peer)
|
|
|
|
__field(u8, action_code)
|
|
|
|
__field(u8, dialog_token)
|
|
|
|
__field(u16, status_code)
|
2014-02-20 17:52:09 +07:00
|
|
|
__field(u32, peer_capability)
|
2014-06-11 21:18:21 +07:00
|
|
|
__field(bool, initiator)
|
2012-07-31 22:48:27 +07:00
|
|
|
__dynamic_array(u8, buf, len)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MAC_ASSIGN(peer, peer);
|
|
|
|
__entry->action_code = action_code;
|
|
|
|
__entry->dialog_token = dialog_token;
|
|
|
|
__entry->status_code = status_code;
|
2014-02-20 17:52:09 +07:00
|
|
|
__entry->peer_capability = peer_capability;
|
2014-06-11 21:18:21 +07:00
|
|
|
__entry->initiator = initiator;
|
2012-07-31 22:48:27 +07:00
|
|
|
memcpy(__get_dynamic_array(buf), buf, len);
|
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " MAC_PR_FMT ", action_code: %u, "
|
2014-06-11 21:18:21 +07:00
|
|
|
"dialog_token: %u, status_code: %u, peer_capability: %u "
|
|
|
|
"initiator: %s buf: %#.2x ",
|
2012-07-31 22:48:27 +07:00
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer),
|
|
|
|
__entry->action_code, __entry->dialog_token,
|
2014-02-20 17:52:09 +07:00
|
|
|
__entry->status_code, __entry->peer_capability,
|
2014-06-11 21:18:21 +07:00
|
|
|
BOOL_TO_STR(__entry->initiator),
|
2014-02-20 17:52:09 +07:00
|
|
|
((u8 *)__get_dynamic_array(buf))[0])
|
2012-07-31 22:48:27 +07:00
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_dump_survey,
|
2018-11-09 17:10:47 +07:00
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, int _idx),
|
|
|
|
TP_ARGS(wiphy, netdev, _idx),
|
2012-07-31 22:48:27 +07:00
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
__field(int, idx)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
2018-11-09 17:10:47 +07:00
|
|
|
__entry->idx = _idx;
|
2012-07-31 22:48:27 +07:00
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", index: %d",
|
2012-07-31 22:48:27 +07:00
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->idx)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_return_int_survey_info,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, int ret, struct survey_info *info),
|
|
|
|
TP_ARGS(wiphy, ret, info),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
CHAN_ENTRY
|
|
|
|
__field(int, ret)
|
2014-11-14 22:35:34 +07:00
|
|
|
__field(u64, time)
|
|
|
|
__field(u64, time_busy)
|
|
|
|
__field(u64, time_ext_busy)
|
|
|
|
__field(u64, time_rx)
|
|
|
|
__field(u64, time_tx)
|
2014-11-14 22:44:11 +07:00
|
|
|
__field(u64, time_scan)
|
2012-07-31 22:48:27 +07:00
|
|
|
__field(u32, filled)
|
|
|
|
__field(s8, noise)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
CHAN_ASSIGN(info->channel);
|
|
|
|
__entry->ret = ret;
|
2014-11-14 22:35:34 +07:00
|
|
|
__entry->time = info->time;
|
|
|
|
__entry->time_busy = info->time_busy;
|
|
|
|
__entry->time_ext_busy = info->time_ext_busy;
|
|
|
|
__entry->time_rx = info->time_rx;
|
|
|
|
__entry->time_tx = info->time_tx;
|
2014-11-14 22:44:11 +07:00
|
|
|
__entry->time_scan = info->time_scan;
|
2012-07-31 22:48:27 +07:00
|
|
|
__entry->filled = info->filled;
|
|
|
|
__entry->noise = info->noise;
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", returned: %d, " CHAN_PR_FMT
|
|
|
|
", channel time: %llu, channel time busy: %llu, "
|
|
|
|
"channel time extension busy: %llu, channel time rx: %llu, "
|
2014-11-14 22:44:11 +07:00
|
|
|
"channel time tx: %llu, scan time: %llu, filled: %u, noise: %d",
|
2012-07-31 22:48:27 +07:00
|
|
|
WIPHY_PR_ARG, __entry->ret, CHAN_PR_ARG,
|
2014-11-14 22:35:34 +07:00
|
|
|
__entry->time, __entry->time_busy,
|
|
|
|
__entry->time_ext_busy, __entry->time_rx,
|
2014-11-14 22:44:11 +07:00
|
|
|
__entry->time_tx, __entry->time_scan,
|
|
|
|
__entry->filled, __entry->noise)
|
2012-07-31 22:48:27 +07:00
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_tdls_oper,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
u8 *peer, enum nl80211_tdls_operation oper),
|
|
|
|
TP_ARGS(wiphy, netdev, peer, oper),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(peer)
|
|
|
|
__field(enum nl80211_tdls_operation, oper)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MAC_ASSIGN(peer, peer);
|
|
|
|
__entry->oper = oper;
|
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " MAC_PR_FMT ", oper: %d",
|
2012-07-31 22:48:27 +07:00
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer), __entry->oper)
|
|
|
|
);
|
|
|
|
|
|
|
|
DECLARE_EVENT_CLASS(rdev_pmksa,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
struct cfg80211_pmksa *pmksa),
|
|
|
|
TP_ARGS(wiphy, netdev, pmksa),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(bssid)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MAC_ASSIGN(bssid, pmksa->bssid);
|
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", bssid: " MAC_PR_FMT,
|
2012-07-31 22:48:27 +07:00
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(bssid))
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_probe_client,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
const u8 *peer),
|
|
|
|
TP_ARGS(wiphy, netdev, peer),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(peer)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MAC_ASSIGN(peer, peer);
|
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " MAC_PR_FMT,
|
2012-07-31 22:48:27 +07:00
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer))
|
|
|
|
);
|
|
|
|
|
|
|
|
DEFINE_EVENT(rdev_pmksa, rdev_set_pmksa,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
struct cfg80211_pmksa *pmksa),
|
|
|
|
TP_ARGS(wiphy, netdev, pmksa)
|
|
|
|
);
|
|
|
|
|
|
|
|
DEFINE_EVENT(rdev_pmksa, rdev_del_pmksa,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
struct cfg80211_pmksa *pmksa),
|
|
|
|
TP_ARGS(wiphy, netdev, pmksa)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_remain_on_channel,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev,
|
|
|
|
struct ieee80211_channel *chan,
|
2012-11-09 00:31:02 +07:00
|
|
|
unsigned int duration),
|
|
|
|
TP_ARGS(wiphy, wdev, chan, duration),
|
2012-07-31 22:48:27 +07:00
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
WDEV_ENTRY
|
|
|
|
CHAN_ENTRY
|
|
|
|
__field(unsigned int, duration)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
WDEV_ASSIGN;
|
|
|
|
CHAN_ASSIGN(chan);
|
|
|
|
__entry->duration = duration;
|
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", " CHAN_PR_FMT ", duration: %u",
|
2012-11-09 00:31:02 +07:00
|
|
|
WIPHY_PR_ARG, WDEV_PR_ARG, CHAN_PR_ARG, __entry->duration)
|
2012-07-31 22:48:27 +07:00
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_return_int_cookie,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, int ret, u64 cookie),
|
|
|
|
TP_ARGS(wiphy, ret, cookie),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
__field(int, ret)
|
|
|
|
__field(u64, cookie)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
__entry->ret = ret;
|
|
|
|
__entry->cookie = cookie;
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", returned %d, cookie: %llu",
|
|
|
|
WIPHY_PR_ARG, __entry->ret, __entry->cookie)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_cancel_remain_on_channel,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, u64 cookie),
|
|
|
|
TP_ARGS(wiphy, wdev, cookie),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
WDEV_ENTRY
|
|
|
|
__field(u64, cookie)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
WDEV_ASSIGN;
|
|
|
|
__entry->cookie = cookie;
|
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", cookie: %llu",
|
2012-07-31 22:48:27 +07:00
|
|
|
WIPHY_PR_ARG, WDEV_PR_ARG, __entry->cookie)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_mgmt_tx,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev,
|
2013-11-19 00:06:49 +07:00
|
|
|
struct cfg80211_mgmt_tx_params *params),
|
|
|
|
TP_ARGS(wiphy, wdev, params),
|
2012-07-31 22:48:27 +07:00
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
WDEV_ENTRY
|
|
|
|
CHAN_ENTRY
|
|
|
|
__field(bool, offchan)
|
|
|
|
__field(unsigned int, wait)
|
|
|
|
__field(bool, no_cck)
|
|
|
|
__field(bool, dont_wait_for_ack)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
WDEV_ASSIGN;
|
2013-11-19 00:06:49 +07:00
|
|
|
CHAN_ASSIGN(params->chan);
|
|
|
|
__entry->offchan = params->offchan;
|
|
|
|
__entry->wait = params->wait;
|
|
|
|
__entry->no_cck = params->no_cck;
|
|
|
|
__entry->dont_wait_for_ack = params->dont_wait_for_ack;
|
2012-07-31 22:48:27 +07:00
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", " CHAN_PR_FMT ", offchan: %s,"
|
2012-11-09 00:31:02 +07:00
|
|
|
" wait: %u, no cck: %s, dont wait for ack: %s",
|
2012-07-31 22:48:27 +07:00
|
|
|
WIPHY_PR_ARG, WDEV_PR_ARG, CHAN_PR_ARG,
|
2012-11-09 00:31:02 +07:00
|
|
|
BOOL_TO_STR(__entry->offchan), __entry->wait,
|
2012-07-31 22:48:27 +07:00
|
|
|
BOOL_TO_STR(__entry->no_cck),
|
|
|
|
BOOL_TO_STR(__entry->dont_wait_for_ack))
|
|
|
|
);
|
|
|
|
|
2018-03-27 00:52:42 +07:00
|
|
|
TRACE_EVENT(rdev_tx_control_port,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
2020-02-24 16:19:12 +07:00
|
|
|
const u8 *buf, size_t len, const u8 *dest, __be16 proto,
|
2018-03-27 00:52:42 +07:00
|
|
|
bool unencrypted),
|
2020-02-24 16:19:12 +07:00
|
|
|
TP_ARGS(wiphy, netdev, buf, len, dest, proto, unencrypted),
|
2018-03-27 00:52:42 +07:00
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(dest)
|
2020-02-24 16:19:12 +07:00
|
|
|
__field(__be16, proto)
|
2018-03-27 00:52:42 +07:00
|
|
|
__field(bool, unencrypted)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MAC_ASSIGN(dest, dest);
|
2020-02-24 16:19:12 +07:00
|
|
|
__entry->proto = proto;
|
2018-03-27 00:52:42 +07:00
|
|
|
__entry->unencrypted = unencrypted;
|
|
|
|
),
|
2020-02-24 16:19:12 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " MAC_PR_FMT ","
|
|
|
|
" proto: 0x%x, unencrypted: %s",
|
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(dest),
|
|
|
|
be16_to_cpu(__entry->proto),
|
2018-03-27 00:52:42 +07:00
|
|
|
BOOL_TO_STR(__entry->unencrypted))
|
|
|
|
);
|
|
|
|
|
2012-07-31 22:48:27 +07:00
|
|
|
TRACE_EVENT(rdev_set_noack_map,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
u16 noack_map),
|
|
|
|
TP_ARGS(wiphy, netdev, noack_map),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
__field(u16, noack_map)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
__entry->noack_map = noack_map;
|
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", noack_map: %u",
|
2012-07-31 22:48:27 +07:00
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->noack_map)
|
|
|
|
);
|
|
|
|
|
|
|
|
DEFINE_EVENT(wiphy_wdev_evt, rdev_get_channel,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev),
|
|
|
|
TP_ARGS(wiphy, wdev)
|
|
|
|
);
|
|
|
|
|
2012-11-09 03:25:48 +07:00
|
|
|
TRACE_EVENT(rdev_return_chandef,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, int ret,
|
|
|
|
struct cfg80211_chan_def *chandef),
|
|
|
|
TP_ARGS(wiphy, ret, chandef),
|
2012-07-31 22:48:27 +07:00
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
2012-11-09 03:25:48 +07:00
|
|
|
__field(int, ret)
|
|
|
|
CHAN_DEF_ENTRY
|
2012-07-31 22:48:27 +07:00
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
2012-11-09 03:25:48 +07:00
|
|
|
if (ret == 0)
|
|
|
|
CHAN_DEF_ASSIGN(chandef);
|
|
|
|
else
|
|
|
|
CHAN_DEF_ASSIGN((struct cfg80211_chan_def *)NULL);
|
|
|
|
__entry->ret = ret;
|
2012-07-31 22:48:27 +07:00
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " CHAN_DEF_PR_FMT ", ret: %d",
|
2012-11-09 03:25:48 +07:00
|
|
|
WIPHY_PR_ARG, CHAN_DEF_PR_ARG, __entry->ret)
|
2012-07-31 22:48:27 +07:00
|
|
|
);
|
|
|
|
|
2012-10-23 20:16:50 +07:00
|
|
|
DEFINE_EVENT(wiphy_wdev_evt, rdev_start_p2p_device,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev),
|
|
|
|
TP_ARGS(wiphy, wdev)
|
|
|
|
);
|
|
|
|
|
|
|
|
DEFINE_EVENT(wiphy_wdev_evt, rdev_stop_p2p_device,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev),
|
|
|
|
TP_ARGS(wiphy, wdev)
|
|
|
|
);
|
|
|
|
|
2016-09-20 21:31:13 +07:00
|
|
|
TRACE_EVENT(rdev_start_nan,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev,
|
|
|
|
struct cfg80211_nan_conf *conf),
|
|
|
|
TP_ARGS(wiphy, wdev, conf),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
WDEV_ENTRY
|
|
|
|
__field(u8, master_pref)
|
2019-10-25 03:26:59 +07:00
|
|
|
__field(u8, bands)
|
2016-09-20 21:31:13 +07:00
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
WDEV_ASSIGN;
|
|
|
|
__entry->master_pref = conf->master_pref;
|
2017-02-08 20:00:34 +07:00
|
|
|
__entry->bands = conf->bands;
|
2016-09-20 21:31:13 +07:00
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT
|
2017-02-08 20:00:34 +07:00
|
|
|
", master preference: %u, bands: 0x%0x",
|
2016-09-20 21:31:13 +07:00
|
|
|
WIPHY_PR_ARG, WDEV_PR_ARG, __entry->master_pref,
|
2017-02-08 20:00:34 +07:00
|
|
|
__entry->bands)
|
2016-09-20 21:31:13 +07:00
|
|
|
);
|
|
|
|
|
2016-09-20 21:31:16 +07:00
|
|
|
TRACE_EVENT(rdev_nan_change_conf,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev,
|
|
|
|
struct cfg80211_nan_conf *conf, u32 changes),
|
|
|
|
TP_ARGS(wiphy, wdev, conf, changes),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
WDEV_ENTRY
|
|
|
|
__field(u8, master_pref)
|
2019-10-25 03:26:59 +07:00
|
|
|
__field(u8, bands)
|
|
|
|
__field(u32, changes)
|
2016-09-20 21:31:16 +07:00
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
WDEV_ASSIGN;
|
|
|
|
__entry->master_pref = conf->master_pref;
|
2017-02-08 20:00:34 +07:00
|
|
|
__entry->bands = conf->bands;
|
2016-09-20 21:31:16 +07:00
|
|
|
__entry->changes = changes;
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT
|
2017-02-08 20:00:34 +07:00
|
|
|
", master preference: %u, bands: 0x%0x, changes: %x",
|
2016-09-20 21:31:16 +07:00
|
|
|
WIPHY_PR_ARG, WDEV_PR_ARG, __entry->master_pref,
|
2017-02-08 20:00:34 +07:00
|
|
|
__entry->bands, __entry->changes)
|
2016-09-20 21:31:16 +07:00
|
|
|
);
|
|
|
|
|
2016-09-20 21:31:13 +07:00
|
|
|
DEFINE_EVENT(wiphy_wdev_evt, rdev_stop_nan,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev),
|
|
|
|
TP_ARGS(wiphy, wdev)
|
|
|
|
);
|
|
|
|
|
2016-09-20 21:31:15 +07:00
|
|
|
TRACE_EVENT(rdev_add_nan_func,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev,
|
|
|
|
const struct cfg80211_nan_func *func),
|
|
|
|
TP_ARGS(wiphy, wdev, func),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
WDEV_ENTRY
|
|
|
|
__field(u8, func_type)
|
|
|
|
__field(u64, cookie)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
WDEV_ASSIGN;
|
|
|
|
__entry->func_type = func->type;
|
|
|
|
__entry->cookie = func->cookie
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", type=%u, cookie=%llu",
|
|
|
|
WIPHY_PR_ARG, WDEV_PR_ARG, __entry->func_type,
|
|
|
|
__entry->cookie)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_del_nan_func,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev,
|
|
|
|
u64 cookie),
|
|
|
|
TP_ARGS(wiphy, wdev, cookie),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
WDEV_ENTRY
|
|
|
|
__field(u64, cookie)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
WDEV_ASSIGN;
|
|
|
|
__entry->cookie = cookie;
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", cookie=%llu",
|
|
|
|
WIPHY_PR_ARG, WDEV_PR_ARG, __entry->cookie)
|
|
|
|
);
|
|
|
|
|
2013-01-18 12:48:45 +07:00
|
|
|
TRACE_EVENT(rdev_set_mac_acl,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
struct cfg80211_acl_data *params),
|
|
|
|
TP_ARGS(wiphy, netdev, params),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
__field(u32, acl_policy)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
2013-03-07 16:08:29 +07:00
|
|
|
NETDEV_ASSIGN;
|
2013-01-18 12:48:45 +07:00
|
|
|
__entry->acl_policy = params->acl_policy;
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", acl policy: %d",
|
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->acl_policy)
|
|
|
|
);
|
|
|
|
|
2013-02-27 22:14:27 +07:00
|
|
|
TRACE_EVENT(rdev_update_ft_ies,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
struct cfg80211_update_ft_ies_params *ftie),
|
|
|
|
TP_ARGS(wiphy, netdev, ftie),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
__field(u16, md)
|
|
|
|
__dynamic_array(u8, ie, ftie->ie_len)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
__entry->md = ftie->md;
|
|
|
|
memcpy(__get_dynamic_array(ie), ftie->ie, ftie->ie_len);
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", md: 0x%x",
|
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->md)
|
|
|
|
);
|
|
|
|
|
2013-04-18 20:49:00 +07:00
|
|
|
TRACE_EVENT(rdev_crit_proto_start,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev,
|
|
|
|
enum nl80211_crit_proto_id protocol, u16 duration),
|
|
|
|
TP_ARGS(wiphy, wdev, protocol, duration),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
WDEV_ENTRY
|
|
|
|
__field(u16, proto)
|
|
|
|
__field(u16, duration)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
WDEV_ASSIGN;
|
|
|
|
__entry->proto = protocol;
|
|
|
|
__entry->duration = duration;
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", proto=%x, duration=%u",
|
|
|
|
WIPHY_PR_ARG, WDEV_PR_ARG, __entry->proto, __entry->duration)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_crit_proto_stop,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev),
|
|
|
|
TP_ARGS(wiphy, wdev),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
WDEV_ENTRY
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
WDEV_ASSIGN;
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT,
|
|
|
|
WIPHY_PR_ARG, WDEV_PR_ARG)
|
|
|
|
);
|
|
|
|
|
2013-07-11 21:09:05 +07:00
|
|
|
TRACE_EVENT(rdev_channel_switch,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
struct cfg80211_csa_settings *params),
|
|
|
|
TP_ARGS(wiphy, netdev, params),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
CHAN_DEF_ENTRY
|
|
|
|
__field(bool, radar_required)
|
|
|
|
__field(bool, block_tx)
|
|
|
|
__field(u8, count)
|
2014-05-09 18:11:46 +07:00
|
|
|
__dynamic_array(u16, bcn_ofs, params->n_counter_offsets_beacon)
|
|
|
|
__dynamic_array(u16, pres_ofs, params->n_counter_offsets_presp)
|
2013-07-11 21:09:05 +07:00
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
CHAN_DEF_ASSIGN(¶ms->chandef);
|
|
|
|
__entry->radar_required = params->radar_required;
|
|
|
|
__entry->block_tx = params->block_tx;
|
|
|
|
__entry->count = params->count;
|
2014-05-09 18:11:46 +07:00
|
|
|
memcpy(__get_dynamic_array(bcn_ofs),
|
|
|
|
params->counter_offsets_beacon,
|
|
|
|
params->n_counter_offsets_beacon * sizeof(u16));
|
|
|
|
|
|
|
|
/* probe response offsets are optional */
|
|
|
|
if (params->n_counter_offsets_presp)
|
|
|
|
memcpy(__get_dynamic_array(pres_ofs),
|
|
|
|
params->counter_offsets_presp,
|
|
|
|
params->n_counter_offsets_presp * sizeof(u16));
|
2013-07-11 21:09:05 +07:00
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " CHAN_DEF_PR_FMT
|
2014-05-09 18:11:46 +07:00
|
|
|
", block_tx: %d, count: %u, radar_required: %d",
|
2013-07-11 21:09:05 +07:00
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, CHAN_DEF_PR_ARG,
|
2014-05-09 18:11:46 +07:00
|
|
|
__entry->block_tx, __entry->count, __entry->radar_required)
|
2013-07-11 21:09:05 +07:00
|
|
|
);
|
|
|
|
|
2013-12-17 14:01:30 +07:00
|
|
|
TRACE_EVENT(rdev_set_qos_map,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
struct cfg80211_qos_map *qos_map),
|
|
|
|
TP_ARGS(wiphy, netdev, qos_map),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
QOS_MAP_ENTRY
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
QOS_MAP_ASSIGN(qos_map);
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", num_des: %u",
|
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->num_des)
|
|
|
|
);
|
|
|
|
|
2014-04-28 15:22:08 +07:00
|
|
|
TRACE_EVENT(rdev_set_ap_chanwidth,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
struct cfg80211_chan_def *chandef),
|
|
|
|
TP_ARGS(wiphy, netdev, chandef),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
CHAN_DEF_ENTRY
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
CHAN_DEF_ASSIGN(chandef);
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " CHAN_DEF_PR_FMT,
|
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, CHAN_DEF_PR_ARG)
|
|
|
|
);
|
|
|
|
|
2014-09-10 02:55:35 +07:00
|
|
|
TRACE_EVENT(rdev_add_tx_ts,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
u8 tsid, const u8 *peer, u8 user_prio, u16 admitted_time),
|
|
|
|
TP_ARGS(wiphy, netdev, tsid, peer, user_prio, admitted_time),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(peer)
|
|
|
|
__field(u8, tsid)
|
|
|
|
__field(u8, user_prio)
|
|
|
|
__field(u16, admitted_time)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MAC_ASSIGN(peer, peer);
|
|
|
|
__entry->tsid = tsid;
|
|
|
|
__entry->user_prio = user_prio;
|
|
|
|
__entry->admitted_time = admitted_time;
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " MAC_PR_FMT ", TSID %d, UP %d, time %d",
|
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer),
|
|
|
|
__entry->tsid, __entry->user_prio, __entry->admitted_time)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_del_tx_ts,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
u8 tsid, const u8 *peer),
|
|
|
|
TP_ARGS(wiphy, netdev, tsid, peer),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(peer)
|
|
|
|
__field(u8, tsid)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MAC_ASSIGN(peer, peer);
|
|
|
|
__entry->tsid = tsid;
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " MAC_PR_FMT ", TSID %d",
|
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer), __entry->tsid)
|
|
|
|
);
|
|
|
|
|
2014-11-19 17:54:26 +07:00
|
|
|
TRACE_EVENT(rdev_tdls_channel_switch,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
const u8 *addr, u8 oper_class,
|
|
|
|
struct cfg80211_chan_def *chandef),
|
|
|
|
TP_ARGS(wiphy, netdev, addr, oper_class, chandef),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(addr)
|
|
|
|
__field(u8, oper_class)
|
|
|
|
CHAN_DEF_ENTRY
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MAC_ASSIGN(addr, addr);
|
|
|
|
CHAN_DEF_ASSIGN(chandef);
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " MAC_PR_FMT
|
|
|
|
" oper class %d, " CHAN_DEF_PR_FMT,
|
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(addr),
|
|
|
|
__entry->oper_class, CHAN_DEF_PR_ARG)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_tdls_cancel_channel_switch,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
const u8 *addr),
|
|
|
|
TP_ARGS(wiphy, netdev, addr),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(addr)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MAC_ASSIGN(addr, addr);
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " MAC_PR_FMT,
|
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(addr))
|
|
|
|
);
|
|
|
|
|
2017-06-09 19:08:43 +07:00
|
|
|
TRACE_EVENT(rdev_set_pmk,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
struct cfg80211_pmk_conf *pmk_conf),
|
|
|
|
|
|
|
|
TP_ARGS(wiphy, netdev, pmk_conf),
|
|
|
|
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(aa)
|
|
|
|
__field(u8, pmk_len)
|
|
|
|
__field(u8, pmk_r0_name_len)
|
|
|
|
__dynamic_array(u8, pmk, pmk_conf->pmk_len)
|
|
|
|
__dynamic_array(u8, pmk_r0_name, WLAN_PMK_NAME_LEN)
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MAC_ASSIGN(aa, pmk_conf->aa);
|
|
|
|
__entry->pmk_len = pmk_conf->pmk_len;
|
|
|
|
__entry->pmk_r0_name_len =
|
|
|
|
pmk_conf->pmk_r0_name ? WLAN_PMK_NAME_LEN : 0;
|
|
|
|
memcpy(__get_dynamic_array(pmk), pmk_conf->pmk,
|
|
|
|
pmk_conf->pmk_len);
|
|
|
|
memcpy(__get_dynamic_array(pmk_r0_name), pmk_conf->pmk_r0_name,
|
|
|
|
pmk_conf->pmk_r0_name ? WLAN_PMK_NAME_LEN : 0);
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " MAC_PR_FMT
|
|
|
|
"pmk_len=%u, pmk: %s pmk_r0_name: %s", WIPHY_PR_ARG,
|
|
|
|
NETDEV_PR_ARG, MAC_PR_ARG(aa), __entry->pmk_len,
|
|
|
|
__print_array(__get_dynamic_array(pmk),
|
|
|
|
__get_dynamic_array_len(pmk), 1),
|
|
|
|
__entry->pmk_r0_name_len ?
|
|
|
|
__print_array(__get_dynamic_array(pmk_r0_name),
|
|
|
|
__get_dynamic_array_len(pmk_r0_name), 1) : "")
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_del_pmk,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, const u8 *aa),
|
|
|
|
|
|
|
|
TP_ARGS(wiphy, netdev, aa),
|
|
|
|
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(aa)
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MAC_ASSIGN(aa, aa);
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " MAC_PR_FMT,
|
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(aa))
|
|
|
|
);
|
|
|
|
|
2018-01-25 22:13:38 +07:00
|
|
|
TRACE_EVENT(rdev_external_auth,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
struct cfg80211_external_auth_params *params),
|
|
|
|
TP_ARGS(wiphy, netdev, params),
|
|
|
|
TP_STRUCT__entry(WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(bssid)
|
|
|
|
__array(u8, ssid, IEEE80211_MAX_SSID_LEN + 1)
|
|
|
|
__field(u16, status)
|
|
|
|
),
|
|
|
|
TP_fast_assign(WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MAC_ASSIGN(bssid, params->bssid);
|
|
|
|
memset(__entry->ssid, 0, IEEE80211_MAX_SSID_LEN + 1);
|
|
|
|
memcpy(__entry->ssid, params->ssid.ssid,
|
|
|
|
params->ssid.ssid_len);
|
|
|
|
__entry->status = params->status;
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", bssid: " MAC_PR_FMT
|
|
|
|
", ssid: %s, status: %u", WIPHY_PR_ARG, NETDEV_PR_ARG,
|
|
|
|
__entry->bssid, __entry->ssid, __entry->status)
|
|
|
|
);
|
|
|
|
|
2018-10-01 20:29:18 +07:00
|
|
|
TRACE_EVENT(rdev_start_radar_detection,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
struct cfg80211_chan_def *chandef,
|
|
|
|
u32 cac_time_ms),
|
|
|
|
TP_ARGS(wiphy, netdev, chandef, cac_time_ms),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
CHAN_DEF_ENTRY
|
|
|
|
__field(u32, cac_time_ms)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
CHAN_DEF_ASSIGN(chandef);
|
|
|
|
__entry->cac_time_ms = cac_time_ms;
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " CHAN_DEF_PR_FMT
|
|
|
|
", cac_time_ms=%u",
|
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, CHAN_DEF_PR_ARG,
|
|
|
|
__entry->cac_time_ms)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_set_mcast_rate,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
int *mcast_rate),
|
|
|
|
TP_ARGS(wiphy, netdev, mcast_rate),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
__array(int, mcast_rate, NUM_NL80211_BANDS)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
memcpy(__entry->mcast_rate, mcast_rate,
|
|
|
|
sizeof(int) * NUM_NL80211_BANDS);
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", "
|
2019-08-02 18:31:02 +07:00
|
|
|
"mcast_rates [2.4GHz=0x%x, 5.2GHz=0x%x, 6GHz=0x%x, 60GHz=0x%x]",
|
2018-10-01 20:29:18 +07:00
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG,
|
|
|
|
__entry->mcast_rate[NL80211_BAND_2GHZ],
|
|
|
|
__entry->mcast_rate[NL80211_BAND_5GHZ],
|
2019-08-02 18:31:02 +07:00
|
|
|
__entry->mcast_rate[NL80211_BAND_6GHZ],
|
2018-10-01 20:29:18 +07:00
|
|
|
__entry->mcast_rate[NL80211_BAND_60GHZ])
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_set_coalesce,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct cfg80211_coalesce *coalesce),
|
|
|
|
TP_ARGS(wiphy, coalesce),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
__field(int, n_rules)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
__entry->n_rules = coalesce ? coalesce->n_rules : 0;
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", n_rules=%d",
|
|
|
|
WIPHY_PR_ARG, __entry->n_rules)
|
|
|
|
);
|
|
|
|
|
|
|
|
DEFINE_EVENT(wiphy_wdev_evt, rdev_abort_scan,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev),
|
|
|
|
TP_ARGS(wiphy, wdev)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_set_multicast_to_unicast,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
const bool enabled),
|
|
|
|
TP_ARGS(wiphy, netdev, enabled),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
__field(bool, enabled)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
__entry->enabled = enabled;
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", unicast: %s",
|
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG,
|
|
|
|
BOOL_TO_STR(__entry->enabled))
|
|
|
|
);
|
|
|
|
|
|
|
|
DEFINE_EVENT(wiphy_wdev_evt, rdev_get_txq_stats,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev),
|
|
|
|
TP_ARGS(wiphy, wdev)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_get_ftm_responder_stats,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
struct cfg80211_ftm_responder_stats *ftm_stats),
|
|
|
|
|
|
|
|
TP_ARGS(wiphy, netdev, ftm_stats),
|
|
|
|
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
__field(u64, timestamp)
|
|
|
|
__field(u32, success_num)
|
|
|
|
__field(u32, partial_num)
|
|
|
|
__field(u32, failed_num)
|
|
|
|
__field(u32, asap_num)
|
|
|
|
__field(u32, non_asap_num)
|
|
|
|
__field(u64, duration)
|
|
|
|
__field(u32, unknown_triggers)
|
|
|
|
__field(u32, reschedule)
|
|
|
|
__field(u32, out_of_window)
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
__entry->success_num = ftm_stats->success_num;
|
|
|
|
__entry->partial_num = ftm_stats->partial_num;
|
|
|
|
__entry->failed_num = ftm_stats->failed_num;
|
|
|
|
__entry->asap_num = ftm_stats->asap_num;
|
|
|
|
__entry->non_asap_num = ftm_stats->non_asap_num;
|
|
|
|
__entry->duration = ftm_stats->total_duration_ms;
|
|
|
|
__entry->unknown_triggers = ftm_stats->unknown_triggers_num;
|
|
|
|
__entry->reschedule = ftm_stats->reschedule_requests_num;
|
|
|
|
__entry->out_of_window = ftm_stats->out_of_window_triggers_num;
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_printk(WIPHY_PR_FMT "Ftm responder stats: success %u, partial %u, "
|
|
|
|
"failed %u, asap %u, non asap %u, total duration %llu, unknown "
|
|
|
|
"triggers %u, rescheduled %u, out of window %u", WIPHY_PR_ARG,
|
|
|
|
__entry->success_num, __entry->partial_num, __entry->failed_num,
|
|
|
|
__entry->asap_num, __entry->non_asap_num, __entry->duration,
|
|
|
|
__entry->unknown_triggers, __entry->reschedule,
|
|
|
|
__entry->out_of_window)
|
|
|
|
);
|
|
|
|
|
cfg80211: add peer measurement with FTM initiator API
Add a new "peer measurement" API, that can be used to measure
certain things related to a peer. Right now, only implement
FTM (flight time measurement) over it, but the idea is that
it'll be extensible to also support measuring the necessary
things to calculate e.g. angle-of-arrival for WiGig.
The API is structured to have a generic list of peers and
channels to measure with/on, and then for each of those a
set of measurements (again, only FTM right now) to perform.
Results are sent to the requesting socket, including a final
complete message.
Closing the controlling netlink socket will abort a running
measurement.
v3:
- add a bit to report "final" for partial results
- remove list keeping etc. and just unicast out the results
to the requester (big code reduction ...)
- also send complete message unicast, and as a result
remove the multicast group
- separate out struct cfg80211_pmsr_ftm_request_peer
from struct cfg80211_pmsr_request_peer
- document timeout == 0 if no timeout
- disallow setting timeout nl80211 attribute to 0,
must not include attribute for no timeout
- make MAC address randomization optional
- change num bursts exponent default to 0 (1 burst, rather
rather than the old default of 15==don't care)
v4:
- clarify NL80211_ATTR_TIMEOUT documentation
v5:
- remove unnecessary nl80211 multicast/family changes
- remove partial results bit/flag, final is sufficient
- add max_bursts_exponent, max_ftms_per_burst to capability
- rename "frames per burst" -> "FTMs per burst"
v6:
- rename cfg80211_pmsr_free_wdev() to cfg80211_pmsr_wdev_down()
and call it in leave, so the device can't go down with any
pending measurements
v7:
- wording fixes (Lior)
- fix ftm.max_bursts_exponent to allow having the limit of 0 (Lior)
v8:
- copyright statements
- minor coding style fixes
- fix error path leak
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2018-09-10 18:29:12 +07:00
|
|
|
DEFINE_EVENT(wiphy_wdev_cookie_evt, rdev_start_pmsr,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, u64 cookie),
|
|
|
|
TP_ARGS(wiphy, wdev, cookie)
|
|
|
|
);
|
|
|
|
|
|
|
|
DEFINE_EVENT(wiphy_wdev_cookie_evt, rdev_abort_pmsr,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, u64 cookie),
|
|
|
|
TP_ARGS(wiphy, wdev, cookie)
|
|
|
|
);
|
|
|
|
|
2012-08-27 16:49:39 +07:00
|
|
|
/*************************************************************
|
|
|
|
* cfg80211 exported functions traces *
|
|
|
|
*************************************************************/
|
|
|
|
|
|
|
|
TRACE_EVENT(cfg80211_return_bool,
|
|
|
|
TP_PROTO(bool ret),
|
|
|
|
TP_ARGS(ret),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
__field(bool, ret)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->ret = ret;
|
|
|
|
),
|
|
|
|
TP_printk("returned %s", BOOL_TO_STR(__entry->ret))
|
|
|
|
);
|
|
|
|
|
|
|
|
DECLARE_EVENT_CLASS(cfg80211_netdev_mac_evt,
|
|
|
|
TP_PROTO(struct net_device *netdev, const u8 *macaddr),
|
|
|
|
TP_ARGS(netdev, macaddr),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(macaddr)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MAC_ASSIGN(macaddr, macaddr);
|
|
|
|
),
|
|
|
|
TP_printk(NETDEV_PR_FMT ", mac: " MAC_PR_FMT,
|
|
|
|
NETDEV_PR_ARG, MAC_PR_ARG(macaddr))
|
|
|
|
);
|
|
|
|
|
|
|
|
DEFINE_EVENT(cfg80211_netdev_mac_evt, cfg80211_notify_new_peer_candidate,
|
|
|
|
TP_PROTO(struct net_device *netdev, const u8 *macaddr),
|
|
|
|
TP_ARGS(netdev, macaddr)
|
|
|
|
);
|
|
|
|
|
|
|
|
DECLARE_EVENT_CLASS(netdev_evt_only,
|
|
|
|
TP_PROTO(struct net_device *netdev),
|
|
|
|
TP_ARGS(netdev),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
NETDEV_ENTRY
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
),
|
|
|
|
TP_printk(NETDEV_PR_FMT , NETDEV_PR_ARG)
|
|
|
|
);
|
|
|
|
|
|
|
|
DEFINE_EVENT(netdev_evt_only, cfg80211_send_rx_auth,
|
|
|
|
TP_PROTO(struct net_device *netdev),
|
|
|
|
TP_ARGS(netdev)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(cfg80211_send_rx_assoc,
|
|
|
|
TP_PROTO(struct net_device *netdev, struct cfg80211_bss *bss),
|
|
|
|
TP_ARGS(netdev, bss),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(bssid)
|
|
|
|
CHAN_ENTRY
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MAC_ASSIGN(bssid, bss->bssid);
|
|
|
|
CHAN_ASSIGN(bss->channel);
|
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(NETDEV_PR_FMT ", " MAC_PR_FMT ", " CHAN_PR_FMT,
|
2012-08-27 16:49:39 +07:00
|
|
|
NETDEV_PR_ARG, MAC_PR_ARG(bssid), CHAN_PR_ARG)
|
|
|
|
);
|
|
|
|
|
2013-05-16 05:55:00 +07:00
|
|
|
DECLARE_EVENT_CLASS(netdev_frame_event,
|
|
|
|
TP_PROTO(struct net_device *netdev, const u8 *buf, int len),
|
|
|
|
TP_ARGS(netdev, buf, len),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
NETDEV_ENTRY
|
|
|
|
__dynamic_array(u8, frame, len)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
memcpy(__get_dynamic_array(frame), buf, len);
|
|
|
|
),
|
|
|
|
TP_printk(NETDEV_PR_FMT ", ftype:0x%.2x",
|
|
|
|
NETDEV_PR_ARG,
|
|
|
|
le16_to_cpup((__le16 *)__get_dynamic_array(frame)))
|
2012-08-27 16:49:39 +07:00
|
|
|
);
|
|
|
|
|
2013-05-16 05:55:00 +07:00
|
|
|
DEFINE_EVENT(netdev_frame_event, cfg80211_rx_unprot_mlme_mgmt,
|
|
|
|
TP_PROTO(struct net_device *netdev, const u8 *buf, int len),
|
|
|
|
TP_ARGS(netdev, buf, len)
|
2012-08-27 16:49:39 +07:00
|
|
|
);
|
|
|
|
|
2013-05-16 05:55:00 +07:00
|
|
|
DEFINE_EVENT(netdev_frame_event, cfg80211_rx_mlme_mgmt,
|
|
|
|
TP_PROTO(struct net_device *netdev, const u8 *buf, int len),
|
|
|
|
TP_ARGS(netdev, buf, len)
|
2012-08-27 16:49:39 +07:00
|
|
|
);
|
|
|
|
|
2013-05-16 05:55:00 +07:00
|
|
|
TRACE_EVENT(cfg80211_tx_mlme_mgmt,
|
|
|
|
TP_PROTO(struct net_device *netdev, const u8 *buf, int len),
|
|
|
|
TP_ARGS(netdev, buf, len),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
NETDEV_ENTRY
|
|
|
|
__dynamic_array(u8, frame, len)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
memcpy(__get_dynamic_array(frame), buf, len);
|
|
|
|
),
|
|
|
|
TP_printk(NETDEV_PR_FMT ", ftype:0x%.2x",
|
|
|
|
NETDEV_PR_ARG,
|
|
|
|
le16_to_cpup((__le16 *)__get_dynamic_array(frame)))
|
2012-08-27 16:49:39 +07:00
|
|
|
);
|
|
|
|
|
|
|
|
DECLARE_EVENT_CLASS(netdev_mac_evt,
|
|
|
|
TP_PROTO(struct net_device *netdev, const u8 *mac),
|
|
|
|
TP_ARGS(netdev, mac),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(mac)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MAC_ASSIGN(mac, mac)
|
|
|
|
),
|
|
|
|
TP_printk(NETDEV_PR_FMT ", mac: " MAC_PR_FMT,
|
|
|
|
NETDEV_PR_ARG, MAC_PR_ARG(mac))
|
|
|
|
);
|
|
|
|
|
|
|
|
DEFINE_EVENT(netdev_mac_evt, cfg80211_send_auth_timeout,
|
|
|
|
TP_PROTO(struct net_device *netdev, const u8 *mac),
|
|
|
|
TP_ARGS(netdev, mac)
|
|
|
|
);
|
|
|
|
|
|
|
|
DEFINE_EVENT(netdev_mac_evt, cfg80211_send_assoc_timeout,
|
|
|
|
TP_PROTO(struct net_device *netdev, const u8 *mac),
|
|
|
|
TP_ARGS(netdev, mac)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(cfg80211_michael_mic_failure,
|
|
|
|
TP_PROTO(struct net_device *netdev, const u8 *addr,
|
|
|
|
enum nl80211_key_type key_type, int key_id, const u8 *tsc),
|
|
|
|
TP_ARGS(netdev, addr, key_type, key_id, tsc),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(addr)
|
|
|
|
__field(enum nl80211_key_type, key_type)
|
|
|
|
__field(int, key_id)
|
|
|
|
__array(u8, tsc, 6)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MAC_ASSIGN(addr, addr);
|
|
|
|
__entry->key_type = key_type;
|
|
|
|
__entry->key_id = key_id;
|
2014-07-17 19:00:56 +07:00
|
|
|
if (tsc)
|
|
|
|
memcpy(__entry->tsc, tsc, 6);
|
2012-08-27 16:49:39 +07:00
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(NETDEV_PR_FMT ", " MAC_PR_FMT ", key type: %d, key id: %d, tsc: %pm",
|
2012-08-27 16:49:39 +07:00
|
|
|
NETDEV_PR_ARG, MAC_PR_ARG(addr), __entry->key_type,
|
|
|
|
__entry->key_id, __entry->tsc)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(cfg80211_ready_on_channel,
|
|
|
|
TP_PROTO(struct wireless_dev *wdev, u64 cookie,
|
|
|
|
struct ieee80211_channel *chan,
|
2012-11-09 00:31:02 +07:00
|
|
|
unsigned int duration),
|
|
|
|
TP_ARGS(wdev, cookie, chan, duration),
|
2012-08-27 16:49:39 +07:00
|
|
|
TP_STRUCT__entry(
|
|
|
|
WDEV_ENTRY
|
|
|
|
__field(u64, cookie)
|
|
|
|
CHAN_ENTRY
|
|
|
|
__field(unsigned int, duration)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WDEV_ASSIGN;
|
|
|
|
__entry->cookie = cookie;
|
|
|
|
CHAN_ASSIGN(chan);
|
|
|
|
__entry->duration = duration;
|
|
|
|
),
|
2012-11-09 00:31:02 +07:00
|
|
|
TP_printk(WDEV_PR_FMT ", cookie: %llu, " CHAN_PR_FMT ", duration: %u",
|
2012-08-27 16:49:39 +07:00
|
|
|
WDEV_PR_ARG, __entry->cookie, CHAN_PR_ARG,
|
2012-11-09 00:31:02 +07:00
|
|
|
__entry->duration)
|
2012-08-27 16:49:39 +07:00
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(cfg80211_ready_on_channel_expired,
|
|
|
|
TP_PROTO(struct wireless_dev *wdev, u64 cookie,
|
2012-11-09 00:31:02 +07:00
|
|
|
struct ieee80211_channel *chan),
|
|
|
|
TP_ARGS(wdev, cookie, chan),
|
2012-08-27 16:49:39 +07:00
|
|
|
TP_STRUCT__entry(
|
|
|
|
WDEV_ENTRY
|
|
|
|
__field(u64, cookie)
|
|
|
|
CHAN_ENTRY
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WDEV_ASSIGN;
|
|
|
|
__entry->cookie = cookie;
|
|
|
|
CHAN_ASSIGN(chan);
|
|
|
|
),
|
2012-11-09 00:31:02 +07:00
|
|
|
TP_printk(WDEV_PR_FMT ", cookie: %llu, " CHAN_PR_FMT,
|
|
|
|
WDEV_PR_ARG, __entry->cookie, CHAN_PR_ARG)
|
2012-08-27 16:49:39 +07:00
|
|
|
);
|
|
|
|
|
2019-06-13 02:35:09 +07:00
|
|
|
TRACE_EVENT(cfg80211_tx_mgmt_expired,
|
|
|
|
TP_PROTO(struct wireless_dev *wdev, u64 cookie,
|
|
|
|
struct ieee80211_channel *chan),
|
|
|
|
TP_ARGS(wdev, cookie, chan),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WDEV_ENTRY
|
|
|
|
__field(u64, cookie)
|
|
|
|
CHAN_ENTRY
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WDEV_ASSIGN;
|
|
|
|
__entry->cookie = cookie;
|
|
|
|
CHAN_ASSIGN(chan);
|
|
|
|
),
|
|
|
|
TP_printk(WDEV_PR_FMT ", cookie: %llu, " CHAN_PR_FMT,
|
|
|
|
WDEV_PR_ARG, __entry->cookie, CHAN_PR_ARG)
|
|
|
|
);
|
|
|
|
|
2012-08-27 16:49:39 +07:00
|
|
|
TRACE_EVENT(cfg80211_new_sta,
|
|
|
|
TP_PROTO(struct net_device *netdev, const u8 *mac_addr,
|
|
|
|
struct station_info *sinfo),
|
|
|
|
TP_ARGS(netdev, mac_addr, sinfo),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(mac_addr)
|
|
|
|
SINFO_ENTRY
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MAC_ASSIGN(mac_addr, mac_addr);
|
|
|
|
SINFO_ASSIGN;
|
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(NETDEV_PR_FMT ", " MAC_PR_FMT,
|
2012-08-27 16:49:39 +07:00
|
|
|
NETDEV_PR_ARG, MAC_PR_ARG(mac_addr))
|
|
|
|
);
|
|
|
|
|
|
|
|
DEFINE_EVENT(cfg80211_netdev_mac_evt, cfg80211_del_sta,
|
|
|
|
TP_PROTO(struct net_device *netdev, const u8 *macaddr),
|
|
|
|
TP_ARGS(netdev, macaddr)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(cfg80211_rx_mgmt,
|
2017-11-09 18:46:30 +07:00
|
|
|
TP_PROTO(struct wireless_dev *wdev, int freq, int sig_dbm),
|
|
|
|
TP_ARGS(wdev, freq, sig_dbm),
|
2012-08-27 16:49:39 +07:00
|
|
|
TP_STRUCT__entry(
|
|
|
|
WDEV_ENTRY
|
|
|
|
__field(int, freq)
|
2017-11-09 18:46:30 +07:00
|
|
|
__field(int, sig_dbm)
|
2012-08-27 16:49:39 +07:00
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WDEV_ASSIGN;
|
|
|
|
__entry->freq = freq;
|
2017-11-09 18:46:30 +07:00
|
|
|
__entry->sig_dbm = sig_dbm;
|
2012-08-27 16:49:39 +07:00
|
|
|
),
|
2020-05-01 00:25:50 +07:00
|
|
|
TP_printk(WDEV_PR_FMT ", freq: "KHZ_F", sig dbm: %d",
|
|
|
|
WDEV_PR_ARG, PR_KHZ(__entry->freq), __entry->sig_dbm)
|
2012-08-27 16:49:39 +07:00
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(cfg80211_mgmt_tx_status,
|
|
|
|
TP_PROTO(struct wireless_dev *wdev, u64 cookie, bool ack),
|
|
|
|
TP_ARGS(wdev, cookie, ack),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WDEV_ENTRY
|
|
|
|
__field(u64, cookie)
|
|
|
|
__field(bool, ack)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WDEV_ASSIGN;
|
|
|
|
__entry->cookie = cookie;
|
|
|
|
__entry->ack = ack;
|
|
|
|
),
|
|
|
|
TP_printk(WDEV_PR_FMT", cookie: %llu, ack: %s",
|
|
|
|
WDEV_PR_ARG, __entry->cookie, BOOL_TO_STR(__entry->ack))
|
2020-05-08 21:42:00 +07:00
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(cfg80211_control_port_tx_status,
|
|
|
|
TP_PROTO(struct wireless_dev *wdev, u64 cookie, bool ack),
|
|
|
|
TP_ARGS(wdev, cookie, ack),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WDEV_ENTRY
|
|
|
|
__field(u64, cookie)
|
|
|
|
__field(bool, ack)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WDEV_ASSIGN;
|
|
|
|
__entry->cookie = cookie;
|
|
|
|
__entry->ack = ack;
|
|
|
|
),
|
|
|
|
TP_printk(WDEV_PR_FMT", cookie: %llu, ack: %s",
|
|
|
|
WDEV_PR_ARG, __entry->cookie, BOOL_TO_STR(__entry->ack))
|
2012-08-27 16:49:39 +07:00
|
|
|
);
|
|
|
|
|
2018-03-27 00:52:41 +07:00
|
|
|
TRACE_EVENT(cfg80211_rx_control_port,
|
2018-07-04 03:05:48 +07:00
|
|
|
TP_PROTO(struct net_device *netdev, struct sk_buff *skb,
|
|
|
|
bool unencrypted),
|
|
|
|
TP_ARGS(netdev, skb, unencrypted),
|
2018-03-27 00:52:41 +07:00
|
|
|
TP_STRUCT__entry(
|
|
|
|
NETDEV_ENTRY
|
2018-07-04 03:05:48 +07:00
|
|
|
__field(int, len)
|
|
|
|
MAC_ENTRY(from)
|
2018-03-27 00:52:41 +07:00
|
|
|
__field(u16, proto)
|
|
|
|
__field(bool, unencrypted)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
NETDEV_ASSIGN;
|
2018-07-04 03:05:48 +07:00
|
|
|
__entry->len = skb->len;
|
|
|
|
MAC_ASSIGN(from, eth_hdr(skb)->h_source);
|
|
|
|
__entry->proto = be16_to_cpu(skb->protocol);
|
2018-03-27 00:52:41 +07:00
|
|
|
__entry->unencrypted = unencrypted;
|
|
|
|
),
|
2020-02-24 16:19:12 +07:00
|
|
|
TP_printk(NETDEV_PR_FMT ", len=%d, " MAC_PR_FMT ", proto: 0x%x, unencrypted: %s",
|
|
|
|
NETDEV_PR_ARG, __entry->len, MAC_PR_ARG(from),
|
2018-03-27 00:52:41 +07:00
|
|
|
__entry->proto, BOOL_TO_STR(__entry->unencrypted))
|
|
|
|
);
|
|
|
|
|
2012-08-27 16:49:39 +07:00
|
|
|
TRACE_EVENT(cfg80211_cqm_rssi_notify,
|
|
|
|
TP_PROTO(struct net_device *netdev,
|
2017-01-25 18:43:41 +07:00
|
|
|
enum nl80211_cqm_rssi_threshold_event rssi_event,
|
|
|
|
s32 rssi_level),
|
|
|
|
TP_ARGS(netdev, rssi_event, rssi_level),
|
2012-08-27 16:49:39 +07:00
|
|
|
TP_STRUCT__entry(
|
|
|
|
NETDEV_ENTRY
|
|
|
|
__field(enum nl80211_cqm_rssi_threshold_event, rssi_event)
|
2017-01-25 18:43:41 +07:00
|
|
|
__field(s32, rssi_level)
|
2012-08-27 16:49:39 +07:00
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
__entry->rssi_event = rssi_event;
|
2017-01-25 18:43:41 +07:00
|
|
|
__entry->rssi_level = rssi_level;
|
2012-08-27 16:49:39 +07:00
|
|
|
),
|
2017-01-25 18:43:41 +07:00
|
|
|
TP_printk(NETDEV_PR_FMT ", rssi event: %d, level: %d",
|
|
|
|
NETDEV_PR_ARG, __entry->rssi_event, __entry->rssi_level)
|
2012-08-27 16:49:39 +07:00
|
|
|
);
|
|
|
|
|
2012-11-09 03:25:48 +07:00
|
|
|
TRACE_EVENT(cfg80211_reg_can_beacon,
|
2014-02-23 14:13:01 +07:00
|
|
|
TP_PROTO(struct wiphy *wiphy, struct cfg80211_chan_def *chandef,
|
2015-07-08 19:41:44 +07:00
|
|
|
enum nl80211_iftype iftype, bool check_no_ir),
|
|
|
|
TP_ARGS(wiphy, chandef, iftype, check_no_ir),
|
2012-08-27 16:49:39 +07:00
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
2012-11-09 03:25:48 +07:00
|
|
|
CHAN_DEF_ENTRY
|
2014-02-23 14:13:01 +07:00
|
|
|
__field(enum nl80211_iftype, iftype)
|
2015-07-08 19:41:44 +07:00
|
|
|
__field(bool, check_no_ir)
|
2012-08-27 16:49:39 +07:00
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
2012-11-09 03:25:48 +07:00
|
|
|
CHAN_DEF_ASSIGN(chandef);
|
2014-02-23 14:13:01 +07:00
|
|
|
__entry->iftype = iftype;
|
2015-07-08 19:41:44 +07:00
|
|
|
__entry->check_no_ir = check_no_ir;
|
2012-08-27 16:49:39 +07:00
|
|
|
),
|
2015-07-08 19:41:44 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " CHAN_DEF_PR_FMT ", iftype=%d check_no_ir=%s",
|
|
|
|
WIPHY_PR_ARG, CHAN_DEF_PR_ARG, __entry->iftype,
|
|
|
|
BOOL_TO_STR(__entry->check_no_ir))
|
2012-08-27 16:49:39 +07:00
|
|
|
);
|
|
|
|
|
2013-02-09 00:16:19 +07:00
|
|
|
TRACE_EVENT(cfg80211_chandef_dfs_required,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct cfg80211_chan_def *chandef),
|
|
|
|
TP_ARGS(wiphy, chandef),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
CHAN_DEF_ENTRY
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
CHAN_DEF_ASSIGN(chandef);
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " CHAN_DEF_PR_FMT,
|
|
|
|
WIPHY_PR_ARG, CHAN_DEF_PR_ARG)
|
|
|
|
);
|
|
|
|
|
2012-08-27 16:49:39 +07:00
|
|
|
TRACE_EVENT(cfg80211_ch_switch_notify,
|
2012-11-09 03:25:48 +07:00
|
|
|
TP_PROTO(struct net_device *netdev,
|
|
|
|
struct cfg80211_chan_def *chandef),
|
|
|
|
TP_ARGS(netdev, chandef),
|
2012-08-27 16:49:39 +07:00
|
|
|
TP_STRUCT__entry(
|
|
|
|
NETDEV_ENTRY
|
2012-11-09 03:25:48 +07:00
|
|
|
CHAN_DEF_ENTRY
|
2012-08-27 16:49:39 +07:00
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
NETDEV_ASSIGN;
|
2012-11-09 03:25:48 +07:00
|
|
|
CHAN_DEF_ASSIGN(chandef);
|
2012-08-27 16:49:39 +07:00
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(NETDEV_PR_FMT ", " CHAN_DEF_PR_FMT,
|
2012-11-09 03:25:48 +07:00
|
|
|
NETDEV_PR_ARG, CHAN_DEF_PR_ARG)
|
2012-08-27 16:49:39 +07:00
|
|
|
);
|
|
|
|
|
2014-11-07 19:31:35 +07:00
|
|
|
TRACE_EVENT(cfg80211_ch_switch_started_notify,
|
|
|
|
TP_PROTO(struct net_device *netdev,
|
|
|
|
struct cfg80211_chan_def *chandef),
|
|
|
|
TP_ARGS(netdev, chandef),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
NETDEV_ENTRY
|
|
|
|
CHAN_DEF_ENTRY
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
CHAN_DEF_ASSIGN(chandef);
|
|
|
|
),
|
|
|
|
TP_printk(NETDEV_PR_FMT ", " CHAN_DEF_PR_FMT,
|
|
|
|
NETDEV_PR_ARG, CHAN_DEF_PR_ARG)
|
|
|
|
);
|
|
|
|
|
2013-02-09 00:16:19 +07:00
|
|
|
TRACE_EVENT(cfg80211_radar_event,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct cfg80211_chan_def *chandef),
|
|
|
|
TP_ARGS(wiphy, chandef),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
CHAN_DEF_ENTRY
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
CHAN_DEF_ASSIGN(chandef);
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " CHAN_DEF_PR_FMT,
|
|
|
|
WIPHY_PR_ARG, CHAN_DEF_PR_ARG)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(cfg80211_cac_event,
|
|
|
|
TP_PROTO(struct net_device *netdev, enum nl80211_radar_event evt),
|
|
|
|
TP_ARGS(netdev, evt),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
NETDEV_ENTRY
|
|
|
|
__field(enum nl80211_radar_event, evt)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
__entry->evt = evt;
|
|
|
|
),
|
|
|
|
TP_printk(NETDEV_PR_FMT ", event: %d",
|
|
|
|
NETDEV_PR_ARG, __entry->evt)
|
|
|
|
);
|
|
|
|
|
2012-08-27 16:49:39 +07:00
|
|
|
DECLARE_EVENT_CLASS(cfg80211_rx_evt,
|
|
|
|
TP_PROTO(struct net_device *netdev, const u8 *addr),
|
|
|
|
TP_ARGS(netdev, addr),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(addr)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MAC_ASSIGN(addr, addr);
|
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(NETDEV_PR_FMT ", " MAC_PR_FMT, NETDEV_PR_ARG, MAC_PR_ARG(addr))
|
2012-08-27 16:49:39 +07:00
|
|
|
);
|
|
|
|
|
|
|
|
DEFINE_EVENT(cfg80211_rx_evt, cfg80211_rx_spurious_frame,
|
|
|
|
TP_PROTO(struct net_device *netdev, const u8 *addr),
|
|
|
|
TP_ARGS(netdev, addr)
|
|
|
|
);
|
|
|
|
|
|
|
|
DEFINE_EVENT(cfg80211_rx_evt, cfg80211_rx_unexpected_4addr_frame,
|
|
|
|
TP_PROTO(struct net_device *netdev, const u8 *addr),
|
|
|
|
TP_ARGS(netdev, addr)
|
|
|
|
);
|
|
|
|
|
2014-01-29 23:53:43 +07:00
|
|
|
TRACE_EVENT(cfg80211_ibss_joined,
|
|
|
|
TP_PROTO(struct net_device *netdev, const u8 *bssid,
|
|
|
|
struct ieee80211_channel *channel),
|
|
|
|
TP_ARGS(netdev, bssid, channel),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(bssid)
|
|
|
|
CHAN_ENTRY
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MAC_ASSIGN(bssid, bssid);
|
|
|
|
CHAN_ASSIGN(channel);
|
|
|
|
),
|
|
|
|
TP_printk(NETDEV_PR_FMT ", bssid: " MAC_PR_FMT ", " CHAN_PR_FMT,
|
|
|
|
NETDEV_PR_ARG, MAC_PR_ARG(bssid), CHAN_PR_ARG)
|
|
|
|
);
|
|
|
|
|
2012-08-27 16:49:39 +07:00
|
|
|
TRACE_EVENT(cfg80211_probe_status,
|
|
|
|
TP_PROTO(struct net_device *netdev, const u8 *addr, u64 cookie,
|
|
|
|
bool acked),
|
|
|
|
TP_ARGS(netdev, addr, cookie, acked),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(addr)
|
|
|
|
__field(u64, cookie)
|
|
|
|
__field(bool, acked)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MAC_ASSIGN(addr, addr);
|
|
|
|
__entry->cookie = cookie;
|
|
|
|
__entry->acked = acked;
|
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(NETDEV_PR_FMT " addr:" MAC_PR_FMT ", cookie: %llu, acked: %s",
|
2012-08-27 16:49:39 +07:00
|
|
|
NETDEV_PR_ARG, MAC_PR_ARG(addr), __entry->cookie,
|
|
|
|
BOOL_TO_STR(__entry->acked))
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(cfg80211_cqm_pktloss_notify,
|
|
|
|
TP_PROTO(struct net_device *netdev, const u8 *peer, u32 num_packets),
|
|
|
|
TP_ARGS(netdev, peer, num_packets),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(peer)
|
|
|
|
__field(u32, num_packets)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MAC_ASSIGN(peer, peer);
|
|
|
|
__entry->num_packets = num_packets;
|
|
|
|
),
|
|
|
|
TP_printk(NETDEV_PR_FMT ", peer: " MAC_PR_FMT ", num of lost packets: %u",
|
|
|
|
NETDEV_PR_ARG, MAC_PR_ARG(peer), __entry->num_packets)
|
|
|
|
);
|
|
|
|
|
|
|
|
DEFINE_EVENT(cfg80211_netdev_mac_evt, cfg80211_gtk_rekey_notify,
|
|
|
|
TP_PROTO(struct net_device *netdev, const u8 *macaddr),
|
|
|
|
TP_ARGS(netdev, macaddr)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(cfg80211_pmksa_candidate_notify,
|
|
|
|
TP_PROTO(struct net_device *netdev, int index, const u8 *bssid,
|
|
|
|
bool preauth),
|
|
|
|
TP_ARGS(netdev, index, bssid, preauth),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
NETDEV_ENTRY
|
|
|
|
__field(int, index)
|
|
|
|
MAC_ENTRY(bssid)
|
|
|
|
__field(bool, preauth)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
__entry->index = index;
|
|
|
|
MAC_ASSIGN(bssid, bssid);
|
|
|
|
__entry->preauth = preauth;
|
|
|
|
),
|
|
|
|
TP_printk(NETDEV_PR_FMT ", index:%d, bssid: " MAC_PR_FMT ", pre auth: %s",
|
|
|
|
NETDEV_PR_ARG, __entry->index, MAC_PR_ARG(bssid),
|
|
|
|
BOOL_TO_STR(__entry->preauth))
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(cfg80211_report_obss_beacon,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, const u8 *frame, size_t len,
|
|
|
|
int freq, int sig_dbm),
|
|
|
|
TP_ARGS(wiphy, frame, len, freq, sig_dbm),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
__field(int, freq)
|
|
|
|
__field(int, sig_dbm)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
__entry->freq = freq;
|
|
|
|
__entry->sig_dbm = sig_dbm;
|
|
|
|
),
|
2020-05-01 00:25:50 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", freq: "KHZ_F", sig_dbm: %d",
|
|
|
|
WIPHY_PR_ARG, PR_KHZ(__entry->freq), __entry->sig_dbm)
|
2012-08-27 16:49:39 +07:00
|
|
|
);
|
|
|
|
|
2012-11-17 03:49:57 +07:00
|
|
|
TRACE_EVENT(cfg80211_tdls_oper_request,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, const u8 *peer,
|
|
|
|
enum nl80211_tdls_operation oper, u16 reason_code),
|
|
|
|
TP_ARGS(wiphy, netdev, peer, oper, reason_code),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(peer)
|
|
|
|
__field(enum nl80211_tdls_operation, oper)
|
|
|
|
__field(u16, reason_code)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MAC_ASSIGN(peer, peer);
|
|
|
|
__entry->oper = oper;
|
|
|
|
__entry->reason_code = reason_code;
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", peer: " MAC_PR_FMT ", oper: %d, reason_code %u",
|
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer), __entry->oper,
|
|
|
|
__entry->reason_code)
|
|
|
|
);
|
|
|
|
|
2012-08-27 16:49:39 +07:00
|
|
|
TRACE_EVENT(cfg80211_scan_done,
|
2016-07-05 21:10:13 +07:00
|
|
|
TP_PROTO(struct cfg80211_scan_request *request,
|
|
|
|
struct cfg80211_scan_info *info),
|
|
|
|
TP_ARGS(request, info),
|
2012-08-27 16:49:39 +07:00
|
|
|
TP_STRUCT__entry(
|
|
|
|
__field(u32, n_channels)
|
|
|
|
__dynamic_array(u8, ie, request ? request->ie_len : 0)
|
2016-04-12 20:56:15 +07:00
|
|
|
__array(u32, rates, NUM_NL80211_BANDS)
|
2012-08-27 16:49:39 +07:00
|
|
|
__field(u32, wdev_id)
|
|
|
|
MAC_ENTRY(wiphy_mac)
|
|
|
|
__field(bool, no_cck)
|
|
|
|
__field(bool, aborted)
|
2016-07-05 21:10:13 +07:00
|
|
|
__field(u64, scan_start_tsf)
|
|
|
|
MAC_ENTRY(tsf_bssid)
|
2012-08-27 16:49:39 +07:00
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
if (request) {
|
|
|
|
memcpy(__get_dynamic_array(ie), request->ie,
|
|
|
|
request->ie_len);
|
|
|
|
memcpy(__entry->rates, request->rates,
|
2016-04-12 20:56:15 +07:00
|
|
|
NUM_NL80211_BANDS);
|
2012-08-27 16:49:39 +07:00
|
|
|
__entry->wdev_id = request->wdev ?
|
|
|
|
request->wdev->identifier : 0;
|
|
|
|
if (request->wiphy)
|
|
|
|
MAC_ASSIGN(wiphy_mac,
|
|
|
|
request->wiphy->perm_addr);
|
|
|
|
__entry->no_cck = request->no_cck;
|
|
|
|
}
|
2016-07-05 21:10:13 +07:00
|
|
|
if (info) {
|
|
|
|
__entry->aborted = info->aborted;
|
|
|
|
__entry->scan_start_tsf = info->scan_start_tsf;
|
|
|
|
MAC_ASSIGN(tsf_bssid, info->tsf_bssid);
|
|
|
|
}
|
2012-08-27 16:49:39 +07:00
|
|
|
),
|
2016-07-05 21:10:13 +07:00
|
|
|
TP_printk("aborted: %s, scan start (TSF): %llu, tsf_bssid: " MAC_PR_FMT,
|
|
|
|
BOOL_TO_STR(__entry->aborted),
|
|
|
|
(unsigned long long)__entry->scan_start_tsf,
|
|
|
|
MAC_PR_ARG(tsf_bssid))
|
2012-08-27 16:49:39 +07:00
|
|
|
);
|
|
|
|
|
2017-04-28 19:40:28 +07:00
|
|
|
DECLARE_EVENT_CLASS(wiphy_id_evt,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, u64 id),
|
|
|
|
TP_ARGS(wiphy, id),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
__field(u64, id)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
__entry->id = id;
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", id: %llu", WIPHY_PR_ARG, __entry->id)
|
2012-08-27 16:49:39 +07:00
|
|
|
);
|
|
|
|
|
2017-04-28 19:40:28 +07:00
|
|
|
DEFINE_EVENT(wiphy_id_evt, cfg80211_sched_scan_stopped,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, u64 id),
|
|
|
|
TP_ARGS(wiphy, id)
|
|
|
|
);
|
|
|
|
|
|
|
|
DEFINE_EVENT(wiphy_id_evt, cfg80211_sched_scan_results,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, u64 id),
|
|
|
|
TP_ARGS(wiphy, id)
|
2012-08-27 16:49:39 +07:00
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(cfg80211_get_bss,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct ieee80211_channel *channel,
|
|
|
|
const u8 *bssid, const u8 *ssid, size_t ssid_len,
|
2015-02-08 20:52:03 +07:00
|
|
|
enum ieee80211_bss_type bss_type,
|
|
|
|
enum ieee80211_privacy privacy),
|
|
|
|
TP_ARGS(wiphy, channel, bssid, ssid, ssid_len, bss_type, privacy),
|
2012-08-27 16:49:39 +07:00
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
CHAN_ENTRY
|
|
|
|
MAC_ENTRY(bssid)
|
|
|
|
__dynamic_array(u8, ssid, ssid_len)
|
2015-02-08 20:52:03 +07:00
|
|
|
__field(enum ieee80211_bss_type, bss_type)
|
|
|
|
__field(enum ieee80211_privacy, privacy)
|
2012-08-27 16:49:39 +07:00
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
CHAN_ASSIGN(channel);
|
|
|
|
MAC_ASSIGN(bssid, bssid);
|
|
|
|
memcpy(__get_dynamic_array(ssid), ssid, ssid_len);
|
2015-02-08 20:52:03 +07:00
|
|
|
__entry->bss_type = bss_type;
|
|
|
|
__entry->privacy = privacy;
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " CHAN_PR_FMT ", " MAC_PR_FMT
|
|
|
|
", buf: %#.2x, bss_type: %d, privacy: %d",
|
|
|
|
WIPHY_PR_ARG, CHAN_PR_ARG, MAC_PR_ARG(bssid),
|
|
|
|
((u8 *)__get_dynamic_array(ssid))[0], __entry->bss_type,
|
|
|
|
__entry->privacy)
|
2012-08-27 16:49:39 +07:00
|
|
|
);
|
|
|
|
|
2015-10-07 16:32:53 +07:00
|
|
|
TRACE_EVENT(cfg80211_inform_bss_frame,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct cfg80211_inform_bss *data,
|
|
|
|
struct ieee80211_mgmt *mgmt, size_t len),
|
|
|
|
TP_ARGS(wiphy, data, mgmt, len),
|
2012-08-27 16:49:39 +07:00
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
CHAN_ENTRY
|
2013-07-08 21:55:49 +07:00
|
|
|
__field(enum nl80211_bss_scan_width, scan_width)
|
2012-08-27 16:49:39 +07:00
|
|
|
__dynamic_array(u8, mgmt, len)
|
|
|
|
__field(s32, signal)
|
2015-10-07 16:32:53 +07:00
|
|
|
__field(u64, ts_boottime)
|
2016-07-05 21:10:13 +07:00
|
|
|
__field(u64, parent_tsf)
|
|
|
|
MAC_ENTRY(parent_bssid)
|
2012-08-27 16:49:39 +07:00
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
2015-10-07 16:32:53 +07:00
|
|
|
CHAN_ASSIGN(data->chan);
|
|
|
|
__entry->scan_width = data->scan_width;
|
2012-08-27 16:49:39 +07:00
|
|
|
if (mgmt)
|
|
|
|
memcpy(__get_dynamic_array(mgmt), mgmt, len);
|
2015-10-07 16:32:53 +07:00
|
|
|
__entry->signal = data->signal;
|
|
|
|
__entry->ts_boottime = data->boottime_ns;
|
2016-07-05 21:10:13 +07:00
|
|
|
__entry->parent_tsf = data->parent_tsf;
|
|
|
|
MAC_ASSIGN(parent_bssid, data->parent_bssid);
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " CHAN_PR_FMT
|
|
|
|
"(scan_width: %d) signal: %d, tsb:%llu, detect_tsf:%llu, tsf_bssid: "
|
|
|
|
MAC_PR_FMT, WIPHY_PR_ARG, CHAN_PR_ARG, __entry->scan_width,
|
|
|
|
__entry->signal, (unsigned long long)__entry->ts_boottime,
|
|
|
|
(unsigned long long)__entry->parent_tsf,
|
|
|
|
MAC_PR_ARG(parent_bssid))
|
2012-08-27 16:49:39 +07:00
|
|
|
);
|
|
|
|
|
|
|
|
DECLARE_EVENT_CLASS(cfg80211_bss_evt,
|
|
|
|
TP_PROTO(struct cfg80211_bss *pub),
|
|
|
|
TP_ARGS(pub),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
MAC_ENTRY(bssid)
|
|
|
|
CHAN_ENTRY
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
MAC_ASSIGN(bssid, pub->bssid);
|
|
|
|
CHAN_ASSIGN(pub->channel);
|
|
|
|
),
|
2012-11-16 23:22:28 +07:00
|
|
|
TP_printk(MAC_PR_FMT ", " CHAN_PR_FMT, MAC_PR_ARG(bssid), CHAN_PR_ARG)
|
2012-08-27 16:49:39 +07:00
|
|
|
);
|
|
|
|
|
|
|
|
DEFINE_EVENT(cfg80211_bss_evt, cfg80211_return_bss,
|
|
|
|
TP_PROTO(struct cfg80211_bss *pub),
|
|
|
|
TP_ARGS(pub)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(cfg80211_return_uint,
|
|
|
|
TP_PROTO(unsigned int ret),
|
|
|
|
TP_ARGS(ret),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
__field(unsigned int, ret)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->ret = ret;
|
|
|
|
),
|
|
|
|
TP_printk("ret: %d", __entry->ret)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(cfg80211_return_u32,
|
|
|
|
TP_PROTO(u32 ret),
|
|
|
|
TP_ARGS(ret),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
__field(u32, ret)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->ret = ret;
|
|
|
|
),
|
|
|
|
TP_printk("ret: %u", __entry->ret)
|
|
|
|
);
|
|
|
|
|
2013-01-22 18:34:29 +07:00
|
|
|
TRACE_EVENT(cfg80211_report_wowlan_wakeup,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev,
|
|
|
|
struct cfg80211_wowlan_wakeup *wakeup),
|
|
|
|
TP_ARGS(wiphy, wdev, wakeup),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
WDEV_ENTRY
|
2013-04-29 17:09:14 +07:00
|
|
|
__field(bool, non_wireless)
|
2013-01-22 18:34:29 +07:00
|
|
|
__field(bool, disconnect)
|
|
|
|
__field(bool, magic_pkt)
|
|
|
|
__field(bool, gtk_rekey_failure)
|
|
|
|
__field(bool, eap_identity_req)
|
|
|
|
__field(bool, four_way_handshake)
|
|
|
|
__field(bool, rfkill_release)
|
|
|
|
__field(s32, pattern_idx)
|
|
|
|
__field(u32, packet_len)
|
2013-04-29 17:09:14 +07:00
|
|
|
__dynamic_array(u8, packet,
|
|
|
|
wakeup ? wakeup->packet_present_len : 0)
|
2013-01-22 18:34:29 +07:00
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
WDEV_ASSIGN;
|
2013-04-29 17:09:14 +07:00
|
|
|
__entry->non_wireless = !wakeup;
|
|
|
|
__entry->disconnect = wakeup ? wakeup->disconnect : false;
|
|
|
|
__entry->magic_pkt = wakeup ? wakeup->magic_pkt : false;
|
|
|
|
__entry->gtk_rekey_failure = wakeup ? wakeup->gtk_rekey_failure : false;
|
|
|
|
__entry->eap_identity_req = wakeup ? wakeup->eap_identity_req : false;
|
|
|
|
__entry->four_way_handshake = wakeup ? wakeup->four_way_handshake : false;
|
|
|
|
__entry->rfkill_release = wakeup ? wakeup->rfkill_release : false;
|
|
|
|
__entry->pattern_idx = wakeup ? wakeup->pattern_idx : false;
|
|
|
|
__entry->packet_len = wakeup ? wakeup->packet_len : false;
|
|
|
|
if (wakeup && wakeup->packet && wakeup->packet_present_len)
|
2013-01-22 18:34:29 +07:00
|
|
|
memcpy(__get_dynamic_array(packet), wakeup->packet,
|
|
|
|
wakeup->packet_present_len);
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT, WIPHY_PR_ARG, WDEV_PR_ARG)
|
|
|
|
);
|
|
|
|
|
2013-02-27 22:14:27 +07:00
|
|
|
TRACE_EVENT(cfg80211_ft_event,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
struct cfg80211_ft_event_params *ft_event),
|
|
|
|
TP_ARGS(wiphy, netdev, ft_event),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
__dynamic_array(u8, ies, ft_event->ies_len)
|
|
|
|
MAC_ENTRY(target_ap)
|
|
|
|
__dynamic_array(u8, ric_ies, ft_event->ric_ies_len)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
if (ft_event->ies)
|
|
|
|
memcpy(__get_dynamic_array(ies), ft_event->ies,
|
|
|
|
ft_event->ies_len);
|
|
|
|
MAC_ASSIGN(target_ap, ft_event->target_ap);
|
|
|
|
if (ft_event->ric_ies)
|
|
|
|
memcpy(__get_dynamic_array(ric_ies), ft_event->ric_ies,
|
|
|
|
ft_event->ric_ies_len);
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", target_ap: " MAC_PR_FMT,
|
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(target_ap))
|
|
|
|
);
|
|
|
|
|
2014-04-09 20:11:01 +07:00
|
|
|
TRACE_EVENT(cfg80211_stop_iface,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev),
|
|
|
|
TP_ARGS(wiphy, wdev),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
WDEV_ENTRY
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
WDEV_ASSIGN;
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT,
|
|
|
|
WIPHY_PR_ARG, WDEV_PR_ARG)
|
|
|
|
);
|
cfg80211: add peer measurement with FTM initiator API
Add a new "peer measurement" API, that can be used to measure
certain things related to a peer. Right now, only implement
FTM (flight time measurement) over it, but the idea is that
it'll be extensible to also support measuring the necessary
things to calculate e.g. angle-of-arrival for WiGig.
The API is structured to have a generic list of peers and
channels to measure with/on, and then for each of those a
set of measurements (again, only FTM right now) to perform.
Results are sent to the requesting socket, including a final
complete message.
Closing the controlling netlink socket will abort a running
measurement.
v3:
- add a bit to report "final" for partial results
- remove list keeping etc. and just unicast out the results
to the requester (big code reduction ...)
- also send complete message unicast, and as a result
remove the multicast group
- separate out struct cfg80211_pmsr_ftm_request_peer
from struct cfg80211_pmsr_request_peer
- document timeout == 0 if no timeout
- disallow setting timeout nl80211 attribute to 0,
must not include attribute for no timeout
- make MAC address randomization optional
- change num bursts exponent default to 0 (1 burst, rather
rather than the old default of 15==don't care)
v4:
- clarify NL80211_ATTR_TIMEOUT documentation
v5:
- remove unnecessary nl80211 multicast/family changes
- remove partial results bit/flag, final is sufficient
- add max_bursts_exponent, max_ftms_per_burst to capability
- rename "frames per burst" -> "FTMs per burst"
v6:
- rename cfg80211_pmsr_free_wdev() to cfg80211_pmsr_wdev_down()
and call it in leave, so the device can't go down with any
pending measurements
v7:
- wording fixes (Lior)
- fix ftm.max_bursts_exponent to allow having the limit of 0 (Lior)
v8:
- copyright statements
- minor coding style fixes
- fix error path leak
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2018-09-10 18:29:12 +07:00
|
|
|
|
|
|
|
TRACE_EVENT(cfg80211_pmsr_report,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev,
|
|
|
|
u64 cookie, const u8 *addr),
|
|
|
|
TP_ARGS(wiphy, wdev, cookie, addr),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
WDEV_ENTRY
|
|
|
|
__field(u64, cookie)
|
|
|
|
MAC_ENTRY(addr)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
WDEV_ASSIGN;
|
|
|
|
__entry->cookie = cookie;
|
|
|
|
MAC_ASSIGN(addr, addr);
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", cookie:%lld, " MAC_PR_FMT,
|
|
|
|
WIPHY_PR_ARG, WDEV_PR_ARG,
|
|
|
|
(unsigned long long)__entry->cookie,
|
|
|
|
MAC_PR_ARG(addr))
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(cfg80211_pmsr_complete,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, u64 cookie),
|
|
|
|
TP_ARGS(wiphy, wdev, cookie),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
WDEV_ENTRY
|
|
|
|
__field(u64, cookie)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
WDEV_ASSIGN;
|
|
|
|
__entry->cookie = cookie;
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", cookie:%lld",
|
|
|
|
WIPHY_PR_ARG, WDEV_PR_ARG,
|
|
|
|
(unsigned long long)__entry->cookie)
|
|
|
|
);
|
2019-02-20 17:48:07 +07:00
|
|
|
|
|
|
|
TRACE_EVENT(rdev_update_owe_info,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
struct cfg80211_update_owe_info *owe_info),
|
|
|
|
TP_ARGS(wiphy, netdev, owe_info),
|
|
|
|
TP_STRUCT__entry(WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(peer)
|
|
|
|
__field(u16, status)
|
|
|
|
__dynamic_array(u8, ie, owe_info->ie_len)),
|
|
|
|
TP_fast_assign(WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MAC_ASSIGN(peer, owe_info->peer);
|
|
|
|
__entry->status = owe_info->status;
|
|
|
|
memcpy(__get_dynamic_array(ie),
|
|
|
|
owe_info->ie, owe_info->ie_len);),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", peer: " MAC_PR_FMT
|
|
|
|
" status %d", WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer),
|
|
|
|
__entry->status)
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(cfg80211_update_owe_info_event,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
struct cfg80211_update_owe_info *owe_info),
|
|
|
|
TP_ARGS(wiphy, netdev, owe_info),
|
|
|
|
TP_STRUCT__entry(WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(peer)
|
|
|
|
__dynamic_array(u8, ie, owe_info->ie_len)),
|
|
|
|
TP_fast_assign(WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MAC_ASSIGN(peer, owe_info->peer);
|
|
|
|
memcpy(__get_dynamic_array(ie), owe_info->ie,
|
|
|
|
owe_info->ie_len);),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", peer: " MAC_PR_FMT,
|
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer))
|
|
|
|
);
|
|
|
|
|
2019-04-12 03:47:24 +07:00
|
|
|
TRACE_EVENT(rdev_probe_mesh_link,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
|
|
|
const u8 *dest, const u8 *buf, size_t len),
|
|
|
|
TP_ARGS(wiphy, netdev, dest, buf, len),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(dest)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MAC_ASSIGN(dest, dest);
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " MAC_PR_FMT,
|
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(dest))
|
|
|
|
);
|
|
|
|
|
2020-01-20 14:51:22 +07:00
|
|
|
TRACE_EVENT(rdev_set_tid_config,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
2020-02-24 17:34:25 +07:00
|
|
|
struct cfg80211_tid_config *tid_conf),
|
2020-01-20 14:51:22 +07:00
|
|
|
TP_ARGS(wiphy, netdev, tid_conf),
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(peer)
|
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MAC_ASSIGN(peer, tid_conf->peer);
|
|
|
|
),
|
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", peer: " MAC_PR_FMT,
|
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer))
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_EVENT(rdev_reset_tid_config,
|
|
|
|
TP_PROTO(struct wiphy *wiphy, struct net_device *netdev,
|
2020-02-24 17:34:25 +07:00
|
|
|
const u8 *peer, u8 tids),
|
|
|
|
TP_ARGS(wiphy, netdev, peer, tids),
|
2020-01-20 14:51:22 +07:00
|
|
|
TP_STRUCT__entry(
|
|
|
|
WIPHY_ENTRY
|
|
|
|
NETDEV_ENTRY
|
|
|
|
MAC_ENTRY(peer)
|
2020-02-24 17:34:25 +07:00
|
|
|
__field(u8, tids)
|
2020-01-20 14:51:22 +07:00
|
|
|
),
|
|
|
|
TP_fast_assign(
|
|
|
|
WIPHY_ASSIGN;
|
|
|
|
NETDEV_ASSIGN;
|
|
|
|
MAC_ASSIGN(peer, peer);
|
2020-02-24 17:34:25 +07:00
|
|
|
__entry->tids = tids;
|
2020-01-20 14:51:22 +07:00
|
|
|
),
|
2020-02-24 17:34:25 +07:00
|
|
|
TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", peer: " MAC_PR_FMT ", tids: 0x%x",
|
|
|
|
WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer), __entry->tids)
|
2020-01-20 14:51:22 +07:00
|
|
|
);
|
2012-07-31 22:48:27 +07:00
|
|
|
#endif /* !__RDEV_OPS_TRACE || TRACE_HEADER_MULTI_READ */
|
|
|
|
|
|
|
|
#undef TRACE_INCLUDE_PATH
|
|
|
|
#define TRACE_INCLUDE_PATH .
|
|
|
|
#undef TRACE_INCLUDE_FILE
|
|
|
|
#define TRACE_INCLUDE_FILE trace
|
|
|
|
#include <trace/define_trace.h>
|