All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-rockchip][PATCH] add kprobes for 32-bit kernels
@ 2026-03-26 13:06 Trevor Woerner
  2026-03-26 14:08 ` [yocto-patches] " Quentin Schulz
  0 siblings, 1 reply; 5+ messages in thread
From: Trevor Woerner @ 2026-03-26 13:06 UTC (permalink / raw)
  To: yocto-patches

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 <twoerner@gmail.com>
---
 recipes-kernel/linux/linux-rockchip.inc | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/recipes-kernel/linux/linux-rockchip.inc b/recipes-kernel/linux/linux-rockchip.inc
index 6c62e849834c..4e67ff14f6e6 100644
--- a/recipes-kernel/linux/linux-rockchip.inc
+++ b/recipes-kernel/linux/linux-rockchip.inc
@@ -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"
-- 
2.51.0



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [yocto-patches] [meta-rockchip][PATCH] add kprobes for 32-bit kernels
  2026-03-26 13:06 [meta-rockchip][PATCH] add kprobes for 32-bit kernels Trevor Woerner
@ 2026-03-26 14:08 ` Quentin Schulz
  2026-03-26 20:08   ` Bruce Ashfield
  0 siblings, 1 reply; 5+ messages in thread
From: Quentin Schulz @ 2026-03-26 14:08 UTC (permalink / raw)
  To: yocto-patches

Hi Trevor,

On 3/26/26 2:06 PM, Trevor Woerner via lists.yoctoproject.org wrote:
> 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 <twoerner@gmail.com>
> ---
>   recipes-kernel/linux/linux-rockchip.inc | 5 ++++-
>   1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/recipes-kernel/linux/linux-rockchip.inc b/recipes-kernel/linux/linux-rockchip.inc
> index 6c62e849834c..4e67ff14f6e6 100644
> --- a/recipes-kernel/linux/linux-rockchip.inc
> +++ b/recipes-kernel/linux/linux-rockchip.inc
> @@ -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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [yocto-patches] [meta-rockchip][PATCH] add kprobes for 32-bit kernels
  2026-03-26 14:08 ` [yocto-patches] " Quentin Schulz
@ 2026-03-26 20:08   ` Bruce Ashfield
  2026-03-26 23:35     ` Trevor Woerner
  0 siblings, 1 reply; 5+ messages in thread
From: Bruce Ashfield @ 2026-03-26 20:08 UTC (permalink / raw)
  To: yocto-patches

[-- Attachment #1: Type: text/plain, Size: 3232 bytes --]

On Thu, Mar 26, 2026 at 10:08 AM Quentin Schulz via lists.yoctoproject.org
<quentin.schulz=cherry.de@lists.yoctoproject.org> wrote:

> Hi Trevor,
>
> On 3/26/26 2:06 PM, Trevor Woerner via lists.yoctoproject.org wrote:
> > 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 <twoerner@gmail.com>
> > ---
> >   recipes-kernel/linux/linux-rockchip.inc | 5 ++++-
> >   1 file changed, 4 insertions(+), 1 deletion(-)
> >
> > diff --git a/recipes-kernel/linux/linux-rockchip.inc
> b/recipes-kernel/linux/linux-rockchip.inc
> > index 6c62e849834c..4e67ff14f6e6 100644
> > --- a/recipes-kernel/linux/linux-rockchip.inc
> > +++ b/recipes-kernel/linux/linux-rockchip.inc
> > @@ -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.
>

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



>
> 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: yocto-patches+owner@lists.yoctoproject.org
> Unsubscribe:
> https://lists.yoctoproject.org/g/yocto-patches/leave/13171493/1050810/607820704/xyzzy
> [bruce.ashfield@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
>

-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end
- "Use the force Harry" - Gandalf, Star Trek II

[-- Attachment #2: Type: text/html, Size: 5194 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [yocto-patches] [meta-rockchip][PATCH] add kprobes for 32-bit kernels
  2026-03-26 20:08   ` Bruce Ashfield
@ 2026-03-26 23:35     ` Trevor Woerner
  2026-03-27 17:06       ` Bruce Ashfield
  0 siblings, 1 reply; 5+ messages in thread
From: Trevor Woerner @ 2026-03-26 23:35 UTC (permalink / raw)
  To: yocto-patches

On Thu 2026-03-26 @ 04:08:16 PM, Bruce Ashfield via lists.yoctoproject.org wrote:
> On Thu, Mar 26, 2026 at 10:08 AM Quentin Schulz via lists.yoctoproject.org
> <quentin.schulz=cherry.de@lists.yoctoproject.org> wrote:
> 
> > Hi Trevor,
> >
> > On 3/26/26 2:06 PM, Trevor Woerner via lists.yoctoproject.org wrote:
> > > 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 <twoerner@gmail.com>
> > > ---
> > >   recipes-kernel/linux/linux-rockchip.inc | 5 ++++-
> > >   1 file changed, 4 insertions(+), 1 deletion(-)
> > >
> > > diff --git a/recipes-kernel/linux/linux-rockchip.inc
> > b/recipes-kernel/linux/linux-rockchip.inc
> > > index 6c62e849834c..4e67ff14f6e6 100644
> > > --- a/recipes-kernel/linux/linux-rockchip.inc
> > > +++ b/recipes-kernel/linux/linux-rockchip.inc
> > > @@ -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.
> >
> 
> 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

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?

> 
> Bruce
> 
> 
> 
> >
> > Cheers,
> > Quentin
> >
> >
> > 
> >
> >
> >
> 
> -- 
> - 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: yocto-patches+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto-patches/leave/13168745/900817/63955952/xyzzy [twoerner@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
> 
> 


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [yocto-patches] [meta-rockchip][PATCH] add kprobes for 32-bit kernels
  2026-03-26 23:35     ` Trevor Woerner
@ 2026-03-27 17:06       ` Bruce Ashfield
  0 siblings, 0 replies; 5+ messages in thread
From: Bruce Ashfield @ 2026-03-27 17:06 UTC (permalink / raw)
  To: yocto-patches

[-- Attachment #1: Type: text/plain, Size: 4297 bytes --]

On Thu, Mar 26, 2026 at 7:35 PM Trevor Woerner via lists.yoctoproject.org
<twoerner=gmail.com@lists.yoctoproject.org> wrote:

> On Thu 2026-03-26 @ 04:08:16 PM, Bruce Ashfield via lists.yoctoproject.org
> wrote:
> > On Thu, Mar 26, 2026 at 10:08 AM Quentin Schulz via
> lists.yoctoproject.org
> > <quentin.schulz=cherry.de@lists.yoctoproject.org> wrote:
> >
> > > Hi Trevor,
> > >
> > > On 3/26/26 2:06 PM, Trevor Woerner via lists.yoctoproject.org wrote:
> > > > 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 <twoerner@gmail.com>
> > > > ---
> > > >   recipes-kernel/linux/linux-rockchip.inc | 5 ++++-
> > > >   1 file changed, 4 insertions(+), 1 deletion(-)
> > > >
> > > > diff --git a/recipes-kernel/linux/linux-rockchip.inc
> > > b/recipes-kernel/linux/linux-rockchip.inc
> > > > index 6c62e849834c..4e67ff14f6e6 100644
> > > > --- a/recipes-kernel/linux/linux-rockchip.inc
> > > > +++ b/recipes-kernel/linux/linux-rockchip.inc
> > > > @@ -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.
> > >
> >
> > 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
>
> 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



> >
> > Bruce
> >
> >
> >
> > >
> > > Cheers,
> > > Quentin
> > >
> > >
> > >
> > >
> > >
> > >
> >
> > --
> > - 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 (#3561):
> https://lists.yoctoproject.org/g/yocto-patches/message/3561
> Mute This Topic: https://lists.yoctoproject.org/mt/118517725/1050810
> Group Owner: yocto-patches+owner@lists.yoctoproject.org
> Unsubscribe:
> https://lists.yoctoproject.org/g/yocto-patches/leave/13171493/1050810/607820704/xyzzy
> [bruce.ashfield@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
>

-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end
- "Use the force Harry" - Gandalf, Star Trek II

[-- Attachment #2: Type: text/html, Size: 6953 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-03-27 17:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-26 13:06 [meta-rockchip][PATCH] add kprobes for 32-bit kernels Trevor Woerner
2026-03-26 14:08 ` [yocto-patches] " Quentin Schulz
2026-03-26 20:08   ` Bruce Ashfield
2026-03-26 23:35     ` Trevor Woerner
2026-03-27 17:06       ` Bruce Ashfield

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.