diff options
author | Jiri Olsa <jolsa@kernel.org> | 2014-12-30 07:30:04 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-02-12 09:50:34 -0500 |
commit | 3bc3374cc50ce533259b7efed261f3d68307113c (patch) | |
tree | 2862510ce2a55b7acca39c9b9b7d8193a09e6b12 /tools/perf | |
parent | c7355f842bf84ba7b1c9d6378f85bb53c99284b2 (diff) |
perf build: Add perf regs objects building
Move the regs objects building under build framework to be included in
the libperf build object.
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Tested-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Tested-by: Will Deacon <will.deacon@arm.com>
Cc: Alexis Berlemont <alexis.berlemont@gmail.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-hgny792g5x5iaklc34aa57uh@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
-rw-r--r-- | tools/perf/Makefile.perf | 7 | ||||
-rw-r--r-- | tools/perf/config/Makefile | 4 | ||||
-rw-r--r-- | tools/perf/util/Build | 2 |
3 files changed, 6 insertions, 7 deletions
diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf index 4705fa9339eb..7daccaccd02f 100644 --- a/tools/perf/Makefile.perf +++ b/tools/perf/Makefile.perf | |||
@@ -349,13 +349,6 @@ install-gtk: $(OUTPUT)libperf-gtk.so | |||
349 | $(INSTALL) $(OUTPUT)libperf-gtk.so '$(DESTDIR_SQ)$(libdir_SQ)' | 349 | $(INSTALL) $(OUTPUT)libperf-gtk.so '$(DESTDIR_SQ)$(libdir_SQ)' |
350 | endif | 350 | endif |
351 | 351 | ||
352 | ifeq ($(NO_PERF_REGS),0) | ||
353 | ifeq ($(ARCH),x86) | ||
354 | LIB_H += arch/x86/include/perf_regs.h | ||
355 | endif | ||
356 | LIB_OBJS += $(OUTPUT)util/perf_regs.o | ||
357 | endif | ||
358 | |||
359 | ifndef NO_ZLIB | 352 | ifndef NO_ZLIB |
360 | LIB_OBJS += $(OUTPUT)util/zlib.o | 353 | LIB_OBJS += $(OUTPUT)util/zlib.o |
361 | endif | 354 | endif |
diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile index e92d1a450867..2fc4d5682c3b 100644 --- a/tools/perf/config/Makefile +++ b/tools/perf/config/Makefile | |||
@@ -48,6 +48,10 @@ ifeq ($(ARCH),arm64) | |||
48 | LIBUNWIND_LIBS = -lunwind -lunwind-aarch64 | 48 | LIBUNWIND_LIBS = -lunwind -lunwind-aarch64 |
49 | endif | 49 | endif |
50 | 50 | ||
51 | ifeq ($(NO_PERF_REGS),0) | ||
52 | $(call detected,CONFIG_PERF_REGS) | ||
53 | endif | ||
54 | |||
51 | # So far there's only x86 and arm libdw unwind support merged in perf. | 55 | # So far there's only x86 and arm libdw unwind support merged in perf. |
52 | # Disable it on all other architectures in case libdw unwind | 56 | # Disable it on all other architectures in case libdw unwind |
53 | # support is detected in system. Add supported architectures | 57 | # support is detected in system. Add supported architectures |
diff --git a/tools/perf/util/Build b/tools/perf/util/Build index b0a65429da6c..f69843218228 100644 --- a/tools/perf/util/Build +++ b/tools/perf/util/Build | |||
@@ -90,6 +90,8 @@ libperf-$(CONFIG_LIBUNWIND) += unwind-libunwind.o | |||
90 | 90 | ||
91 | libperf-y += scripting-engines/ | 91 | libperf-y += scripting-engines/ |
92 | 92 | ||
93 | libperf-$(CONFIG_PERF_REGS) += perf_regs.o | ||
94 | |||
93 | CFLAGS_config.o += -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" | 95 | CFLAGS_config.o += -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" |
94 | CFLAGS_exec_cmd.o += -DPERF_EXEC_PATH="BUILD_STR($(perfexecdir_SQ))" -DPREFIX="BUILD_STR($(prefix_SQ))" | 96 | CFLAGS_exec_cmd.o += -DPERF_EXEC_PATH="BUILD_STR($(perfexecdir_SQ))" -DPREFIX="BUILD_STR($(prefix_SQ))" |
95 | 97 | ||