linux-qoriq-sdk: Add a patch to resolve undefined RUSAGE_SELF for perf.
PATCH 1/1 linux-qoriq-sdk: Add a patch to resolve undefined RUSAGE_SELF for perf.
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.
--- recipes-kernel/linux/linux-qoriq-sdk.bb | 2 ++ .../linux/linux-qoriq-sdk/fix_of_getrusage.patch | 11 +++++++++++ 2 files changed, 13 insertions(+)
recipes-kernel/linux/linux-qoriq-sdk.bb +2 -0
@@ -7,6 +7,8 @@ LICENSE = "GPLv2" require recipes-kernel/linux/linux-qoriq-sdk.inc +SRC_URI += "file://fix_of_getrusage.patch" + do_configure_prepend() { # copy desired defconfig so we pick it up for the real kernel_do_configure cp ${KERNEL_DEFCONFIG} ${B}/.config
recipes-kernel/linux/linux-qoriq-sdk/fix_of_getrusage.patch new file +11 -0
@@ -0,0 +1,11 @@ +--- git/tools/perf/builtin-sched_orig.c 2012-12-11 15:18:58.000000000 +0500 ++++ git/tools/perf/builtin-sched.c 2012-12-11 15:22:43.302782244 +0500 +@@ -14,6 +14,8 @@ + #include "util/debug.h" + + #include <sys/prctl.h> ++#include <sys/time.h> ++#include <sys/resource.h> + + #include <semaphore.h> + #include <pthread.h>
Signature · 1 line
1.7.9.5
Quoted 7 lines · Ahsan
From: Noor Ahsan <[email protected]>
* Perf build fails with GNU C library version 2.16. It give undefined reference for
RUSAGE_SELFand storage size of 'ru' inbuiltin-sched.c.
* Fixed issue by addingtime.handresource.hheaderfiles inbuiltin-sched.c.Signed-off-by Noor Ahsan <[email protected]>
Queued up in master-next for testing.
-M
Quoted 42 lines
--- recipes-kernel/linux/linux-qoriq-sdk.bb | 2 ++ .../linux/linux-qoriq-sdk/fix_of_getrusage.patch | 11 +++++++++++ 2 files changed, 13 insertions(+)recipes-kernel/linux/linux-qoriq-sdk.bb +2
-0@@ -7,6 +7,8 @@ LICENSE = "GPLv2" require recipes-kernel/linux/linux-qoriq-sdk.inc +SRC_URI += "file://fix_of_getrusage.patch" + do_configure_prepend() { # copy desired defconfig so we pick it up for the real kernel_do_configure cp ${KERNEL_DEFCONFIG} ${B}/.configrecipes-kernel/linux/linux-qoriq-sdk/fix_of_getrusage.patch new file +11
-1@@ -0,0 +1,11 @@ +--- git/tools/perf/builtin-sched_orig.c 2012-12-11 15:18:58.000000000 +0500 ++++ git/tools/perf/builtin-sched.c 2012-12-11 15:22:43.302782244 +0500 +@@ -14,6 +14,8 @@ + #include "util/debug.h" + + #include <sys/prctl.h> ++#include <sys/time.h> ++#include <sys/resource.h> + + #include <semaphore.h> + #include <pthread.h> --1.7.9.5
_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale
A message that is not in the archive (sent off-list or not yet received): CAEsOVNex8PbXEmBS9pRhcTWuvHtiXjJx7NGAAWJ+aSA9G7oeow@mail.gmail.com
Quoted 10 lines · Matthew McClintock
Quoted 7 lines · Ahsan
From: Noor Ahsan <[email protected]>
* Perf build fails with GNU C library version 2.16. It give undefined reference for
RUSAGE_SELFand storage size of 'ru' inbuiltin-sched.c.
* Fixed issue by addingtime.handresource.hheaderfiles inbuiltin-sched.c.Signed-off-by Noor Ahsan <[email protected]>Queued up in master-next for testing.
What's the upstream status for this patch?
-M
Quoted 45 lines
-M
Quoted 42 lines
--- recipes-kernel/linux/linux-qoriq-sdk.bb | 2 ++ .../linux/linux-qoriq-sdk/fix_of_getrusage.patch | 11 +++++++++++ 2 files changed, 13 insertions(+)recipes-kernel/linux/linux-qoriq-sdk.bb +2
-0@@ -7,6 +7,8 @@ LICENSE = "GPLv2" require recipes-kernel/linux/linux-qoriq-sdk.inc +SRC_URI += "file://fix_of_getrusage.patch" + do_configure_prepend() { # copy desired defconfig so we pick it up for the real kernel_do_configure cp ${KERNEL_DEFCONFIG} ${B}/.configrecipes-kernel/linux/linux-qoriq-sdk/fix_of_getrusage.patch new file +11
-1@@ -0,0 +1,11 @@ +--- git/tools/perf/builtin-sched_orig.c 2012-12-11 15:18:58.000000000 +0500 ++++ git/tools/perf/builtin-sched.c 2012-12-11 15:22:43.302782244 +0500 +@@ -14,6 +14,8 @@ + #include "util/debug.h" + + #include <sys/prctl.h> ++#include <sys/time.h> ++#include <sys/resource.h> + + #include <semaphore.h> + #include <pthread.h> --1.7.9.5
_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale
Quoted 8 lines · On Wed, Dec 19, 2012 at 5:31 PM, McClintock Matthew-B29882…
Quoted 7 lines · Matthew McClintock
Quoted 6 lines · Ahsan
From: Noor Ahsan <[email protected]>
* Perf build fails with GNU C library version 2.16. It give undefined reference for
RUSAGE_SELFand storage size of 'ru' inbuiltin-sched.c.
* Fixed issue by addingtime.handresource.hheaderfiles inbuiltin-sched.c.
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Noor Ahsan <[email protected]>Queued up in master-next for testing.
What's the upstream status for this patch?
I think you should pick same change we did for linux-imx; it is a backport from 3.4.
--
Otavio Salvador O.S. Systems
E-mail: [email protected] http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
Quoted 10 lines · Otavio Salvador
Quoted 8 lines · On Wed, Dec 19, 2012 at 5:31 PM, McClintock Matthew-B29882…
Quoted 7 lines · Matthew McClintock
Quoted 6 lines · Ahsan
From: Noor Ahsan <[email protected]>
* Perf build fails with GNU C library version 2.16. It give undefined reference for
RUSAGE_SELFand storage size of 'ru' inbuiltin-sched.c.
* Fixed issue by addingtime.handresource.hheaderfiles inbuiltin-sched.c.
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Noor Ahsan <[email protected]>Queued up in master-next for testing.
What's the upstream status for this patch?
I think you should pick same change we did for linux-imx; it is a backport from 3.4.
I saw that afterwards and asked for an updated patch from Noor on the other thread.
-M
OK. I will be sending this patch again. I'll use the same patch as I used for arm.
Noor
-----Original Message-----
From: McClintock Matthew-B29882 [mailto:[email protected]]
Sent: Thursday, December 20, 2012 12:36 AM
To: Otavio Salvador; Ahsan, Noor
Cc: McClintock Matthew-B29882; [email protected]
Subject: Re: [meta-freescale] [meta-fsl-ppc][PATCH] linux-qoriq-sdk: Add a patch to resolve undefined RUSAGE_SELF for perf.
Quoted 10 lines · Otavio Salvador
Quoted 8 lines · On Wed, Dec 19, 2012 at 5:31 PM, McClintock Matthew-B29882…
Quoted 7 lines · Matthew McClintock
Quoted 6 lines · Ahsan
From: Noor Ahsan <[email protected]>
* Perf build fails with GNU C library version 2.16. It give undefined reference for
RUSAGE_SELFand storage size of 'ru' inbuiltin-sched.c.
* Fixed issue by addingtime.handresource.hheaderfiles inbuiltin-sched.c.
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Noor Ahsan <[email protected]>Queued up in master-next for testing.
What's the upstream status for this patch?
I think you should pick same change we did for linux-imx; it is a backport from 3.4.
I saw that afterwards and asked for an updated patch from Noor on the other thread.
-M