OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jan 2020 09:21:47 +0000 (10:21 +0100)
commitb73696ee98b52241fd6cfc1da73c6a8de1d5d800
treeb3179efcc0e54cfe2e2ebcf1b221675bb8321298
parentaf843446da4591b856520b9588de2d967f04c210
x86, perf: Fix the dependency of the x86 insn decoder selftest

[ 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>
arch/x86/Kconfig.debug