linux-mainline_3.2: apply patch to fix perf tools build failure
PATCH 5/5 linux-mainline_3.2: apply patch to fix perf tools build failure
See http://marc.info/?l=linux-kernel&m=133352922831735.
Signed-off-by Yasir-Khan <[email protected]>
--- .../fix_getrusage_for_perf.patch | 33 ++++++++++++++++++++ recipes-kernel/linux/linux-mainline_3.2.bb | 1 + 2 files changed, 34 insertions(+) create mode 100644 recipes-kernel/linux/linux-mainline-3.2/fix_getrusage_for_perf.patch
recipes-kernel/linux/linux-mainline-3.2/fix_getrusage_for_perf.patch new file +33 -0
@@ -0,0 +1,33 @@ +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 size of ‘ru’ isn’t known builtin-sched.c:403:2: error: implicit declaration of function ‘getrusage’ [-Werror=implicit-function-declaration] + [...] + + 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]> + +Upstream-Status: Backport [3.4] + +diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c +index fb8b5f8..1cad3af 100644 +--- a/tools/perf/builtin-sched.c ++++ b/tools/perf/builtin-sched.c +@@ -17,6 +17,7 @@ + #include "util/debug.h" + + #include <sys/prctl.h> ++#include <sys/resource.h> + + #include <semaphore.h> + #include <pthread.h>
recipes-kernel/linux/linux-mainline_3.2.bb +1 -0
@@ -94,6 +94,7 @@ SRC_URI += "git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.gi file://defconfig \ file://0003-ARM-7668-1-fix-memset-related-crashes-caused-by-rece.patch \ file://0004-ARM-7670-1-fix-the-memset-fix.patch \ + file://fix_getrusage_for_perf.patch \ " SRC_URI_append_beagleboard = " file://logo_linux_clut224.ppm \
Signature · 1 line
1.7.9.5