add kprobes for 32-bit kernels
PATCH 1/1 add kprobes for 32-bit kernels
While building the modules for linux-yocto for 32-bit machines, the following error occurs:
| probes/Kbuild:236: CONFIG_KALLSYMS_ALL is disabled, therefore probe "writeback" is disabled. Rebuild your kernel with this configuration option enabled in order to trace this subsystem. | wrapper/kallsyms.c:20:3: error: #error "LTTng-modules requires CONFIG_KPROBES on kernels >= 5.7.0" | 20 | # error "LTTng-modules requires CONFIG_KPROBES on kernels >= 5.7.0"
--- recipes-kernel/linux/linux-rockchip.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
recipes-kernel/linux/linux-rockchip.inc +4 -1
@@ -34,5 +34,8 @@ COMPATIBLE_MACHINE:soquartz = "soquartz" SRC_URI:append:rockchip = " file://rockchip-kmeta;type=kmeta;name=rockchip-kmeta;destsuffix=rockchip-kmeta" SRC_URI:append:nanopi-r4s = " file://realtek-r8169.cfg" -KERNEL_FEATURES:append:rockchip:arm = " bsp/rockchip/remove-non-rockchip-arch-arm.scc" +KERNEL_FEATURES:append:rockchip:arm = " \ + bsp/rockchip/remove-non-rockchip-arch-arm.scc \ + features/kprobes/kprobes.scc \ + " KERNEL_FEATURES:append:rockchip:aarch64 = " bsp/rockchip/remove-non-rockchip-arch-arm64.scc"
Signature · 1 line
2.51.0
Hi Trevor,
Quoted 17 lines · Trevor Woerner via lists.yoctoproject.org
While building the modules for linux-yocto for 32-bit machines, the following error occurs:
| probes/Kbuild:236: CONFIG_KALLSYMS_ALL is disabled, therefore probe "writeback" is disabled. Rebuild your kernel with this configuration option enabled in order to trace this subsystem. | wrapper/kallsyms.c:20:3: error: #error "LTTng-modules requires CONFIG_KPROBES on kernels >= 5.7.0" | 20 | # error "LTTng-modules requires CONFIG_KPROBES on kernels >= 5.7.0"Signed-off-by Trevor Woerner <[email protected]>--- recipes-kernel/linux/linux-rockchip.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)recipes-kernel/linux/linux-rockchip.inc +0
-0
recipes-kernel/linux/linux-rockchip.inc COMPATIBLE_MACHINE:soquartz = "soquartz" · line 39
Quoted 7 lines
recipes-kernel/linux/linux-rockchip.inc +3
-1@@ -34,5 +34,8 @@ COMPATIBLE_MACHINE:soquartz = "soquartz" SRC_URI:append:rockchip = " file://rockchip-kmeta;type=kmeta;name=rockchip-kmeta;destsuffix=rockchip-kmeta" SRC_URI:append:nanopi-r4s = " file://realtek-r8169.cfg" -KERNEL_FEATURES:append:rockchip:arm = " bsp/rockchip/remove-non-rockchip-arch-arm.scc" +KERNEL_FEATURES:append:rockchip:arm = " \ + bsp/rockchip/remove-non-rockchip-arch-arm.scc \ + features/kprobes/kprobes.scc \
This is coming from the yocto-kernel-cache as far as I could tell. It's only available if the recipe actually points to it and only linux-yocto recipes do that. linux-mainline and linux-stable from meta-linux-mainline which you've said in the past you're using sometimes do not support that from a cursory look.
What happens if there's a KERNEL_FEATURES that isn't found?
Maybe we should have this in some linux-yocto bbappend instead? Or import this fragment into meta-rockchip (the downside being we need to maintain this on our own then, but it's been updated only once, 8.5y ago so not too much risk for this one I guess.
Cheers,
Quentin
Quoted 41 lines · Quentin Schulz via lists.yoctoproject.org
Hi Trevor,
Quoted 4 lines · Trevor Woerner via lists.yoctoproject.org
While building the modules for linux-yocto for 32-bit machines, the following error occurs:
| probes/Kbuild:236:
CONFIG_KALLSYMS_ALLis disabled, thereforeprobe "writeback" is disabled. Rebuild your kernel with this configuration option enabled in order to trace this subsystem.
Quoted 1 line
|
wrapper/kallsyms.c:20:3: error: #error "LTTng-modules requires
CONFIG_KPROBESon kernels >= 5.7.0"Quoted 1 line
| 20 | # error "LTTng-modules requires
CONFIG_KPROBESonkernels >= 5.7.0"
Review
Quoted 7 lines
Signed-off-by Trevor Woerner <[email protected]>--- recipes-kernel/linux/linux-rockchip.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)(quoted diff) +0
-0b/recipes-kernel/linux/linux-rockchip.inc
recipes-kernel/linux/linux-rockchip.inc COMPATIBLE_MACHINE:soquartz = "soquartz" · line 34
Quoted 5 lines
index
6c62e849834c..4e67ff14f6e6100644recipes-kernel/linux/linux-rockchip.inc +0
-0@@ -34,5 +34,8 @@ COMPATIBLE_MACHINE:soquartz = "soquartz" SRC_URI:append:rockchip = "file://rockchip-kmeta;type=kmeta;name=rockchip-kmeta;destsuffix=rockchip-kmeta"
recipes-kernel/linux/linux-rockchip.inc COMPATIBLE_MACHINE:soquartz = "soquartz"
Quoted 3 lines
recipes-kernel/linux/linux-rockchip.inc +0
-1SRC_URI:append:nanopi-r4s = " file://realtek-r8169.cfg" -KERNEL_FEATURES:append:rockchip:arm = "bsp/rockchip/remove-non-rockchip-arch-arm.scc"
recipes-kernel/linux/linux-rockchip.inc COMPATIBLE_MACHINE:soquartz = "soquartz" · line 39
Quoted 3 lines
recipes-kernel/linux/linux-rockchip.inc +3
-0+KERNEL_FEATURES:append:rockchip:arm = " \ + bsp/rockchip/remove-non-rockchip-arch-arm.scc \ + features/kprobes/kprobes.scc \This is coming from the yocto-kernel-cache as far as I could tell. It's only available if the recipe actually points to it and only linux-yocto recipes do that. linux-mainline and linux-stable from meta-linux-mainline which you've said in the past you're using sometimes do not support that from a cursory look.
Quoted 7 lines
What happens if there's a
KERNEL_FEATURESthat isn't found?Maybe we should have this in some linux-yocto bbappend instead? Or import this fragment into meta-rockchip (the downside being we need to maintain this on our own then, but it's been updated only once, 8.5y ago so not too much risk for this one I guess.
or just do what meta-virtualization does. See the yocto-cfg-fragments recipe.
It makes the fragments available to anything using linux-yocto infrastructure,
but for whatever reason doesn't have meta on it's SRC_URI
Bruce
Quoted 18 lines
Cheers,
Quentin-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#3556):
https://lists.yoctoproject.org/g/yocto-patches/message/3556
Mute This Topic: https://lists.yoctoproject.org/mt/118517725/1050810
Group Owner: [email protected] Unsubscribe:
https://lists.yoctoproject.org/g/yocto-patches/leave/13171493/1050810/607820704/xyzzy
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II
Quoted 52 lines · Bruce Ashfield via lists.yoctoproject.org
Quoted 41 lines · Quentin Schulz via lists.yoctoproject.org
Hi Trevor,
Quoted 4 lines · Trevor Woerner via lists.yoctoproject.org
While building the modules for linux-yocto for 32-bit machines, the following error occurs:
| probes/Kbuild:236:
CONFIG_KALLSYMS_ALLis disabled, thereforeprobe "writeback" is disabled. Rebuild your kernel with this configuration option enabled in order to trace this subsystem.
Quoted 1 line
|
wrapper/kallsyms.c:20:3: error: #error "LTTng-modules requires
CONFIG_KPROBESon kernels >= 5.7.0"Quoted 1 line
| 20 | # error "LTTng-modules requires
CONFIG_KPROBESonkernels >= 5.7.0"
Review
Quoted 7 lines
Signed-off-by Trevor Woerner <[email protected]>--- recipes-kernel/linux/linux-rockchip.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)(quoted diff) +0
-0b/recipes-kernel/linux/linux-rockchip.inc
recipes-kernel/linux/linux-rockchip.inc COMPATIBLE_MACHINE:soquartz = "soquartz" · line 34
Quoted 5 lines
index
6c62e849834c..4e67ff14f6e6100644recipes-kernel/linux/linux-rockchip.inc +0
-0@@ -34,5 +34,8 @@ COMPATIBLE_MACHINE:soquartz = "soquartz" SRC_URI:append:rockchip = "file://rockchip-kmeta;type=kmeta;name=rockchip-kmeta;destsuffix=rockchip-kmeta"
recipes-kernel/linux/linux-rockchip.inc COMPATIBLE_MACHINE:soquartz = "soquartz"
Quoted 3 lines
recipes-kernel/linux/linux-rockchip.inc +0
-1SRC_URI:append:nanopi-r4s = " file://realtek-r8169.cfg" -KERNEL_FEATURES:append:rockchip:arm = "bsp/rockchip/remove-non-rockchip-arch-arm.scc"
recipes-kernel/linux/linux-rockchip.inc COMPATIBLE_MACHINE:soquartz = "soquartz" · line 39
Quoted 3 lines
recipes-kernel/linux/linux-rockchip.inc +3
-0+KERNEL_FEATURES:append:rockchip:arm = " \ + bsp/rockchip/remove-non-rockchip-arch-arm.scc \ + features/kprobes/kprobes.scc \This is coming from the yocto-kernel-cache as far as I could tell. It's only available if the recipe actually points to it and only linux-yocto recipes do that. linux-mainline and linux-stable from meta-linux-mainline which you've said in the past you're using sometimes do not support that from a cursory look.
Quoted 7 lines
What happens if there's a
KERNEL_FEATURESthat isn't found?Maybe we should have this in some linux-yocto bbappend instead? Or import this fragment into meta-rockchip (the downside being we need to maintain this on our own then, but it's been updated only once, 8.5y ago so not too much risk for this one I guess.
Quoted 5 lines
or just do what meta-virtualization does. See the yocto-cfg-fragments recipe.
It makes the fragments available to anything using linux-yocto infrastructure,
but for whatever reason doesn't have meta on it'sSRC_URI
I get the feeling this isn't a rockchip-specific issue necessarily. Are linux-yocto kernel builds for other 32-bit (probably Arm) machines seeing the same thing? Is this something I should be looking to solve more broadly?
Quoted 30 lines
Bruce
Quoted 9 lines
Cheers,
QuentinSignature · 12 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#3560): https://lists.yoctoproject.org/g/yocto-patches/message/3560 Mute This Topic: https://lists.yoctoproject.org/mt/118517725/900817 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/yocto-patches/leave/13168745/900817/63955952/xyzzy [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
Quoted 66 lines · Trevor Woerner via lists.yoctoproject.org
Quoted 1 line · Bruce Ashfield via lists.yoctoproject.org
On Thu, Mar 26, 2026 at 10:08 AM Quentin Schulz via
lists.yoctoproject.org
Quoted 10 lines
Quoted 8 lines · <[email protected]> wrote:
Hi Trevor,
Quoted 4 lines · Trevor Woerner via lists.yoctoproject.org
While building the modules for linux-yocto for 32-bit machines, the following error occurs:
| probes/Kbuild:236:
CONFIG_KALLSYMS_ALLis disabled, thereforeprobe "writeback" is disabled. Rebuild your kernel with this
configuration
Quoted 2 lines
Quoted 2 lines
option enabled in order to trace this subsystem.
Quoted 1 line
|
wrapper/kallsyms.c:20:3: error: #error "LTTng-modulesrequires
Quoted 9 lines
Quoted 9 lines
CONFIG_KPROBESon kernels >= 5.7.0"Quoted 1 line
| 20 | # error "LTTng-modules requires
CONFIG_KPROBESonkernels >= 5.7.0"
Quoted 6 lines
Signed-off-by Trevor Woerner <[email protected]>--- recipes-kernel/linux/linux-rockchip.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)Quoted 8 lines
Quoted 8 lines
Review
Quoted 1 line
(quoted diff) +0
-0b/recipes-kernel/linux/linux-rockchip.inc
recipes-kernel/linux/linux-rockchip.inc COMPATIBLE_MACHINE:soquartz = "soquartz" · line 34
Quoted 5 lines
index
6c62e849834c..4e67ff14f6e6100644recipes-kernel/linux/linux-rockchip.inc +0
-0@@ -34,5 +34,8 @@ COMPATIBLE_MACHINE:soquartz = "soquartz" SRC_URI:append:rockchip = "file://rockchip-kmeta;type=kmeta;name=rockchip-kmeta;destsuffix=rockchip-kmeta"
Quoted 4 lines
Quoted 4 lines
recipes-kernel/linux/linux-rockchip.inc COMPATIBLE_MACHINE:soquartz = "soquartz"
Quoted 3 lines
recipes-kernel/linux/linux-rockchip.inc +0
-1SRC_URI:append:nanopi-r4s = " file://realtek-r8169.cfg" -KERNEL_FEATURES:append:rockchip:arm = "bsp/rockchip/remove-non-rockchip-arch-arm.scc"
Quoted 8 lines
Quoted 8 lines
recipes-kernel/linux/linux-rockchip.inc COMPATIBLE_MACHINE:soquartz = "soquartz" · line 39
Quoted 3 lines
recipes-kernel/linux/linux-rockchip.inc +3
-0+KERNEL_FEATURES:append:rockchip:arm = " \ + bsp/rockchip/remove-non-rockchip-arch-arm.scc \ + features/kprobes/kprobes.scc \This is coming from the yocto-kernel-cache as far as I could tell. It's only available if the recipe actually points to it and only linux-yocto recipes do that. linux-mainline and linux-stable from meta-linux-mainline which you've said in the past you're using
sometimes
Quoted 7 lines
Quoted 7 lines
do not support that from a cursory look.
What happens if there's a
KERNEL_FEATURESthat isn't found?Maybe we should have this in some linux-yocto bbappend instead? Or import this fragment into meta-rockchip (the downside being we need to maintain this on our own then, but it's been updated only once, 8.5y
ago
Quoted 8 lines
Quoted 2 lines
so not too much risk for this one I guess.
or just do what meta-virtualization does. See the yocto-cfg-fragments recipe.
It makes the fragments available to anything using linux-yocto infrastructure,
but for whatever reason doesn't have meta on it'sSRC_URI
Quoted 6 lines
I get the feeling this isn't a rockchip-specific issue necessarily. Are linux-yocto kernel builds for other 32-bit (probably Arm) machines seeing the same thing? Is this something I should be looking to solve more broadly?
The standard kernel type always includes kprobes, so they don't have this issue.
Bruce
Quoted 40 lines
Quoted 15 lines
Bruce
Quoted 9 lines
Cheers,
QuentinQuoted 2 lines
--
- Thou shalt not follow the NULL pointer, for chaos and madness awaitthee
Quoted 7 lines
at its end
- "Use the force Harry" - Gandalf, Star Trek II-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#3561):
https://lists.yoctoproject.org/g/yocto-patches/message/3561
Mute This Topic: https://lists.yoctoproject.org/mt/118517725/1050810
Group Owner: [email protected] Unsubscribe:
https://lists.yoctoproject.org/g/yocto-patches/leave/13171493/1050810/607820704/xyzzy
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II