Skip to contentSkip to conversation

locking: Move CONFIG_LOCK_EVENT_COUNTS into Kernel hacking section

PATCH In review Davidlohr Bueso 3 participants 4 messages Mar 30, 2021 – Aug 12, 2021 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 locking: Move CONFIG_LOCK_EVENT_COUNTS into Kernel hacking section

It's a lot more intuitive to have it in the locking section of the kernel hacking part rather than under "General architecture-dependent options".

---
 arch/Kconfig      | 9 ---------
 lib/Kconfig.debug | 9 +++++++++
 2 files changed, 9 insertions(+), 9 deletions(-)
arch/Kconfig +0 -9
index ecfd3520b676..d6f9aeaaf9f2 100644
@@ -1113,15 +1113,6 @@ config HAVE_ARCH_PREL32_RELOCATIONS
 config ARCH_USE_MEMREMAP_PROT
 	bool
 
-config LOCK_EVENT_COUNTS
-	bool "Locking event counts collection"
-	depends on DEBUG_FS
-	help
-	  Enable light-weight counting of various locking related events
-	  in the system with minimal performance impact. This reduces
-	  the chance of application behavior change because of timing
-	  differences. The counts are reported via debugfs.
-
 # Select if the architecture has support for applying RELR relocations.
 config ARCH_HAS_RELR
 	bool
lib/Kconfig.debug +9 -0
index 2779c29d9981..76639ff5998c 100644
@@ -1401,6 +1401,15 @@ config DEBUG_LOCKING_API_SELFTESTS
 	  The following locking APIs are covered: spinlocks, rwlocks,
 	  mutexes and rwsems.
 
+config LOCK_EVENT_COUNTS
+	bool "Locking event counts collection"
+	depends on DEBUG_FS
+	help
+	  Enable light-weight counting of various locking related events
+	  in the system with minimal performance impact. This reduces
+	  the chance of application behavior change because of timing
+	  differences. The counts are reported via debugfs.
+
 config LOCK_TORTURE_TEST
 	tristate "torture tests for locking"
 	depends on DEBUG_KERNEL
Signature · 1 line
2.26.2
Acked-by on v1 1/1
#1 lore raw
Quoted 39 lines · Davidlohr Bueso

It's a lot more intuitive to have it in the locking section of the kernel hacking part rather than under "General architecture-dependent options".

---
  arch/Kconfig      | 9 ---------
  lib/Kconfig.debug | 9 +++++++++
  2 files changed, 9 insertions(+), 9 deletions(-)
arch/Kconfig +0 -9
index ecfd3520b676..d6f9aeaaf9f2 100644
@@ -1113,15 +1113,6 @@ config HAVE_ARCH_PREL32_RELOCATIONS
  config ARCH_USE_MEMREMAP_PROT
  	bool
 
-config LOCK_EVENT_COUNTS
-	bool "Locking event counts collection"
-	depends on DEBUG_FS
-	help
-	  Enable light-weight counting of various locking related events
-	  in the system with minimal performance impact. This reduces
-	  the chance of application behavior change because of timing
-	  differences. The counts are reported via debugfs.
-
  # Select if the architecture has support for applying RELR relocations.
  config ARCH_HAS_RELR
  	bool
lib/Kconfig.debug +2 -0
index 2779c29d9981..76639ff5998c 100644
@@ -1401,6 +1401,15 @@ config DEBUG_LOCKING_API_SELFTESTS
  	  The following locking APIs are covered: spinlocks, rwlocks,
  	  mutexes and rwsems.
 
+config LOCK_EVENT_COUNTS
+	bool "Locking event counts collection"

lib/Kconfig.debug config DEBUG_LOCKING_API_SELFTESTS · line 1415

Quoted 10 lines
lib/Kconfig.debug +7 -0
+	depends on DEBUG_FS
+	help
+	  Enable light-weight counting of various locking related events
+	  in the system with minimal performance impact. This reduces
+	  the chance of application behavior change because of timing
+	  differences. The counts are reported via debugfs.
+
  config LOCK_TORTURE_TEST
  	tristate "torture tests for locking"
  	depends on DEBUG_KERNEL

It looks good to me.

#2 lore raw
In reply to Davidlohr Bueso

Ping?

Quoted 52 lines · Davidlohr Bueso

It's a lot more intuitive to have it in the locking section of the kernel hacking part rather than under "General architecture-dependent options".

---
arch/Kconfig | 9 ---------
lib/Kconfig.debug | 9 +++++++++

2 files changed, 9 insertions(+), 9 deletions(-)
arch/Kconfig +0 -0
index ecfd3520b676..d6f9aeaaf9f2 100644
@@ -1113,15 +1113,6 @@ config HAVE_ARCH_PREL32_RELOCATIONS

config ARCH_USE_MEMREMAP_PROT
bool

arch/Kconfig +0 -9
-config LOCK_EVENT_COUNTS
-	bool "Locking event counts collection"
-	depends on DEBUG_FS
-	help
-	  Enable light-weight counting of various locking related events
-	  in the system with minimal performance impact. This reduces
-	  the chance of application behavior change because of timing
-	  differences. The counts are reported via debugfs.
-

# Select if the architecture has support for applying RELR relocations. config ARCH_HAS_RELR
bool

lib/Kconfig.debug +9 -0
index 2779c29d9981..76639ff5998c 100644
@@ -1401,6 +1401,15 @@ config DEBUG_LOCKING_API_SELFTESTS
 	  The following locking APIs are covered: spinlocks, rwlocks,
 	  mutexes and rwsems.
 
+config LOCK_EVENT_COUNTS
+	bool "Locking event counts collection"
+	depends on DEBUG_FS
+	help
+	  Enable light-weight counting of various locking related events
+	  in the system with minimal performance impact. This reduces
+	  the chance of application behavior change because of timing
+	  differences. The counts are reported via debugfs.
+

config LOCK_TORTURE_TEST
tristate "torture tests for locking"
depends on DEBUG_KERNEL

Signature · 1 line
2.26.2
Acked-by
#3 lore raw
Quoted 41 lines · Davidlohr Bueso

Ping?

Quoted 37 lines · Davidlohr Bueso

It's a lot more intuitive to have it in the locking section of the kernel hacking part rather than under "General architecture-dependent options".

---
arch/Kconfig      | 9 ---------
lib/Kconfig.debug | 9 +++++++++

2 files changed, 9 insertions(+), 9 deletions(-)
arch/Kconfig +0 -0
index ecfd3520b676..d6f9aeaaf9f2 100644
@@ -1113,15 +1113,6 @@ config HAVE_ARCH_PREL32_RELOCATIONS

config ARCH_USE_MEMREMAP_PROT
    bool

arch/Kconfig +0 -9
-config LOCK_EVENT_COUNTS
-    bool "Locking event counts collection"
-    depends on DEBUG_FS
-    help
-      Enable light-weight counting of various locking related events
-      in the system with minimal performance impact. This reduces
-      the chance of application behavior change because of timing
-      differences. The counts are reported via debugfs.
-

# Select if the architecture has support for applying RELR relocations. config ARCH_HAS_RELR
    bool

lib/Kconfig.debug +0 -0
index 2779c29d9981..76639ff5998c 100644
@@ -1401,6 +1401,15 @@ config DEBUG_LOCKING_API_SELFTESTS
       The following locking APIs are covered: spinlocks, rwlocks,

      mutexes and rwsems.

Quoted 16 lines
Quoted 9 lines
lib/Kconfig.debug +9 -0
+config LOCK_EVENT_COUNTS
+    bool "Locking event counts collection"
+    depends on DEBUG_FS
+    help
+      Enable light-weight counting of various locking related events
+      in the system with minimal performance impact. This reduces
+      the chance of application behavior change because of timing
+      differences. The counts are reported via debugfs.
+
Quoted 6 lines

config LOCK_TORTURE_TEST
    tristate "torture tests for locking"
    depends on DEBUG_KERNEL

Signature · 1 line
2.26.2

I have no objection to that.