Skip to contentSkip to conversation

perf tools: Disable libdw unwind for all but x86 arch

PATCH New Jiri Olsa 2 participants 2 messages Apr 20, 2014 – Apr 23, 2014 perf events

lore
Share & tools
lore

Jiri Olsa

author
#0 lore raw

PATCH 1/1 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 <[email protected]>
Cc Corey Ashford <[email protected]>
Cc David Ahern <[email protected]>
Cc Frederic Weisbecker <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Jean Pihet <[email protected]>
Cc Josh Boyer <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Paul Mackerras <[email protected]>
Cc Peter Zijlstra <[email protected]>
---
 tools/perf/config/Makefile | 4 ++++
 1 file changed, 4 insertions(+)
tools/perf/config/Makefile +4 -0
index ee21fa9..19ee413 100644
@@ -34,6 +34,10 @@ ifeq ($(ARCH),arm)
   LIBUNWIND_LIBS = -lunwind -lunwind-arm
 endif
 
+ifneq ($(ARCH),x86)
+  NO_LIBDW_DWARF_UNWIND := 1
+endif
+
 ifeq ($(LIBUNWIND_LIBS),)
   NO_LIBUNWIND := 1
 else
Signature · 1 line
1.8.3.1
#1 lore raw
perf tools: Disable libdw unwind for all but x86 arch
Commit-ID:  4dc549e58b6ebf63554cd466d5ceb0e9c70ab859
Gitweb:     http://git.kernel.org/tip/4dc549e58b6ebf63554cd466d5ceb0e9c70ab859
Author:     Jiri Olsa <[email protected]>
AuthorDate: Sun, 20 Apr 2014 10:50:00 +0200
Committer:  Jiri Olsa <[email protected]>
CommitDate: Wed, 23 Apr 2014 13:19:18 +0200

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 <[email protected]>
Cc Corey Ashford <[email protected]>
Cc David Ahern <[email protected]>
Cc Frederic Weisbecker <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Jean Pihet <[email protected]>
Cc Josh Boyer <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Paul Mackerras <[email protected]>
Cc Peter Zijlstra <[email protected]>
---
 tools/perf/config/Makefile | 8 ++++++++
 1 file changed, 8 insertions(+)
tools/perf/config/Makefile +8 -0
index ee21fa9..a71fb39 100644
@@ -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