kernel: add config fragment for lttng-modules prerequisites
A message that is not in the archive (sent off-list or not yet received): [email protected]
Trevor Woerner
AppliedQuoted 33 lines · Trevor Woerner via yocto-patches
The machines in this layer have no BSP description in yocto-kernel-cache and build from an in-tree defconfig via
KBUILD_DEFCONFIG, so the standard kernel type's configuration never reaches them. Neither the arm nor the arm64 defconfig enables what lttng-modules needs: kprobes is a hard compile failure, and without the tracing infrastructure the build silently produces no modules at all.Ship the missing subset as a fragment in the layer's own kmeta, so it resolves for any recipe here rather than only for ones that fetch the kernel cache.
AI-Generated: codex/claude-opus 5 (xhigh)
Signed-off-by Trevor Woerner <[email protected]>---
changes in v4:
- reword the fragment comment so no line opens with aCONFIG_symbol name;kconf_checkreads such a line as a malformed "is not set" entry and reports the fragment as badly formatted on every buildchanges in v3:
- move the fragment into the layer's own kmeta and reference it fromKERNEL_FEATURES, rather than adding a bare .cfg toSRC_URI, so it sits with the layer's other kernel metadata and can be named
- enableCONFIG_FTRACE_SYSCALLS, and justify the symbol set by what ktypes/standard already gives a cache-described BSP (features/kprobes, features/ftrace) rather than deriving it from first principles
- leaveCONFIG_KALLSYMS_ALLunset: ktypes/base sets it to n, so the lttng writeback probe is dropped everywhere and this layer should not diverge
- considered yocto-cfg-fragments (as meta-virtualization does) andCONFIG_ENABLE_DEFAULT_TRACERSas a lighter route to tracepoints; both were dropped in favour of matching the standard kernel type, which every other linux-yocto BSP already gets
Quoted 7 lines
--- recipes-kernel/linux/linux-rockchip.inc | 1 + .../rockchip-kmeta/bsp/rockchip/lttng.cfg | 16 ++++++++++++++++ .../rockchip-kmeta/bsp/rockchip/lttng.scc | 1 + 3 files changed, 18 insertions(+) create mode 100644 recipes-kernel/linux/linux-rockchip/rockchip-kmeta/bsp/rockchip/lttng.cfg create mode 100644 recipes-kernel/linux/linux-rockchip/rockchip-kmeta/bsp/rockchip/lttng.scc
Applied to meta-rockchip, master branch.
Quoted 55 lines
recipes-kernel/linux/linux-rockchip.inc +1
-0@@ -34,5 +34,6 @@ 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 = " bsp/rockchip/lttng.scc" KERNEL_FEATURES:append:rockchip:arm = " bsp/rockchip/remove-non-rockchip-arch-arm.scc" KERNEL_FEATURES:append:rockchip:aarch64 = " bsp/rockchip/remove-non-rockchip-arch-arm64.scc"recipes-kernel/linux/linux-rockchip/rockchip-kmeta/bsp/rockchip/lttng.cfg new file +16
-0@@ -0,0 +1,16 @@ +# Prerequisites for building lttng-modules. +# +# These symbols are what ktypes/standard gives every BSP that has a +# yocto-kernel-cache description, via features/kprobes and +# features/ftrace, trimmed to what lttng-modules uses: kprobes is a hard +# compile requirement (src/wrapper/kallsyms.c), and the tracing +# infrastructure is what it traces with - without it the build produces +# no modules at all rather than failing. +# +# KALLSYMS_ALL is deliberately absent: ktypes/base sets it to n, so the +# lttng "writeback" probe is dropped on every linux-yocto BSP and this +# layer has no reason to diverge. +CONFIG_KPROBES=y +CONFIG_FTRACE=y +CONFIG_FUNCTION_TRACER=y +CONFIG_FTRACE_SYSCALLS=yrecipes-kernel/linux/linux-rockchip/rockchip-kmeta/bsp/rockchip/lttng.scc new file +1
-0@@ -0,0 +1 @@ +kconf non-hardware lttng.cfgSignature · 11 lines
2.50.0.173.g8b6f19ccfc3a -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#5218): https://lists.yoctoproject.org/g/yocto-patches/message/5218 Mute This Topic: https://lists.yoctoproject.org/mt/122073729/900817 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/yocto-patches/leave/13168745/900817/63955952/xyzzy [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-