summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMischa Jonker <mischa.jonker@synopsys.com>2014-01-28 14:10:58 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-07-21 22:53:29 +0200
commitfc093d61ce24c0adb0dda3940940664c182626e9 (patch)
treec495b07b5698d91dc3905028f6b5fd7201596d41
parent3d08f3f03f0352f354b8b61443c79addaf9f827a (diff)
perf: Don't build backtrace for ARC
[Thomas: add more details as a comment in the code, provided by Anton Kolesov. Signed-off-by: Mischa Jonker <mjonker@synopsys.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/perf/perf.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/package/perf/perf.mk b/package/perf/perf.mk
index ffeec0282..1fcc25863 100644
--- a/package/perf/perf.mk
+++ b/package/perf/perf.mk
@@ -22,6 +22,16 @@ PERF_MAKE_FLAGS = \
WERROR=0 \
ASCIIDOC=
+# The call to backtrace() function fails for ARC, because for some
+# reason the unwinder from libgcc returns early. Thus the usage of
+# backtrace() should be disabled in perf explicitly: at build time
+# backtrace() appears to be available, but it fails at runtime: the
+# backtrace will contain only several functions from the top of stack,
+# instead of the complete backtrace.
+ifeq ($(BR2_arc),y)
+ PERF_MAKE_FLAGS += NO_BACKTRACE=1
+endif
+
ifeq ($(BR2_PACKAGE_ELFUTILS),y)
PERF_DEPENDENCIES += elfutils
else