aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2014-12-29 18:06:25 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2015-02-12 09:46:01 -0500
commit8379fce485cc57daa42a06f4cf1ad822b794d95d (patch)
tree12686737ff68b414203b00abd09cfeb14ba981c8 /tools/perf
parent709e679193c6e0e39222cd1fd51008225208cbc7 (diff)
perf build: Add dwarf objects building
Move the dwarf 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-5ody6tnfnkt4rezvpem8n7rm@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
-rw-r--r--tools/perf/Makefile.perf7
-rw-r--r--tools/perf/config/Makefile1
-rw-r--r--tools/perf/util/Build3
3 files changed, 4 insertions, 7 deletions
diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf
index 0997e2b33c77..5cb62b070e04 100644
--- a/tools/perf/Makefile.perf
+++ b/tools/perf/Makefile.perf
@@ -346,13 +346,6 @@ ifneq ($(OUTPUT),)
346 CFLAGS += -I$(OUTPUT) 346 CFLAGS += -I$(OUTPUT)
347endif 347endif
348 348
349ifndef NO_LIBELF
350ifndef NO_DWARF
351 LIB_OBJS += $(OUTPUT)util/probe-finder.o
352 LIB_OBJS += $(OUTPUT)util/dwarf-aux.o
353endif # NO_DWARF
354endif # NO_LIBELF
355
356ifndef NO_LIBDW_DWARF_UNWIND 349ifndef NO_LIBDW_DWARF_UNWIND
357 LIB_OBJS += $(OUTPUT)util/unwind-libdw.o 350 LIB_OBJS += $(OUTPUT)util/unwind-libdw.o
358 LIB_H += util/unwind-libdw.h 351 LIB_H += util/unwind-libdw.h
diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile
index 79ee4ccce3dc..5f553989d8a1 100644
--- a/tools/perf/config/Makefile
+++ b/tools/perf/config/Makefile
@@ -392,6 +392,7 @@ ifndef NO_LIBELF
392 CFLAGS += -DHAVE_DWARF_SUPPORT $(LIBDW_CFLAGS) 392 CFLAGS += -DHAVE_DWARF_SUPPORT $(LIBDW_CFLAGS)
393 LDFLAGS += $(LIBDW_LDFLAGS) 393 LDFLAGS += $(LIBDW_LDFLAGS)
394 EXTLIBS += -ldw 394 EXTLIBS += -ldw
395 $(call detected,CONFIG_DWARF)
395 endif # PERF_HAVE_DWARF_REGS 396 endif # PERF_HAVE_DWARF_REGS
396 endif # NO_DWARF 397 endif # NO_DWARF
397endif # NO_LIBELF 398endif # NO_LIBELF
diff --git a/tools/perf/util/Build b/tools/perf/util/Build
index 73a0411e2014..10630fbe43c1 100644
--- a/tools/perf/util/Build
+++ b/tools/perf/util/Build
@@ -82,6 +82,9 @@ ifndef CONFIG_LIBELF
82libperf-y += symbol-minimal.o 82libperf-y += symbol-minimal.o
83endif 83endif
84 84
85libperf-$(CONFIG_DWARF) += probe-finder.o
86libperf-$(CONFIG_DWARF) += dwarf-aux.o
87
85CFLAGS_config.o += -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))" 88CFLAGS_config.o += -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
86CFLAGS_exec_cmd.o += -DPERF_EXEC_PATH="BUILD_STR($(perfexecdir_SQ))" -DPREFIX="BUILD_STR($(prefix_SQ))" 89CFLAGS_exec_cmd.o += -DPERF_EXEC_PATH="BUILD_STR($(perfexecdir_SQ))" -DPREFIX="BUILD_STR($(prefix_SQ))"
87 90