From ae4bfe8b93f8d29e7b7973f09190ac45bd0e9a6e Mon Sep 17 00:00:00 2001 From: Robin Christ Date: Mon, 27 Apr 2026 13:37:18 +0200 Subject: linux-kernel: T8496: Add kernel config needed for PWRU PWRU (https://github.com/cilium/pwru) is a very useful tool to debug complex networking issues on Linux, as it allows you to trace how packets travel through the kernel functions --- .../package-build/linux-kernel/config/30-pwru.config | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 scripts/package-build/linux-kernel/config/30-pwru.config (limited to 'scripts/package-build/linux-kernel') diff --git a/scripts/package-build/linux-kernel/config/30-pwru.config b/scripts/package-build/linux-kernel/config/30-pwru.config new file mode 100644 index 00000000..87e20fd5 --- /dev/null +++ b/scripts/package-build/linux-kernel/config/30-pwru.config @@ -0,0 +1,20 @@ +# Prerequisites for the PWRU (https://github.com/cilium/pwru) flags + +# Explicitly need to disable / remove this value from defconfig +# "... is not set" will remove from the config and not throw an error compared to +# "... = n" +# CONFIG_DEBUG_INFO_NONE is not set + +# Explicitly need to enable debug info +CONFIG_DEBUG_INFO=y +# let the toolchain decide DWARF4 vs DWARF5 +CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y + +# PWRU flags copied directly from PWRU readme +CONFIG_DEBUG_INFO_BTF=y +CONFIG_KPROBES=y +CONFIG_PERF_EVENTS=y +CONFIG_BPF=y +CONFIG_BPF_SYSCALL=y +CONFIG_FUNCTION_TRACER=y +CONFIG_FPROBE=y -- cgit v1.2.3