qcacld-3.0: Add makefile flag for ObjMgr Debug Enhancements

Add new CONFIG_WLAN_OBJMGR_DEBUG flag in qcacld Kbuild for ObjMgr
Debug enhancements and use the flag to enable the existing
WLAN_OBJMGR_DEBUG CFlag.

Change-Id: I295c9b6822ab0c1396368ecc719b2ba1c8c834dd
CRs-Fixed: 2184785
This commit is contained in:
Vignesh Viswanathan
2018-02-06 11:30:48 +05:30
committed by nshrivas
parent f3d5d7f5f1
commit 45fc4b0a5e
2 changed files with 14 additions and 0 deletions

10
Kbuild
View File

@@ -221,6 +221,10 @@ endif
# Flag to enable MCC to SCC switch feature # Flag to enable MCC to SCC switch feature
CONFIG_MCC_TO_SCC_SWITCH := y CONFIG_MCC_TO_SCC_SWITCH := y
ifeq ($(CONFIG_SLUB_DEBUG), y)
# Enable Obj Mgr Degug services if slub build
CONFIG_WLAN_OBJMGR_DEBUG:= y
endif
endif endif
# As per target team, build is done as follows: # As per target team, build is done as follows:
@@ -999,6 +1003,10 @@ UMAC_OBJMGR_OBJS := $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_global_obj.o \
$(UMAC_OBJMGR_DIR)/src/wlan_objmgr_psoc_obj.o \ $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_psoc_obj.o \
$(UMAC_OBJMGR_DIR)/src/wlan_objmgr_vdev_obj.o $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_vdev_obj.o
ifeq ($(CONFIG_WLAN_OBJMGR_DEBUG), y)
UMAC_OBJMGR_OBJS += $(UMAC_OBJMGR_DIR)/src/wlan_objmgr_debug.o
endif
########### UMAC MGMT TXRX ########## ########### UMAC MGMT TXRX ##########
UMAC_MGMT_TXRX_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/mgmt_txrx UMAC_MGMT_TXRX_DIR := $(WLAN_COMMON_ROOT)/umac/cmn_services/mgmt_txrx
@@ -1993,7 +2001,9 @@ CDEFINES += -DWLAN_POWER_DEBUGFS
endif endif
# Enable object manager reference count debug infrastructure # Enable object manager reference count debug infrastructure
ifeq ($(CONFIG_WLAN_OBJMGR_DEBUG), y)
CDEFINES += -DWLAN_OBJMGR_DEBUG CDEFINES += -DWLAN_OBJMGR_DEBUG
endif
ifeq ($(CONFIG_WLAN_FEATURE_SAE),y) ifeq ($(CONFIG_WLAN_FEATURE_SAE),y)
CDEFINES += -DWLAN_FEATURE_SAE CDEFINES += -DWLAN_FEATURE_SAE

View File

@@ -147,4 +147,8 @@ config WLAN_FEATURE_FILS
config NAN_CONVERGENCE config NAN_CONVERGENCE
bool "Enable NAN_CONVERGENCE feature" bool "Enable NAN_CONVERGENCE feature"
default n default n
config WLAN_OBJMGR_DEBUG
bool "Enable WLAN Obj Mgr Debug services"
default n
endif # QCA_CLD_WLAN endif # QCA_CLD_WLAN