]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
x86, perf: Fix the dependency of the x86 insn decoder selftest
authorMasami Hiramatsu <mhiramat@kernel.org>
Sun, 1 Sep 2019 03:03:08 +0000 (12:03 +0900)
committerIngo Molnar <mingo@kernel.org>
Mon, 2 Sep 2019 18:05:58 +0000 (20:05 +0200)
Since x86 instruction decoder is not only for kprobes,
it should be tested when the insn.c is compiled.
(e.g. perf is enabled but kprobes is disabled)

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Fixes: cbe5c34c8c1f ("x86: Compile insn.c and inat.c only for KPROBES")
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/Kconfig.debug

index 71c92db47c412af588686489f4a9c6dec4e96929..bf9cd83de7773087951ad22dcafba77dba9b54f8 100644 (file)
@@ -171,7 +171,7 @@ config HAVE_MMIOTRACE_SUPPORT
 
 config X86_DECODER_SELFTEST
        bool "x86 instruction decoder selftest"
-       depends on DEBUG_KERNEL && KPROBES
+       depends on DEBUG_KERNEL && INSTRUCTION_DECODER
        depends on !COMPILE_TEST
        ---help---
         Perform x86 instruction decoder selftests at build time.