diff options
| author | Ingo Molnar <mingo@kernel.org> | 2016-07-25 13:48:41 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2016-07-25 13:48:41 -0400 |
| commit | 674d2d69b14f677a771ceec4b48bfade94a0c5f1 (patch) | |
| tree | 1413429fd703b57aaf9f5b7fdab4b283b32b13cd /tools/objtool | |
| parent | 5048c2af078d5976895d521262a8802ea791f3b0 (diff) | |
| parent | 4e3ba8af21b00b91b451e7c4a9fa3a63b025dd56 (diff) | |
Merge tag 'perf-core-for-mingo-20160725' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
Pull perf/core improvements and fixes from Arnaldo Carvalho de Melo:
- Add AVX-512 support to the instruction decoder, used by Intel PT,
fix vcvtph2ps instruction decoding (Adrian Hunter)
- Make objtool and vdso2c use the right arch header search path
(Stephen Rothwell, Josh Poimboeuf, Arnaldo Carvalho de Melo)
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/objtool')
| -rw-r--r-- | tools/objtool/Build | 2 | ||||
| -rw-r--r-- | tools/objtool/Makefile | 8 |
2 files changed, 4 insertions, 6 deletions
diff --git a/tools/objtool/Build b/tools/objtool/Build index 2457916a3943..d6cdece5e58b 100644 --- a/tools/objtool/Build +++ b/tools/objtool/Build | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | objtool-y += arch/$(ARCH)/ | 1 | objtool-y += arch/$(SRCARCH)/ |
| 2 | objtool-y += builtin-check.o | 2 | objtool-y += builtin-check.o |
| 3 | objtool-y += elf.o | 3 | objtool-y += elf.o |
| 4 | objtool-y += special.o | 4 | objtool-y += special.o |
diff --git a/tools/objtool/Makefile b/tools/objtool/Makefile index 1f75b0a046cc..0b437700f688 100644 --- a/tools/objtool/Makefile +++ b/tools/objtool/Makefile | |||
| @@ -1,11 +1,9 @@ | |||
| 1 | include ../scripts/Makefile.include | 1 | include ../scripts/Makefile.include |
| 2 | include ../scripts/Makefile.arch | ||
| 2 | 3 | ||
| 3 | ifndef ($(ARCH)) | ||
| 4 | ARCH ?= $(shell uname -m) | ||
| 5 | ifeq ($(ARCH),x86_64) | 4 | ifeq ($(ARCH),x86_64) |
| 6 | ARCH := x86 | 5 | ARCH := x86 |
| 7 | endif | 6 | endif |
| 8 | endif | ||
| 9 | 7 | ||
| 10 | # always use the host compiler | 8 | # always use the host compiler |
| 11 | CC = gcc | 9 | CC = gcc |
| @@ -26,7 +24,7 @@ OBJTOOL_IN := $(OBJTOOL)-in.o | |||
| 26 | 24 | ||
| 27 | all: $(OBJTOOL) | 25 | all: $(OBJTOOL) |
| 28 | 26 | ||
| 29 | INCLUDES := -I$(srctree)/tools/include -I$(srctree)/tools/arch/$(ARCH)/include/uapi | 27 | INCLUDES := -I$(srctree)/tools/include -I$(srctree)/tools/arch/$(HOSTARCH)/include/uapi |
| 30 | CFLAGS += -Wall -Werror $(EXTRA_WARNINGS) -fomit-frame-pointer -O2 -g $(INCLUDES) | 28 | CFLAGS += -Wall -Werror $(EXTRA_WARNINGS) -fomit-frame-pointer -O2 -g $(INCLUDES) |
| 31 | LDFLAGS += -lelf $(LIBSUBCMD) | 29 | LDFLAGS += -lelf $(LIBSUBCMD) |
| 32 | 30 | ||
| @@ -35,7 +33,7 @@ elfshdr := $(shell echo '\#include <libelf.h>' | $(CC) $(CFLAGS) -x c -E - | gre | |||
| 35 | CFLAGS += $(if $(elfshdr),,-DLIBELF_USE_DEPRECATED) | 33 | CFLAGS += $(if $(elfshdr),,-DLIBELF_USE_DEPRECATED) |
| 36 | 34 | ||
| 37 | AWK = awk | 35 | AWK = awk |
| 38 | export srctree OUTPUT CFLAGS ARCH AWK | 36 | export srctree OUTPUT CFLAGS SRCARCH AWK |
| 39 | include $(srctree)/tools/build/Makefile.include | 37 | include $(srctree)/tools/build/Makefile.include |
| 40 | 38 | ||
| 41 | $(OBJTOOL_IN): fixdep FORCE | 39 | $(OBJTOOL_IN): fixdep FORCE |
