From 93abc2cb79430d70ab8e08aa1cb07dd1a6721d91 Mon Sep 17 00:00:00 2001 From: Dustin Brown Date: Mon, 22 Oct 2018 13:56:01 -0700 Subject: [PATCH] qcacld-3.0: Enable excessive logging detection Excessive logging detection was recently added via If83c6dfccb9d191b02a3a7166b065c0a0704f969. While we would like to enable this feature with a maximum number of logs per second of 100, there are still a few outstanding problem areas, like dumping stats via IOCTL. Instead enable the feature with a max of 500 to catch egregious regressions, and plan to decrease this to 100 or less once the problem areas are addressed. Change-Id: I5b880c2354ec4828e1773eeb43de43a4649d4803 CRs-Fixed: 2340011 --- Kbuild | 4 ++++ configs/default_defconfig | 1 + 2 files changed, 5 insertions(+) diff --git a/Kbuild b/Kbuild index 72b16ff6494d..3f56f2dd787b 100644 --- a/Kbuild +++ b/Kbuild @@ -2408,6 +2408,10 @@ cppflags-$(CONFIG_DISABLE_CHANNEL_LIST) += -DDISABLE_CHANNEL_LIST #Flag to enable Dynamic Voltage WDCVS (Config Voltage Mode) cppflags-$(CONFIG_WLAN_DYNAMIC_CVM) += -DFEATURE_WLAN_DYNAMIC_CVM +ifdef CONFIG_MAX_LOGS_PER_SEC +ccflags-y += -DWLAN_MAX_LOGS_PER_SEC=$(CONFIG_MAX_LOGS_PER_SEC) +endif + ifdef CONFIG_SCHED_HISTORY_SIZE ccflags-y += -DWLAN_SCHED_HISTORY_SIZE=$(CONFIG_SCHED_HISTORY_SIZE) endif diff --git a/configs/default_defconfig b/configs/default_defconfig index 342f9a5446d9..68ce747df992 100644 --- a/configs/default_defconfig +++ b/configs/default_defconfig @@ -646,6 +646,7 @@ ifeq ($(CONFIG_SLUB_DEBUG_ON), y) CONFIG_DSC_DEBUG := y CONFIG_FEATURE_UNIT_TEST_SUSPEND := y CONFIG_LEAK_DETECTION := y + CONFIG_MAX_LOGS_PER_SEC := 500 CONFIG_SCHED_HISTORY_SIZE := 256 CONFIG_UNIT_TEST := y endif