[meta-freescale] [meta-fsl-arm][PATCH] linux-imx: Add a patch to fix perf compilation issue.
otavio at ossystems.com.br
Tue Dec 18 08:09:08 PST 2012
On Tue, Dec 18, 2012 at 11:59 AM, Noor, Ahsan <noor_ahsan at mentor.com> wrote:
> From: Noor Ahsan <noor_ahsan at mentor.com>
> * Perf build fails with GNU C library version 2.16. It give
> undefined reference for RUSAGE_SELF and storage size of 'ru'
> in builtin-sched.c.
> * Fixed issue by adding time.h and resource.h headerfiles in builtin-sched.c.
> Signed-off-by: Noor Ahsan <noor_ahsan at mentor.com>
Checking the kernel sources it seems the only required header is
resource.h, as stated in:
Author: Markus Trippelsdorf <markus at trippelsdorf.de>
Date: Wed Apr 4 10:45:27 2012 +0200
perf tools: Fix getrusage() related build failure on glibc trunk
On a system running glibc trunk perf doesn't build:
builtin-sched.c: In function ‘get_cpu_usage_nsec_parent’:
builtin-sched.c:399:16: error: storage
Fix it by including sys/resource.h.
Signed-off-by: Markus Trippelsdorf <markus at trippelsdorf.de>
Cc: Peter Zijlstra <a.p.zijlstra at chello.nl>
Signed-off-by: Ingo Molnar <mingo at kernel.org>
Please use this patch, add a Upstream-Status header in the patch and
also bump PR.
Otavio Salvador O.S. Systems
E-mail: otavio at ossystems.com.br http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
More information about the meta-freescale