diff options
| author | Josh Poimboeuf <jpoimboe@redhat.com> | 2017-11-06 08:21:50 -0500 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2017-11-07 04:48:23 -0500 |
| commit | 6a77cff819ae3e31992bde6432c9b5720748a89b (patch) | |
| tree | 28e36f54f3157bfe9c65156857e9dedc872887f0 /tools/objtool | |
| parent | 10259821ac47dbefa6f83ae57f1fa9f1f2c54b3d (diff) | |
objtool: Move synced files to their original relative locations
This will enable more straightforward comparisons, and it also makes the
files 100% identical.
Suggested-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/407b2aaa317741f48fcf821592c0e96ab3be1890.1509974346.git.jpoimboe@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/objtool')
| -rw-r--r-- | tools/objtool/.gitignore | 2 | ||||
| -rw-r--r-- | tools/objtool/Makefile | 22 | ||||
| -rw-r--r-- | tools/objtool/arch/x86/Build | 10 | ||||
| -rw-r--r-- | tools/objtool/arch/x86/decode.c | 6 | ||||
| -rw-r--r-- | tools/objtool/arch/x86/include/asm/inat.h (renamed from tools/objtool/arch/x86/insn/inat.h) | 2 | ||||
| -rw-r--r-- | tools/objtool/arch/x86/include/asm/inat_types.h (renamed from tools/objtool/arch/x86/insn/inat_types.h) | 0 | ||||
| -rw-r--r-- | tools/objtool/arch/x86/include/asm/insn.h (renamed from tools/objtool/arch/x86/insn/insn.h) | 2 | ||||
| -rw-r--r-- | tools/objtool/arch/x86/include/asm/orc_types.h (renamed from tools/objtool/orc_types.h) | 0 | ||||
| -rw-r--r-- | tools/objtool/arch/x86/lib/inat.c (renamed from tools/objtool/arch/x86/insn/inat.c) | 2 | ||||
| -rw-r--r-- | tools/objtool/arch/x86/lib/insn.c (renamed from tools/objtool/arch/x86/insn/insn.c) | 4 | ||||
| -rw-r--r-- | tools/objtool/arch/x86/lib/x86-opcode-map.txt (renamed from tools/objtool/arch/x86/insn/x86-opcode-map.txt) | 0 | ||||
| -rw-r--r-- | tools/objtool/arch/x86/tools/gen-insn-attr-x86.awk (renamed from tools/objtool/arch/x86/insn/gen-insn-attr-x86.awk) | 0 | ||||
| -rw-r--r-- | tools/objtool/orc.h | 2 |
13 files changed, 27 insertions, 25 deletions
diff --git a/tools/objtool/.gitignore b/tools/objtool/.gitignore index d3102c865a95..914cff12899b 100644 --- a/tools/objtool/.gitignore +++ b/tools/objtool/.gitignore | |||
| @@ -1,3 +1,3 @@ | |||
| 1 | arch/x86/insn/inat-tables.c | 1 | arch/x86/lib/inat-tables.c |
| 2 | objtool | 2 | objtool |
| 3 | fixdep | 3 | fixdep |
diff --git a/tools/objtool/Makefile b/tools/objtool/Makefile index 424b1965d06f..c6a19d946ec1 100644 --- a/tools/objtool/Makefile +++ b/tools/objtool/Makefile | |||
| @@ -25,7 +25,9 @@ OBJTOOL_IN := $(OBJTOOL)-in.o | |||
| 25 | 25 | ||
| 26 | all: $(OBJTOOL) | 26 | all: $(OBJTOOL) |
| 27 | 27 | ||
| 28 | INCLUDES := -I$(srctree)/tools/include -I$(srctree)/tools/arch/$(HOSTARCH)/include/uapi | 28 | INCLUDES := -I$(srctree)/tools/include \ |
| 29 | -I$(srctree)/tools/arch/$(HOSTARCH)/include/uapi \ | ||
| 30 | -I$(srctree)/tools/objtool/arch/$(HOSTARCH)/include | ||
| 29 | WARNINGS := $(EXTRA_WARNINGS) -Wno-switch-default -Wno-switch-enum -Wno-packed | 31 | WARNINGS := $(EXTRA_WARNINGS) -Wno-switch-default -Wno-switch-enum -Wno-packed |
| 30 | CFLAGS += -Wall -Werror $(WARNINGS) -fomit-frame-pointer -O2 -g $(INCLUDES) | 32 | CFLAGS += -Wall -Werror $(WARNINGS) -fomit-frame-pointer -O2 -g $(INCLUDES) |
| 31 | LDFLAGS += -lelf $(LIBSUBCMD) | 33 | LDFLAGS += -lelf $(LIBSUBCMD) |
| @@ -46,16 +48,16 @@ $(OBJTOOL_IN): fixdep FORCE | |||
| 46 | $(OBJTOOL): $(LIBSUBCMD) $(OBJTOOL_IN) | 48 | $(OBJTOOL): $(LIBSUBCMD) $(OBJTOOL_IN) |
| 47 | @(diff -I 2>&1 | grep -q 'option requires an argument' && \ | 49 | @(diff -I 2>&1 | grep -q 'option requires an argument' && \ |
| 48 | test -d ../../kernel -a -d ../../tools -a -d ../objtool && (( \ | 50 | test -d ../../kernel -a -d ../../tools -a -d ../objtool && (( \ |
| 49 | diff -I'^#include' arch/x86/insn/insn.c ../../arch/x86/lib/insn.c >/dev/null && \ | 51 | diff arch/x86/lib/insn.c ../../arch/x86/lib/insn.c >/dev/null && \ |
| 50 | diff -I'^#include' arch/x86/insn/inat.c ../../arch/x86/lib/inat.c >/dev/null && \ | 52 | diff arch/x86/lib/inat.c ../../arch/x86/lib/inat.c >/dev/null && \ |
| 51 | diff arch/x86/insn/x86-opcode-map.txt ../../arch/x86/lib/x86-opcode-map.txt >/dev/null && \ | 53 | diff arch/x86/lib/x86-opcode-map.txt ../../arch/x86/lib/x86-opcode-map.txt >/dev/null && \ |
| 52 | diff arch/x86/insn/gen-insn-attr-x86.awk ../../arch/x86/tools/gen-insn-attr-x86.awk >/dev/null && \ | 54 | diff arch/x86/tools/gen-insn-attr-x86.awk ../../arch/x86/tools/gen-insn-attr-x86.awk >/dev/null && \ |
| 53 | diff -I'^#include' arch/x86/insn/insn.h ../../arch/x86/include/asm/insn.h >/dev/null && \ | 55 | diff arch/x86/include/asm/insn.h ../../arch/x86/include/asm/insn.h >/dev/null && \ |
| 54 | diff -I'^#include' arch/x86/insn/inat.h ../../arch/x86/include/asm/inat.h >/dev/null && \ | 56 | diff arch/x86/include/asm/inat.h ../../arch/x86/include/asm/inat.h >/dev/null && \ |
| 55 | diff -I'^#include' arch/x86/insn/inat_types.h ../../arch/x86/include/asm/inat_types.h >/dev/null) \ | 57 | diff arch/x86/include/asm/inat_types.h ../../arch/x86/include/asm/inat_types.h >/dev/null) \ |
| 56 | || echo "warning: objtool: x86 instruction decoder differs from kernel" >&2 )) || true | 58 | || echo "warning: objtool: x86 instruction decoder differs from kernel" >&2 )) || true |
| 57 | @(test -d ../../kernel -a -d ../../tools -a -d ../objtool && (( \ | 59 | @(test -d ../../kernel -a -d ../../tools -a -d ../objtool && (( \ |
| 58 | diff ../../arch/x86/include/asm/orc_types.h orc_types.h >/dev/null) \ | 60 | diff ../../arch/x86/include/asm/orc_types.h arch/x86/include/asm/orc_types.h >/dev/null) \ |
| 59 | || echo "warning: objtool: orc_types.h differs from kernel" >&2 )) || true | 61 | || echo "warning: objtool: orc_types.h differs from kernel" >&2 )) || true |
| 60 | $(QUIET_LINK)$(CC) $(OBJTOOL_IN) $(LDFLAGS) -o $@ | 62 | $(QUIET_LINK)$(CC) $(OBJTOOL_IN) $(LDFLAGS) -o $@ |
| 61 | 63 | ||
| @@ -66,7 +68,7 @@ $(LIBSUBCMD): fixdep FORCE | |||
| 66 | clean: | 68 | clean: |
| 67 | $(call QUIET_CLEAN, objtool) $(RM) $(OBJTOOL) | 69 | $(call QUIET_CLEAN, objtool) $(RM) $(OBJTOOL) |
| 68 | $(Q)find $(OUTPUT) -name '*.o' -delete -o -name '\.*.cmd' -delete -o -name '\.*.d' -delete | 70 | $(Q)find $(OUTPUT) -name '*.o' -delete -o -name '\.*.cmd' -delete -o -name '\.*.d' -delete |
| 69 | $(Q)$(RM) $(OUTPUT)arch/x86/insn/inat-tables.c $(OUTPUT)fixdep | 71 | $(Q)$(RM) $(OUTPUT)arch/x86/lib/inat-tables.c $(OUTPUT)fixdep |
| 70 | 72 | ||
| 71 | FORCE: | 73 | FORCE: |
| 72 | 74 | ||
diff --git a/tools/objtool/arch/x86/Build b/tools/objtool/arch/x86/Build index debbdb0b5c43..b998412c017d 100644 --- a/tools/objtool/arch/x86/Build +++ b/tools/objtool/arch/x86/Build | |||
| @@ -1,12 +1,12 @@ | |||
| 1 | objtool-y += decode.o | 1 | objtool-y += decode.o |
| 2 | 2 | ||
| 3 | inat_tables_script = arch/x86/insn/gen-insn-attr-x86.awk | 3 | inat_tables_script = arch/x86/tools/gen-insn-attr-x86.awk |
| 4 | inat_tables_maps = arch/x86/insn/x86-opcode-map.txt | 4 | inat_tables_maps = arch/x86/lib/x86-opcode-map.txt |
| 5 | 5 | ||
| 6 | $(OUTPUT)arch/x86/insn/inat-tables.c: $(inat_tables_script) $(inat_tables_maps) | 6 | $(OUTPUT)arch/x86/lib/inat-tables.c: $(inat_tables_script) $(inat_tables_maps) |
| 7 | $(call rule_mkdir) | 7 | $(call rule_mkdir) |
| 8 | $(Q)$(call echo-cmd,gen)$(AWK) -f $(inat_tables_script) $(inat_tables_maps) > $@ | 8 | $(Q)$(call echo-cmd,gen)$(AWK) -f $(inat_tables_script) $(inat_tables_maps) > $@ |
| 9 | 9 | ||
| 10 | $(OUTPUT)arch/x86/decode.o: $(OUTPUT)arch/x86/insn/inat-tables.c | 10 | $(OUTPUT)arch/x86/decode.o: $(OUTPUT)arch/x86/lib/inat-tables.c |
| 11 | 11 | ||
| 12 | CFLAGS_decode.o += -I$(OUTPUT)arch/x86/insn | 12 | CFLAGS_decode.o += -I$(OUTPUT)arch/x86/lib |
diff --git a/tools/objtool/arch/x86/decode.c b/tools/objtool/arch/x86/decode.c index 34a579f806e3..8acfc47af70e 100644 --- a/tools/objtool/arch/x86/decode.c +++ b/tools/objtool/arch/x86/decode.c | |||
| @@ -19,9 +19,9 @@ | |||
| 19 | #include <stdlib.h> | 19 | #include <stdlib.h> |
| 20 | 20 | ||
| 21 | #define unlikely(cond) (cond) | 21 | #define unlikely(cond) (cond) |
| 22 | #include "insn/insn.h" | 22 | #include <asm/insn.h> |
| 23 | #include "insn/inat.c" | 23 | #include "lib/inat.c" |
| 24 | #include "insn/insn.c" | 24 | #include "lib/insn.c" |
| 25 | 25 | ||
| 26 | #include "../../elf.h" | 26 | #include "../../elf.h" |
| 27 | #include "../../arch.h" | 27 | #include "../../arch.h" |
diff --git a/tools/objtool/arch/x86/insn/inat.h b/tools/objtool/arch/x86/include/asm/inat.h index 125ecd2a300d..02aff0867211 100644 --- a/tools/objtool/arch/x86/insn/inat.h +++ b/tools/objtool/arch/x86/include/asm/inat.h | |||
| @@ -20,7 +20,7 @@ | |||
| 20 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 20 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 21 | * | 21 | * |
| 22 | */ | 22 | */ |
| 23 | #include "inat_types.h" | 23 | #include <asm/inat_types.h> |
| 24 | 24 | ||
| 25 | /* | 25 | /* |
| 26 | * Internal bits. Don't use bitmasks directly, because these bits are | 26 | * Internal bits. Don't use bitmasks directly, because these bits are |
diff --git a/tools/objtool/arch/x86/insn/inat_types.h b/tools/objtool/arch/x86/include/asm/inat_types.h index cb3c20ce39cf..cb3c20ce39cf 100644 --- a/tools/objtool/arch/x86/insn/inat_types.h +++ b/tools/objtool/arch/x86/include/asm/inat_types.h | |||
diff --git a/tools/objtool/arch/x86/insn/insn.h b/tools/objtool/arch/x86/include/asm/insn.h index e23578c7b1be..b3e32b010ab1 100644 --- a/tools/objtool/arch/x86/insn/insn.h +++ b/tools/objtool/arch/x86/include/asm/insn.h | |||
| @@ -21,7 +21,7 @@ | |||
| 21 | */ | 21 | */ |
| 22 | 22 | ||
| 23 | /* insn_attr_t is defined in inat.h */ | 23 | /* insn_attr_t is defined in inat.h */ |
| 24 | #include "inat.h" | 24 | #include <asm/inat.h> |
| 25 | 25 | ||
| 26 | struct insn_field { | 26 | struct insn_field { |
| 27 | union { | 27 | union { |
diff --git a/tools/objtool/orc_types.h b/tools/objtool/arch/x86/include/asm/orc_types.h index 9c9dc579bd7d..9c9dc579bd7d 100644 --- a/tools/objtool/orc_types.h +++ b/tools/objtool/arch/x86/include/asm/orc_types.h | |||
diff --git a/tools/objtool/arch/x86/insn/inat.c b/tools/objtool/arch/x86/lib/inat.c index e4bf28e6f4c7..c1f01a8e9f65 100644 --- a/tools/objtool/arch/x86/insn/inat.c +++ b/tools/objtool/arch/x86/lib/inat.c | |||
| @@ -18,7 +18,7 @@ | |||
| 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 19 | * | 19 | * |
| 20 | */ | 20 | */ |
| 21 | #include "insn.h" | 21 | #include <asm/insn.h> |
| 22 | 22 | ||
| 23 | /* Attribute tables are generated from opcode map */ | 23 | /* Attribute tables are generated from opcode map */ |
| 24 | #include "inat-tables.c" | 24 | #include "inat-tables.c" |
diff --git a/tools/objtool/arch/x86/insn/insn.c b/tools/objtool/arch/x86/lib/insn.c index ca983e2bea8b..1088eb8f3a5f 100644 --- a/tools/objtool/arch/x86/insn/insn.c +++ b/tools/objtool/arch/x86/lib/insn.c | |||
| @@ -23,8 +23,8 @@ | |||
| 23 | #else | 23 | #else |
| 24 | #include <string.h> | 24 | #include <string.h> |
| 25 | #endif | 25 | #endif |
| 26 | #include "inat.h" | 26 | #include <asm/inat.h> |
| 27 | #include "insn.h" | 27 | #include <asm/insn.h> |
| 28 | 28 | ||
| 29 | /* Verify next sizeof(t) bytes can be on the same instruction */ | 29 | /* Verify next sizeof(t) bytes can be on the same instruction */ |
| 30 | #define validate_next(t, insn, n) \ | 30 | #define validate_next(t, insn, n) \ |
diff --git a/tools/objtool/arch/x86/insn/x86-opcode-map.txt b/tools/objtool/arch/x86/lib/x86-opcode-map.txt index 12e377184ee4..12e377184ee4 100644 --- a/tools/objtool/arch/x86/insn/x86-opcode-map.txt +++ b/tools/objtool/arch/x86/lib/x86-opcode-map.txt | |||
diff --git a/tools/objtool/arch/x86/insn/gen-insn-attr-x86.awk b/tools/objtool/arch/x86/tools/gen-insn-attr-x86.awk index b02a36b2c14f..b02a36b2c14f 100644 --- a/tools/objtool/arch/x86/insn/gen-insn-attr-x86.awk +++ b/tools/objtool/arch/x86/tools/gen-insn-attr-x86.awk | |||
diff --git a/tools/objtool/orc.h b/tools/objtool/orc.h index a4139e386ef3..b0e92a6d0903 100644 --- a/tools/objtool/orc.h +++ b/tools/objtool/orc.h | |||
| @@ -18,7 +18,7 @@ | |||
| 18 | #ifndef _ORC_H | 18 | #ifndef _ORC_H |
| 19 | #define _ORC_H | 19 | #define _ORC_H |
| 20 | 20 | ||
| 21 | #include "orc_types.h" | 21 | #include <asm/orc_types.h> |
| 22 | 22 | ||
| 23 | struct objtool_file; | 23 | struct objtool_file; |
| 24 | |||
