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
کامیت شده توسط snandini
والد 156a7ecfc0
کامیت b6835a9413
2فایلهای تغییر یافته به همراه15 افزوده شده و 0 حذف شده

مشاهده پرونده

@@ -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;