aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2014-12-29 18:11:11 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2015-02-12 09:46:38 -0500
commitb2e45c322e0298652fc05e65c671b2b88d30ae31 (patch)
treea237681b33ebe7d6598885dc1d3d3d939e04a412
parent8379fce485cc57daa42a06f4cf1ad822b794d95d (diff)
perf build: Add dwarf unwind objects building
Move the dwarf unwind 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-7f7dmhkhs0e7jnqiu9ibzqia@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r--tools/perf/Makefile.perf9
-rw-r--r--tools/perf/config/Makefile2
-rw-r--r--tools/perf/util/Build3
3 files changed, 5 insertions, 9 deletions
diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf
index 5cb62b070e04..96e3cdc7f89c 100644
--- a/tools/perf/Makefile.perf
+++ b/tools/perf/Makefile.perf
@@ -346,15 +346,6 @@ ifneq ($(OUTPUT),)
346 CFLAGS += -I$(OUTPUT) 346 CFLAGS += -I$(OUTPUT)
347endif 347endif
348 348
349ifndef NO_LIBDW_DWARF_UNWIND
350 LIB_OBJS += $(OUTPUT)util/unwind-libdw.o
351 LIB_H += util/unwind-libdw.h
352endif
353
354ifndef NO_LIBUNWIND
355 LIB_OBJS += $(OUTPUT)util/unwind-libunwind.o
356endif
357
358ifndef NO_SLANG 349ifndef NO_SLANG
359 LIB_OBJS += $(OUTPUT)ui/browser.o 350 LIB_OBJS += $(OUTPUT)ui/browser.o
360 LIB_OBJS += $(OUTPUT)ui/browsers/annotate.o 351 LIB_OBJS += $(OUTPUT)ui/browsers/annotate.o
diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile
index 5f553989d8a1..e55d811e633f 100644
--- a/tools/perf/config/Makefile
+++ b/tools/perf/config/Makefile
@@ -420,9 +420,11 @@ ifdef NO_LIBUNWIND
420 dwarf-post-unwind := 0 420 dwarf-post-unwind := 0
421 else 421 else
422 dwarf-post-unwind-text := libdw 422 dwarf-post-unwind-text := libdw
423 $(call detected,CONFIG_LIBDW_DWARF_UNWIND)
423 endif 424 endif
424else 425else
425 dwarf-post-unwind-text := libunwind 426 dwarf-post-unwind-text := libunwind
427 $(call detected,CONFIG_LIBUNWIND)
426 # Enable libunwind support by default. 428 # Enable libunwind support by default.
427 ifndef NO_LIBDW_DWARF_UNWIND 429 ifndef NO_LIBDW_DWARF_UNWIND
428 NO_LIBDW_DWARF_UNWIND := 1 430 NO_LIBDW_DWARF_UNWIND := 1
diff --git a/tools/perf/util/Build b/tools/perf/util/Build
index 10630fbe43c1..0401a80bab09 100644
--- a/tools/perf/util/Build
+++ b/tools/perf/util/Build
@@ -85,6 +85,9 @@ endif
85libperf-$(CONFIG_DWARF) += probe-finder.o 85libperf-$(CONFIG_DWARF) += probe-finder.o
86libperf-$(CONFIG_DWARF) += dwarf-aux.o 86libperf-$(CONFIG_DWARF) += dwarf-aux.o
87 87
88libperf-$(CONFIG_LIBDW_DWARF_UNWIND) += unwind-libdw.o
89libperf-$(CONFIG_LIBUNWIND) += unwind-libunwind.o
90
88CFLAGS_config.o += -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" 91CFLAGS_config.o += -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
89CFLAGS_exec_cmd.o += -DPERF_EXEC_PATH="BUILD_STR($(perfexecdir_SQ))" -DPREFIX="BUILD_STR($(prefix_SQ))" 92CFLAGS_exec_cmd.o += -DPERF_EXEC_PATH="BUILD_STR($(perfexecdir_SQ))" -DPREFIX="BUILD_STR($(prefix_SQ))"
90 93