diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-07-26 13:26:29 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-07-26 13:26:29 -0400 |
| commit | 37e13a1ebe32c4fbfbdb5413f42eb6e71d8b28a4 (patch) | |
| tree | 1921a0702d41d655d4b9a2115bc9bbff5f0b2d6b /tools/objtool | |
| parent | e65805251f2db69c9f67ed8062ab82526be5a374 (diff) | |
| parent | 674d2d69b14f677a771ceec4b48bfade94a0c5f1 (diff) | |
Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull perf fixes from Ingo Molnar:
"This tree contains tooling fixes plus some additions:
- fixes to the vdso2c build environment that Stephen Rothwell is
using for the linux-next build (Arnaldo Carvalho de Melo)
- AVX-512 instruction mappings (Adrian Hunter)
- misc fixes"
* 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
Revert "perf tools: event.h needs asm/perf_regs.h"
x86: Make the vdso2c compiler use the host architecture headers
tools build: Fix objtool build with ARCH=x86_64
objtool: Always use host headers
objtool: Use tools/scripts/Makefile.arch to get ARCH and HOSTARCH
tools build: Add HOSTARCH Makefile variable
perf tests kmod-path: Fix build on ubuntu:16.04-x-armhf
perf tools: Add AVX-512 instructions to the new instructions test
perf tools: Add AVX-512 support to the instruction decoder used by Intel PT
x86/insn: Add AVX-512 support to the instruction decoder
x86/insn: perf tools: Fix vcvtph2ps instruction decoding
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 |
