qcacld-3.0: Rework HDD IPA stats

Rework WLAN IPA uC stats:
-IPA resource info
-IPA session info
-HDD IPA TX/RX stats
-WLAN FW WDI stats
-IPA WDI stats
Update HDD IPA private data dump
Remove deprecated stats in qcacld-3.0

Change-Id: I8f5170116156b48530ebb3f04f0a9f377972860c
CRs-Fixed: 2124144
This commit is contained in:
Yun Park 2017-10-09 15:56:34 -07:00 • committed by snandini
commit 4625568612
3 changed files with 533 additions and 274 deletions

View file

@ -124,7 +124,25 @@ void hdd_ipa_dump_info(struct hdd_context *hdd_ctx);
QDF_STATUS hdd_ipa_uc_ol_init(struct hdd_context *hdd_ctx);
void hdd_ipa_set_tx_flow_info(void);
int hdd_ipa_uc_ol_deinit(struct hdd_context *hdd_ctx);
/**
* hdd_ipa_uc_stat() - Print IPA uC stats
* @adapter: network adapter
*
* Return: None
*/
void hdd_ipa_uc_stat(struct hdd_adapter *adapter);
/**
* hdd_ipa_uc_info() - Print IPA uC resource and session information
* @adapter: network adapter
*
* Return: None
*/
void hdd_ipa_uc_info(struct hdd_context *hdd_ctx);
#else
static inline QDF_STATUS hdd_ipa_init(struct hdd_context *hdd_ctx)
{
return QDF_STATUS_SUCCESS;
@ -277,5 +295,26 @@ static inline int hdd_ipa_uc_ol_deinit(struct hdd_context *hdd_ctx)
{
return 0;
}
/**
* hdd_ipa_uc_stat() - Print IPA uC stats
* @adapter: network adapter
*
* Return: None
*/
static inline void hdd_ipa_uc_stat(struct hdd_adapter *adapter)
{
}
/**
* hdd_ipa_uc_info() - Print IPA uC resource and session information
* @adapter: network adapter
*
* Return: None
*/
static inline void hdd_ipa_uc_info(struct hdd_context *hdd_ctx)
{
}
#endif /* IPA_OFFLOAD */
#endif /* #ifndef HDD_IPA_H__ */

View file

@ -3695,7 +3695,10 @@ static __iw_softap_setparam(struct net_device *dev,
/* If input value is non-zero get stats */
switch (set_value) {
case 1:
hdd_ipa_uc_stat_request(adapter, set_value);
hdd_ipa_uc_stat(adapter);
break;
case 2:
hdd_ipa_uc_info(hdd_ctx);
break;
case 3:
hdd_ipa_uc_rt_debug_host_dump(hdd_ctx);

File diff suppressed because it is too large Load diff