qcacld-3.0: Enable QDF lock stats feature in debug build

Enable QDF lock stats debug feature in defconfig builds to detect
spin lock abuse in driver and fix it.

Change-Id: I264120d1ca722bac871173f2268737a943c2f5e0
CRs-Fixed: 2311639
This commit is contained in:
Rajeev Kumar
2018-09-07 17:29:28 -07:00
committed by nshrivas
parent 713c020c36
commit 4a8d264d94
2 changed files with 9 additions and 0 deletions

8
Kbuild
View File

@@ -2347,6 +2347,14 @@ ifdef CONFIG_SIR_SAP_MAX_NUM_PEERS
ccflags-y += -DSIR_SAP_MAX_NUM_PEERS=$(CONFIG_SIR_SAP_MAX_NUM_PEERS) ccflags-y += -DSIR_SAP_MAX_NUM_PEERS=$(CONFIG_SIR_SAP_MAX_NUM_PEERS)
endif endif
ifdef CONFIG_LOCK_STATS_ON
ccflags-y += -DQDF_LOCK_STATS=1
ccflags-y += -DQDF_LOCK_STATS_DESTROY_PRINT=0
ccflags-y += -DQDF_LOCK_STATS_BUG_ON=1
ccflags-y += -DQDF_LOCK_STATS_LIST=1
ccflags-y += -DQDF_LOCK_STATS_LIST_SIZE=256
endif
KBUILD_CPPFLAGS += $(cppflags-y) KBUILD_CPPFLAGS += $(cppflags-y)
# Currently, for versions of gcc which support it, the kernel Makefile # Currently, for versions of gcc which support it, the kernel Makefile

View File

@@ -232,6 +232,7 @@ ifeq ($(CONFIG_SLUB_DEBUG), y)
# Enable Obj Mgr Degug services if slub build # Enable Obj Mgr Degug services if slub build
CONFIG_WLAN_OBJMGR_DEBUG:= y CONFIG_WLAN_OBJMGR_DEBUG:= y
CONFIG_MPC_UT_FRAMEWORK := y CONFIG_MPC_UT_FRAMEWORK := y
CONFIG_LOCK_STATS_ON:= y
endif endif
ifeq (y,$(findstring y,$(CONFIG_QCA_WIFI_SDIO) $(CONFIG_HIF_USB))) ifeq (y,$(findstring y,$(CONFIG_QCA_WIFI_SDIO) $(CONFIG_HIF_USB)))