瀏覽代碼

qcacmn: Create more reference count dbg id for OS IF layer

At present more than hundred places to get/put reference
with WLAN_OSIF_ID dbg ID. To help debug reference count
issue, split OS_IF to more sub ids based on functionality.
It will help narrow down to small area if ref count leak
issue happens.

Change-Id: Icca465cbe91a55b4abe0d74bb3de131615bbc6bb
CRs-Fixed: 2802974
Liangwei Dong 4 年之前
父節點
當前提交
ab7df35e80
共有 1 個文件被更改,包括 31 次插入1 次删除
  1. 31 1
      umac/cmn_services/obj_mgr/inc/wlan_objmgr_cmn.h

+ 31 - 1
umac/cmn_services/obj_mgr/inc/wlan_objmgr_cmn.h

@@ -270,6 +270,15 @@ typedef void (*wlan_objmgr_peer_status_handler)(
  * @WLAN_IOT_SIM_ID:            IOT Simulation feature
  * @WLAN_MLME_CM_ID             Connection Manager reference ID
  * @WLAN_IF_MGR_ID:             Interface manager reference ID
+ * @WLAN_OSIF_SCAN_ID:          SCAN operations in OS IF
+ * @WLAN_OSIF_MGMT_ID:          MGMT frame operations in OS IF
+ * @WLAN_OSIF_STATS_ID:         STATS request operations in OS IF
+ * @WLAN_OSIF_NAN_ID:           NAN operations in OS IF
+ * @WLAN_OSIF_P2P_ID:           P2P operations in OS IF
+ * @WLAN_OSIF_OCB_ID:           OCB operations in OS IF
+ * @WLAN_OSIF_SPECTRAL_ID:      spectal operations in OS IF
+ * @WLAN_OSIF_POWER_ID:         power operations in OS IF
+ * @WLAN_OSIF_TDLS_ID:          TDLS operations in OS IF
  * @WLAN_REF_ID_MAX:            Max id used to generate ref count tracking array
  */
  /* New value added to the enum must also be reflected in function
@@ -355,6 +364,17 @@ typedef enum {
 	WLAN_IOT_SIM_ID       = 76,
 	WLAN_MLME_CM_ID       = 77,
 	WLAN_IF_MGR_ID        = 78,
+	/* Create WLAN_OSIF sub id based on functionality */
+	WLAN_OSIF_SCAN_ID     = 79,
+	WLAN_OSIF_MGMT_ID     = 80,
+	WLAN_OSIF_STATS_ID    = 81,
+	WLAN_OSIF_NAN_ID      = 82,
+	WLAN_OSIF_P2P_ID      = 83,
+	WLAN_OSIF_OCB_ID      = 84,
+	WLAN_OSIF_SPECTRAL_ID = 85,
+	WLAN_OSIF_POWER_ID    = 86,
+	WLAN_OSIF_TDLS_ID     = 87,
+
 	WLAN_REF_ID_MAX,
 } wlan_objmgr_ref_dbgid;
 
@@ -446,7 +466,17 @@ static inline const char *string_from_dbgid(wlan_objmgr_ref_dbgid id)
 					"WLAN_DCS_ID",
 					"WLAN_IOT_SIM_ID",
 					"WLAN_MLME_CM_ID",
-					"WLAN_IF_MGR_ID"};
+					"WLAN_IF_MGR_ID",
+					"WLAN_OSIF_SCAN_ID",
+					"WLAN_OSIF_MGMT_ID",
+					"WLAN_OSIF_STATS_ID",
+					"WLAN_OSIF_NAN_ID",
+					"WLAN_OSIF_P2P_ID",
+					"WLAN_OSIF_OCB_ID",
+					"WLAN_OSIF_SPECTRAL_ID",
+					"WLAN_OSIF_POWER_ID",
+					"WLAN_OSIF_TDLS_ID",
+					};
 
 	if (id >= WLAN_REF_ID_MAX)
 		return "Unknown";