Merge tag 'acpi-5.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael...
[linux-2.6-microblaze.git] / lib / Kconfig.debug
index 64f9501..7c70521 100644 (file)
@@ -274,6 +274,15 @@ config DEBUG_INFO_BTF
          Turning this on expects presence of pahole tool, which will convert
          DWARF type info into equivalent deduplicated BTF type info.
 
+config PAHOLE_HAS_SPLIT_BTF
+       def_bool $(success, test `$(PAHOLE) --version | sed -E 's/v([0-9]+)\.([0-9]+)/\1\2/'` -ge "119")
+
+config DEBUG_INFO_BTF_MODULES
+       def_bool y
+       depends on DEBUG_INFO_BTF && MODULES && PAHOLE_HAS_SPLIT_BTF
+       help
+         Generate compact split BTF type information for kernel modules.
+
 config GDB_SCRIPTS
        bool "Provide GDB scripts for kernel debugging"
        help
@@ -849,9 +858,31 @@ config DEBUG_PER_CPU_MAPS
 
          Say N if unsure.
 
+config DEBUG_KMAP_LOCAL
+       bool "Debug kmap_local temporary mappings"
+       depends on DEBUG_KERNEL && KMAP_LOCAL
+       help
+         This option enables additional error checking for the kmap_local
+         infrastructure.  Disable for production use.
+
+config ARCH_SUPPORTS_KMAP_LOCAL_FORCE_MAP
+       bool
+
+config DEBUG_KMAP_LOCAL_FORCE_MAP
+       bool "Enforce kmap_local temporary mappings"
+       depends on DEBUG_KERNEL && ARCH_SUPPORTS_KMAP_LOCAL_FORCE_MAP
+       select KMAP_LOCAL
+       select DEBUG_KMAP_LOCAL
+       help
+         This option enforces temporary mappings through the kmap_local
+         mechanism for non-highmem pages and on non-highmem systems.
+         Disable this for production systems!
+
 config DEBUG_HIGHMEM
        bool "Highmem debugging"
        depends on DEBUG_KERNEL && HIGHMEM
+       select DEBUG_KMAP_LOCAL_FORCE_MAP if ARCH_SUPPORTS_KMAP_LOCAL_FORCE_MAP
+       select DEBUG_KMAP_LOCAL
        help
          This option enables additional error checking for high memory
          systems.  Disable for production systems.