objtool: Move x86 insn decoder to a common location
authorJosh Poimboeuf <jpoimboe@redhat.com>
Thu, 29 Aug 2019 22:41:18 +0000 (17:41 -0500)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sun, 1 Sep 2019 01:27:52 +0000 (22:27 -0300)
commitd046b725487a97a3a3b35a00e84ca093963b8b4e
tree7c3f467c9b12da745240df401960f4b8aebb6718
parentf01642e4912bb80a01d693f4cc6fb0897207a090
objtool: Move x86 insn decoder to a common location

The kernel tree has three identical copies of the x86 instruction
decoder.  Two of them are in the tools subdir.

The tools subdir is supposed to be completely standalone and separate
from the kernel.  So having at least one copy of the kernel decoder in
the tools subdir is unavoidable.  However, we don't need *two* of them.

Move objtool's copy of the decoder to a shared location, so that perf
will also be able to use it.

Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: x86@kernel.org
Link: http://lore.kernel.org/lkml/55b486b88f6bcd0c9a2a04b34f964860c8390ca8.1567118001.git.jpoimboe@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
20 files changed:
tools/arch/x86/include/asm/inat.h [new file with mode: 0644]
tools/arch/x86/include/asm/inat_types.h [new file with mode: 0644]
tools/arch/x86/include/asm/insn.h [new file with mode: 0644]
tools/arch/x86/include/asm/orc_types.h [new file with mode: 0644]
tools/arch/x86/lib/inat.c [new file with mode: 0644]
tools/arch/x86/lib/insn.c [new file with mode: 0644]
tools/arch/x86/lib/x86-opcode-map.txt [new file with mode: 0644]
tools/arch/x86/tools/gen-insn-attr-x86.awk [new file with mode: 0644]
tools/objtool/Makefile
tools/objtool/arch/x86/Build
tools/objtool/arch/x86/decode.c
tools/objtool/arch/x86/include/asm/inat.h [deleted file]
tools/objtool/arch/x86/include/asm/inat_types.h [deleted file]
tools/objtool/arch/x86/include/asm/insn.h [deleted file]
tools/objtool/arch/x86/include/asm/orc_types.h [deleted file]
tools/objtool/arch/x86/lib/inat.c [deleted file]
tools/objtool/arch/x86/lib/insn.c [deleted file]
tools/objtool/arch/x86/lib/x86-opcode-map.txt [deleted file]
tools/objtool/arch/x86/tools/gen-insn-attr-x86.awk [deleted file]
tools/objtool/sync-check.sh