]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 05:29:37 +0000 (00:29 -0500)
BugLink: https://bugs.launchpad.net/bugs/1863019
[ Upstream commit 7720804a2ae46c90265a32c81c45fb6f8d2f4e8b ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
arch/x86/Kconfig.debug

index 672441c008c73ae3d949b974b128ef167d7d486a..689b6fd02b5f6604bf128ddd270c69873b1038a7 100644 (file)
@@ -189,7 +189,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.