9 Commits
Author SHA1 Message Date
QiuSimons 17742cd51e fix: support Python 3.7 on the build host vmlinux-btf_r10_openwrt-25.12.6_20261204_17742cd 2026-12-04 16:05:51 +08:00
QiuSimons 410ada4598 feat: expand BTF coverage with declarative header probes vmlinux-btf_r10_openwrt-25.12.6_20261204_410ada4 2026-12-04 15:42:39 +08:00
QiuSimons b41770520c build: trigger only on source changes and set default major to 25 2026-10-27 14:35:56 +08:00
QiuSimons 4585b7c38a style: add trailing newlines to C stubs and format Makefile spacing vmlinux-btf_r9_openwrt-24.10.8_25.12.6_20261020_4585b7c 2026-10-20 18:22:20 +08:00
QiuSimons d138b3f441 fix(btf): guard BTF_KEEP(netdev_rx_queue) inside __has_include block
struct netdev_rx_queue was referenced unconditionally outside its
#if __has_include(<net/netdev_rx_queue.h>) guard, causing compilation
failure on kernels where that header does not exist (present since
Linux 5.17; not available in some OpenWrt 6.6 SDK environments).
2026-10-20 15:25:14 +08:00
QiuSimons 7b72f6c24d ci: filter non-vmlinux artifacts and include OpenWrt versions in release title 2026-10-20 15:19:38 +08:00
QiuSimons 707ceada49 vmlinux-btf: rework BTF generation using prepared kernel headers
Replace the full shadow kernel build with a lightweight stub compilation
approach against the target's already-prepared kernel headers:

- Add multi-tier C stub units (shadow_btf_core.c, shadow_btf_modules.c,
  shadow_btf_private.c) that include key kernel headers to capture struct
  layouts with exact fidelity, without modifying or rebuilding the host kernel
- Use pahole on the resulting stub object to produce a detached BTF blob
- Simplify Makefile: drop PKG_SOURCE/PKG_HASH, remove shadow kernel patches
  and kernel download steps; build is now fast, deterministic, and SDK-native
- Add multi-arch GitHub Actions CI workflow building against OpenWrt 24 and 25
  SDKs across aarch64_generic, cortex-a53/a72/a76, and x86_64
- Add pahole binary detection with multi-path fallback and version verification
- Add fallback objcopy path for older pahole versions lacking --btf_encode_detached
2026-10-20 15:19:38 +08:00
QiuSimons 415093abbe vmlinux-btf: initial implementation with full shadow kernel build approach
Add Makefile and README for vmlinux-btf package, which supplies kernel BTF
information to enable CO-RE eBPF compatibility on OpenWrt without rebuilding
the kernel. Uses a full shadow kernel build: downloads matching upstream Linux
source, applies OpenWrt patches, copies target kernel .config, enables BTF
debug info flags, compiles vmlinux, and extracts a detached BTF blob via
pahole. Installs to /usr/lib/debug/boot/vmlinux on the target device.
2026-10-20 15:19:38 +08:00
QiuSimons f0b1553317 Initial commit 2026-03-08 17:50:33 +08:00