]> git.baikalelectronics.ru Git - kernel.git/commit
x86/tools: Use tools headers for instruction decoder selftests
authorVasily Gorbik <gor@linux.ibm.com>
Thu, 12 Nov 2020 23:03:20 +0000 (00:03 +0100)
committerJosh Poimboeuf <jpoimboe@redhat.com>
Thu, 14 Jan 2021 00:13:11 +0000 (18:13 -0600)
commit3bd02b212a91bc2040604945702ef30bffa52438
treeb2c21e6f4d094f103defd37d98b464bbf3f86b1f
parent7f41ca7cb5d523af8afcd9af44f273dfda935c55
x86/tools: Use tools headers for instruction decoder selftests

Currently the x86 instruction decoder is used from:
- the kernel itself,
- from tools like objtool and perf,
- within x86 tools, i.e. instruction decoder selftests.

The first two cases are similar, because tools headers try to mimic
kernel headers.

Instruction decoder selftests include some of the kernel headers
directly, including uapi headers. This works until headers dependencies
are kept to a minimum and tools are not cross-compiled. Since the goal
of the x86 instruction decoder selftests is not to verify uapi headers,
move it to using tools headers, like is already done for vdso2c tool,
mkpiggy and other tools in arch/x86/boot/.

Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
arch/x86/tools/Makefile