perf: Don't build backtrace for ARC
PATCH 2/2 perf: Don't build backtrace for ARC
--- package/perf/perf.mk | 4 ++++ 1 file changed, 4 insertions(+)
package/perf/perf.mk +4 -0
@@ -22,6 +22,10 @@ PERF_MAKE_FLAGS = \ WERROR=0 \ ASCIIDOC= +ifeq ($(BR2_arc),y) + PERF_MAKE_FLAGS += NO_BACKTRACE=1 +endif + ifeq ($(BR2_PACKAGE_ELFUTILS),y) PERF_DEPENDENCIES += elfutils else
Signature · 1 line
1.7.9.5
PATCH 2/2 perf: Don't build backtrace for ARC
Hi Mischa,
Quoted 10 lines · Mischa Jonker
Signed-off-by Mischa Jonker <[email protected]>--- package/perf/perf.mk | 4 ++++ 1 file changed, 4 insertions(+)package/perf/perf.mk +0
-0
package/perf/perf.mk PERF_MAKE_FLAGS = \ · line 31
Quoted 10 lines
package/perf/perf.mk +4
-0@@ -22,6 +22,10 @@ PERF_MAKE_FLAGS = \ WERROR=0 \ ASCIIDOC= +ifeq ($(BR2_arc),y) + PERF_MAKE_FLAGS += NO_BACKTRACE=1 +endif + ifeq ($(BR2_PACKAGE_ELFUTILS),y) PERF_DEPENDENCIES += elfutils else
Could you give more details as to why this is needed?
I see no autobuild failures for perf on ARC, so what is the problem here? If this patch is still needed, I think the commit message should be expanded for that.
Thanks,
Thomas
PATCH 2/2 perf: Don't build backtrace for ARC
Anton,
Same for this mail, thanks.
Quoted 33 lines · Thomas De Schampheleire
Hi Mischa,
Quoted 10 lines · Mischa Jonker
Signed-off-by Mischa Jonker <[email protected]>--- package/perf/perf.mk | 4 ++++ 1 file changed, 4 insertions(+)package/perf/perf.mk +0
-0package/perf/perf.mk PERF_MAKE_FLAGS = \ · line 31
Quoted 10 lines
package/perf/perf.mk +4
-0@@ -22,6 +22,10 @@ PERF_MAKE_FLAGS = \ WERROR=0 \ ASCIIDOC= +ifeq ($(BR2_arc),y) + PERF_MAKE_FLAGS += NO_BACKTRACE=1 +endif + ifeq ($(BR2_PACKAGE_ELFUTILS),y) PERF_DEPENDENCIES += elfutils elseCould you give more details as to why this is needed?
I see no autobuild failures for perf on ARC, so what is the problem here? If this patch is still needed, I think the commit message should be expanded for that.Thanks,
Thomas
PATCH 2/2 perf: Don't build backtrace for ARC
Hi Thomas,
Call to backtrace() function fails for ARC, because for some reason unwinder from libgcc returns early. Thus usage of backtrace() should be disabled in perf explicitly, because build system only checks for existence of this call and since it is there it tries to use. However at runtime the output will not be the one expected: it will contain only several functions from the top of stack, instead of the complete backtrace.
Quoted 7 lines
-----Original Message-----
From: Thomas De Schampheleire [mailto:patrickdepinguin at gmail.com]
Sent: 19 July 2014 00:24
To: Anton Kolesov
Cc: buildroot at busybox.net
Subject: Re: [Buildroot] [PATCH 2/2] perf: Don't build backtrace for ARC
Quoted 39 lines
Anton,
Same for this mail, thanks.
Quoted 33 lines · Thomas De Schampheleire
Hi Mischa,
Quoted 10 lines · Mischa Jonker
Signed-off-by Mischa Jonker <[email protected]>--- package/perf/perf.mk | 4 ++++ 1 file changed, 4 insertions(+)package/perf/perf.mk +0
-0package/perf/perf.mk PERF_MAKE_FLAGS = \ · line 31
Quoted 10 lines
package/perf/perf.mk +4
-0@@ -22,6 +22,10 @@ PERF_MAKE_FLAGS = \ WERROR=0 \ ASCIIDOC= +ifeq ($(BR2_arc),y) + PERF_MAKE_FLAGS += NO_BACKTRACE=1 +endif + ifeq ($(BR2_PACKAGE_ELFUTILS),y) PERF_DEPENDENCIES += elfutils elseCould you give more details as to why this is needed?
I see no autobuild failures for perf on ARC, so what is the problem here? If this patch is still needed, I think the commit message should be expanded for that.Thanks,
Thomas
Anton
PATCH 2/2 perf: Don't build backtrace for ARC
Dear Anton Kolesov,
Please fix your e-mail client to wrap lines at a reasonable length. Thanks!
Quoted 7 lines · Anton Kolesov
Call to
backtrace()function fails for ARC, because for some reason unwinder from libgcc returns early. Thus usage ofbacktrace()should be disabled in perf explicitly, because build system only checks for existence of this call and since it is there it tries to use. However at runtime the output will not be the one expected: it will contain only several functions from the top of stack, instead of the complete backtrace.
Thanks for this explanation. I've committed the patch after adding this explanation right above the code that disables backtrace for perf on ARC.
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 2/2 perf: Don't build backtrace for ARC
In reply to Thomas De SchampheleireDear Thomas De Schampheleire,
Quoted 2 lines · Thomas De Schampheleire
Could you give more details as to why this is needed?
I see no autobuild failures for perf on ARC, so what is the problem here?
Since perf has 'depends on BR2_LINUX_KERNEL', it is never built by the autobuilders.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com