qcacmn: Add support to dump SWLM stats

Add the support to print the software
latency manager statistics.

Change-Id: I7b6f77eefc6f4f800996dc868d41e7e0f7dd3331
CRs-Fixed: 2769020
This commit is contained in:
Rakesh Pillai
2020-08-25 07:23:09 -07:00
committed by snandini
parent 156a7ecfc0
commit b6835a9413
2 changed files with 15 additions and 0 deletions

View File

@@ -84,6 +84,7 @@
#define CDP_CREDIT_STATS 24
#define CDP_DISCONNECT_STATS 25
#define CDP_DP_RX_FISA_STATS 26
#define CDP_DP_SWLM_STATS 27
#define WME_AC_TO_TID(_ac) ( \
((_ac) == WME_AC_VO) ? 6 : \

View File

@@ -77,6 +77,9 @@ cdp_dump_flow_pool_info(struct cdp_soc_t *soc)
#include <pktlog_ac.h>
#endif
#endif
#ifdef WLAN_DP_FEATURE_SW_LATENCY_MGR
#include <dp_swlm.h>
#endif
#ifdef WLAN_FEATURE_STATS_EXT
#define INIT_RX_HW_STATS_LOCK(_soc) \
@@ -5030,6 +5033,13 @@ static void dp_rx_dump_fisa_table(struct dp_soc *soc)
}
#endif /* !WLAN_SUPPORT_RX_FISA */
#ifndef WLAN_DP_FEATURE_SW_LATENCY_MGR
static inline QDF_STATUS dp_print_swlm_stats(struct dp_soc *soc)
{
return QDF_STATUS_SUCCESS;
}
#endif /* !WLAN_DP_FEATURE_SW_LATENCY_MGR */
/*
* dp_soc_attach_target_wifi3() - SOC initialization in the target
* @cdp_soc: Opaque Datapath SOC handle
@@ -9522,6 +9532,10 @@ static QDF_STATUS dp_txrx_dump_stats(struct cdp_soc_t *psoc, uint16_t value,
dp_rx_dump_fisa_stats(soc);
break;
case CDP_DP_SWLM_STATS:
dp_print_swlm_stats(soc);
break;
default:
status = QDF_STATUS_E_INVAL;
break;