iwlwifi: support tracing wide commands
Current iwlwifi_trace_dev_rx prints only the cmd without the group, which might be misleading. Change it to print the wide id. While at it add the DATA_PATH group and sub commands to the trace of the command names, sine it is missing due to patches submitted in parallel. Signed-off-by: Sara Sharon <sara.sharon@intel.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
This commit is contained in:

committed by
Emmanuel Grumbach

parent
50b0213fdb
commit
e0d8fdecf3
@@ -73,12 +73,12 @@ TRACE_EVENT(iwlwifi_dev_rx,
|
|||||||
TP_ARGS(dev, trans, pkt, len),
|
TP_ARGS(dev, trans, pkt, len),
|
||||||
TP_STRUCT__entry(
|
TP_STRUCT__entry(
|
||||||
DEV_ENTRY
|
DEV_ENTRY
|
||||||
__field(u8, cmd)
|
__field(u16, cmd)
|
||||||
__dynamic_array(u8, rxbuf, iwl_rx_trace_len(trans, pkt, len))
|
__dynamic_array(u8, rxbuf, iwl_rx_trace_len(trans, pkt, len))
|
||||||
),
|
),
|
||||||
TP_fast_assign(
|
TP_fast_assign(
|
||||||
DEV_ASSIGN;
|
DEV_ASSIGN;
|
||||||
__entry->cmd = pkt->hdr.cmd;
|
__entry->cmd = WIDE_ID(pkt->hdr.group_id, pkt->hdr.cmd);
|
||||||
memcpy(__get_dynamic_array(rxbuf), pkt,
|
memcpy(__get_dynamic_array(rxbuf), pkt,
|
||||||
iwl_rx_trace_len(trans, pkt, len));
|
iwl_rx_trace_len(trans, pkt, len));
|
||||||
),
|
),
|
||||||
|
@@ -395,6 +395,13 @@ static const struct iwl_hcmd_names iwl_mvm_phy_names[] = {
|
|||||||
HCMD_NAME(DTS_MEASUREMENT_NOTIF_WIDE),
|
HCMD_NAME(DTS_MEASUREMENT_NOTIF_WIDE),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* Please keep this array *SORTED* by hex value.
|
||||||
|
* Access is done through binary search
|
||||||
|
*/
|
||||||
|
static const struct iwl_hcmd_names iwl_mvm_data_path_names[] = {
|
||||||
|
HCMD_NAME(UPDATE_MU_GROUPS_CMD),
|
||||||
|
};
|
||||||
|
|
||||||
/* Please keep this array *SORTED* by hex value.
|
/* Please keep this array *SORTED* by hex value.
|
||||||
* Access is done through binary search
|
* Access is done through binary search
|
||||||
*/
|
*/
|
||||||
@@ -406,6 +413,7 @@ static const struct iwl_hcmd_arr iwl_mvm_groups[] = {
|
|||||||
[LEGACY_GROUP] = HCMD_ARR(iwl_mvm_legacy_names),
|
[LEGACY_GROUP] = HCMD_ARR(iwl_mvm_legacy_names),
|
||||||
[LONG_GROUP] = HCMD_ARR(iwl_mvm_legacy_names),
|
[LONG_GROUP] = HCMD_ARR(iwl_mvm_legacy_names),
|
||||||
[PHY_OPS_GROUP] = HCMD_ARR(iwl_mvm_phy_names),
|
[PHY_OPS_GROUP] = HCMD_ARR(iwl_mvm_phy_names),
|
||||||
|
[DATA_PATH_GROUP] = HCMD_ARR(iwl_mvm_data_path_names),
|
||||||
[PROT_OFFLOAD_GROUP] = HCMD_ARR(iwl_mvm_prot_offload_names),
|
[PROT_OFFLOAD_GROUP] = HCMD_ARR(iwl_mvm_prot_offload_names),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user