Explorar el Código

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
Yun Park hace 7 años
padre
commit
4625568612
Se han modificado 3 ficheros con 523 adiciones y 224 borrados
  1. 39 0
      core/hdd/inc/wlan_hdd_ipa.h
  2. 4 1
      core/hdd/src/wlan_hdd_hostapd.c
  3. 480 223
      core/hdd/src/wlan_hdd_ipa.c

+ 39 - 0
core/hdd/inc/wlan_hdd_ipa.h

@@ -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__ */

+ 4 - 1
core/hdd/src/wlan_hdd_hostapd.c

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

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 480 - 223
core/hdd/src/wlan_hdd_ipa.c


Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio