linux-yocto/3.4: make uprobes select perf events
cover linux-yocto/3.4: make uprobes select perf events
Richard/Saul,
This update addresses YOCTO #3111, which is a build a failure on the mpc8315 after uprobes was enabled.
We ended up fixing this twice (but both are good fixes), there's a kernel Kconfig fix from me and a kernel configuration fix by TomZ. Both fix the problem for the board showing the build error and have no impact on the other (already building) boards.
Cheers,
Bruce
The following changes since commit 1d5e637e32e10d7dabd19fbff9f4b25cc280daa2:
linux-yocto: virtio and KVM guest configuration (2012-09-13 15:04:32 -0400)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib zedd/uprobes
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=zedd/uprobes
Bruce Ashfield (1):
linux-yocto/3.4: make uprobes select perf events
meta/recipes-kernel/linux/linux-yocto-rt_3.4.bb | 6 +++--- meta/recipes-kernel/linux/linux-yocto_3.4.bb | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-)
Signature · 1 line
1.7.5.4
PATCH 1/1 linux-yocto/3.4: make uprobes select perf events
uprobes depends on functionality provided by perf events. After uprobes was enabled in the standard kernel the mpc8315 board showed link errors due to missing perf event functions.
This problem isn't isolated to the board or powerpc arch, but all other boards have PERF_EVENTS enabled. To fix this, we make UPROBE_EVENT select PERF_EVENTS, and any new boards will be protected from the same failure.
We also update the configuration fragments since CONFIG_UPROBES depends on CONFIG_PERF_EVENTS being set, so PERF_EVENTS needs to be added whenever uprobes are enabled.
[YOCTO #3111]
--- meta/recipes-kernel/linux/linux-yocto-rt_3.4.bb | 6 +++--- meta/recipes-kernel/linux/linux-yocto_3.4.bb | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-)
meta/recipes-kernel/linux/linux-yocto-rt_3.4.bb +3 -3
@@ -8,9 +8,9 @@ LINUX_KERNEL_TYPE = "preempt-rt" KMETA = "meta" -SRCREV_machine ?= "a35693b1287c0e50cdca33a1b95af0ff48b43cd0" -SRCREV_machine_qemuppc ?= "85a1190530cb5749f5f831670976b163438dc301" -SRCREV_meta ?= "79947f1eb9f695c374ba63672f94deaa1de75561" +SRCREV_machine ?= "dcecefa43e05f5450886648a93e2fda2ec35e2dc" +SRCREV_machine_qemuppc ?= "5e8709c4777f07a12b0a05a22f0864f552ef9449" +SRCREV_meta ?= "7c50e572635d356f0b66d9ab90823f127f835744" PR = "${INC_PR}.0" PV = "${LINUX_VERSION}+git${SRCPV}"
meta/recipes-kernel/linux/linux-yocto_3.4.bb +7 -7
@@ -3,13 +3,13 @@ require recipes-kernel/linux/linux-yocto.inc KBRANCH_DEFAULT = "standard/base" KBRANCH = "${KBRANCH_DEFAULT}" -SRCREV_machine_qemuarm ?= "b15e7b1e9b58b9863bd87778775f86cd8d8880ea" -SRCREV_machine_qemumips ?= "8d5b98f263b5119af2dc30223f311be17173bab9" -SRCREV_machine_qemuppc ?= "b9a720ca38d298ed457f37d099c85771f9164b19" -SRCREV_machine_qemux86 ?= "46d8c757b3be1953f30d6745505d24436e2d6844" -SRCREV_machine_qemux86-64 ?= "46d8c757b3be1953f30d6745505d24436e2d6844" -SRCREV_machine ?= "46d8c757b3be1953f30d6745505d24436e2d6844" -SRCREV_meta ?= "79947f1eb9f695c374ba63672f94deaa1de75561" +SRCREV_machine_qemuarm ?= "679978b4fd1ef8cfea97d4ee4b4cd7c51bc62ee2" +SRCREV_machine_qemumips ?= "9c7810609ff37a77e8d39680f98f1baefee18a80" +SRCREV_machine_qemuppc ?= "cf4bad14983753ad4b592c40fb36466b202b24a4" +SRCREV_machine_qemux86 ?= "59c3ff750831338d05ab67d5efd7fc101c451aff" +SRCREV_machine_qemux86-64 ?= "59c3ff750831338d05ab67d5efd7fc101c451aff" +SRCREV_machine ?= "59c3ff750831338d05ab67d5efd7fc101c451aff" +SRCREV_meta ?= "7c50e572635d356f0b66d9ab90823f127f835744" SRC_URI = "git://git.yoctoproject.org/linux-yocto-3.4.git;protocol=git;nocheckout=1;branch=${KBRANCH},meta;name=machine,meta"
Signature · 1 line
1.7.5.4
Richard Purdie
AppliedQuoted 13 lines · Bruce Ashfield
uprobes depends on functionality provided by perf events. After uprobes was enabled in the standard kernel the mpc8315 board showed link errors due to missing perf event functions.
This problem isn't isolated to the board or powerpc arch, but all other boards have
PERF_EVENTSenabled. To fix this, we makeUPROBE_EVENTselectPERF_EVENTS, and any new boards will be protected from the same failure.We also update the configuration fragments since
CONFIG_UPROBESdepends onCONFIG_PERF_EVENTSbeing set, soPERF_EVENTSneeds to be added whenever uprobes are enabled.
Quoted 8 lines
[YOCTO #3111]
Signed-off-by Tom Zanussi <[email protected]>Signed-off-by Bruce Ashfield <[email protected]>--- meta/recipes-kernel/linux/linux-yocto-rt_3.4.bb | 6 +++--- meta/recipes-kernel/linux/linux-yocto_3.4.bb | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-)
Merged to master, thanks.
Richard