Hello,

Thanks for your input. I'll send another patch. In order to reproduce it you 
need to build perf not linux-imx.

Regards,
Noor

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of 
Otavio Salvador
Sent: Tuesday, December 18, 2012 9:09 PM
To: Ahsan, Noor
Cc: [email protected]
Subject: Re: [meta-freescale] [meta-fsl-arm][PATCH] linux-imx: Add a patch to 
fix perf compilation issue.

On Tue, Dec 18, 2012 at 11:59 AM, Noor, Ahsan <[email protected]> wrote:
> From: Noor Ahsan <[email protected]>
>
> * 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 <[email protected]>

Checking the kernel sources it seems the only required header is resource.h, as 
stated in:

commit 7b78f13603c6fcb64e020a0bbe31a651ea2b657b
Author: Markus Trippelsdorf <[email protected]>
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:

        CC builtin-sched.o
    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 <[email protected]>
    Cc: Peter Zijlstra <[email protected]>
    Link: http://lkml.kernel.org/r/20120404084527.GA294@x4
    Signed-off-by: Ingo Molnar <[email protected]>

Please use this patch, add a Upstream-Status header in the patch and also bump 
PR.

Regards,

--
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale

Reply via email to