From: Jiri Olsa Date: Sun, 20 Apr 2014 08:50:00 +0000 (+0200) Subject: perf tools: Disable libdw unwind for all but x86 arch X-Git-Tag: v4.14-rc1~7589^2~2^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4dc549e58b6ebf63554cd466d5ceb0e9c70ab859;p=platform%2Fkernel%2Flinux-rpi.git perf tools: Disable libdw unwind for all but x86 arch So far there's only x86 libdw unwind support merged in perf. Disable it on all other architectures in case libdw unwind support is detected in system. Cc: Arnaldo Carvalho de Melo Cc: Corey Ashford Cc: David Ahern Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Jean Pihet Cc: Josh Boyer Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1397988006-14158-1-git-send-email-jolsa@redhat.com Signed-off-by: Jiri Olsa --- diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile index ee21fa9..a71fb39 100644 --- a/tools/perf/config/Makefile +++ b/tools/perf/config/Makefile @@ -34,6 +34,14 @@ ifeq ($(ARCH),arm) LIBUNWIND_LIBS = -lunwind -lunwind-arm endif +# So far there's only x86 libdw unwind support merged in perf. +# Disable it on all other architectures in case libdw unwind +# support is detected in system. Add supported architectures +# to the check. +ifneq ($(ARCH),x86) + NO_LIBDW_DWARF_UNWIND := 1 +endif + ifeq ($(LIBUNWIND_LIBS),) NO_LIBUNWIND := 1 else