riscv: fix riscv64 unrecognized opcode build error
[platform/kernel/linux-starfive.git] / lib / Kconfig.debug
index 3fc7abf..12dfe66 100644 (file)
@@ -395,13 +395,15 @@ endif # DEBUG_INFO
 config FRAME_WARN
        int "Warn for stack frames larger than"
        range 0 8192
+       default 0 if KMSAN
        default 2048 if GCC_PLUGIN_LATENT_ENTROPY
        default 2048 if PARISC
        default 1536 if (!64BIT && XTENSA)
+       default 1280 if KASAN && !64BIT
        default 1024 if !64BIT
        default 2048 if 64BIT
        help
-         Tell gcc to warn at build time for stack frames larger than this.
+         Tell the compiler to warn at build time for stack frames larger than this.
          Setting this too low will cause a lot of warnings.
          Setting it to 0 disables the warning.
 
@@ -1873,8 +1875,14 @@ config NETDEV_NOTIFIER_ERROR_INJECT
          If unsure, say N.
 
 config FUNCTION_ERROR_INJECTION
-       def_bool y
+       bool "Fault-injections of functions"
        depends on HAVE_FUNCTION_ERROR_INJECTION && KPROBES
+       help
+         Add fault injections into various functions that are annotated with
+         ALLOW_ERROR_INJECTION() in the kernel. BPF may also modify the return
+         value of theses functions. This is useful to test error paths of code.
+
+         If unsure, say N
 
 config FAULT_INJECTION
        bool "Fault-injection framework"
@@ -2084,6 +2092,7 @@ config TEST_MIN_HEAP
 config TEST_SORT
        tristate "Array-based sort test" if !KUNIT_ALL_TESTS
        depends on KUNIT
+       select STACKTRACE if ARCH_CORRECT_STACKTRACE_ON_KRETPROBE
        default KUNIT_ALL_TESTS
        help
          This option enables the self-test function of 'sort()' at boot,
@@ -2106,6 +2115,7 @@ config KPROBES_SANITY_TEST
        depends on DEBUG_KERNEL
        depends on KPROBES
        depends on KUNIT
+       select STACKTRACE if ARCH_CORRECT_STACKTRACE_ON_KRETPROBE
        default KUNIT_ALL_TESTS
        help
          This option provides for testing basic kprobes functionality on
@@ -2240,6 +2250,10 @@ config TEST_UUID
 config TEST_XARRAY
        tristate "Test the XArray code at runtime"
 
+config TEST_MAPLE_TREE
+       select DEBUG_MAPLE_TREE
+       tristate "Test the Maple Tree code at runtime"
+
 config TEST_RHASHTABLE
        tristate "Perform selftest on resizable hash table"
        help