[PATCH v2 00/11] BPF events and Type Format support

Stijn Tintel stijn at linux-ipv6.be
Sun Apr 3 09:14:42 PDT 2022


This series adds support for BPF events, and BPF Type Format [1]. It
supersedes [2].

BPF events can be used to send data to userspace for post-processing or
logging. Building the kernel with BTF support is required to run BPF
CO-RE applications.

Some fixes are required to make this possible, and it will not be
possible to enable BTF when building on macOS, due to incompatibilities.

Also see Github pull requests [3] and [4].

[1] https://www.kernel.org/doc/html/latest/bpf/btf.html
[2] http://lists.openwrt.org/pipermail/openwrt-devel/2022-February/038114.html
[2] https://github.com/openwrt/openwrt/pull/3855
[3] https://github.com/openwrt/openwrt/pull/9362

Stijn Tintel (8):
  elfutils: move host build to tools
  bpf-headers: drop HOST_LOADLIBES
  build: drop HOST_LOADLIBES
  build: use KBUILD_HOSTLDFLAGS
  kernel: backport build fix for tools/resolve_btfids
  layerscape/armv8_64b: enable DEBUG_INFO_REDUCED
  kernel: add DEBUG_INFO_REDUCED config option
  kernel: add KERNEL_BPF_EVENTS config option

Tony Ambardar (3):
  tools/dwarves: add host package
  build: add option KERNEL_DEBUG_INFO_BTF
  config: limit CONFIG_DEBUG_INFO to top-level generic configs

 config/Config-kernel.in                       | 40 +++++++++++++-
 include/kernel-build.mk                       |  1 -
 include/kernel.mk                             |  3 +-
 package/kernel/bpf-headers/Makefile           |  1 -
 package/libs/elfutils/Makefile                |  4 --
 target/linux/at91/sam9x/config-default        |  1 -
 target/linux/at91/sama7/config-default        |  1 -
 target/linux/bcm27xx/bcm2708/config-5.10      |  1 -
 target/linux/bcm27xx/bcm2709/config-5.10      |  1 -
 target/linux/bcm27xx/bcm2710/config-5.10      |  1 -
 target/linux/bcm27xx/bcm2711/config-5.10      |  1 -
 target/linux/bcm53xx/config-5.10              |  1 -
 target/linux/bcm53xx/config-5.15              |  1 -
 target/linux/bmips/config-5.10                |  1 -
 ...resolve_btfids-Build-with-host-flags.patch | 54 +++++++++++++++++++
 ...resolve_btfids-Build-with-host-flags.patch | 54 +++++++++++++++++++
 target/linux/generic/config-5.10              |  1 -
 target/linux/generic/config-5.15              |  1 -
 target/linux/layerscape/armv8_64b/config-5.10 |  2 -
 target/linux/mediatek/mt7623/config-5.10      |  1 -
 target/linux/mediatek/mt7623/config-5.15      |  1 -
 target/linux/mvebu/config-5.10                |  1 -
 target/linux/omap/config-5.10                 |  1 -
 target/linux/qoriq/config-5.10                |  2 -
 target/linux/realtek/rtl838x/config-5.10      |  1 -
 target/linux/realtek/rtl839x/config-5.10      |  1 -
 target/linux/realtek/rtl930x/config-5.10      |  1 -
 target/linux/realtek/rtl931x/config-5.10      |  1 -
 toolchain/Config.in                           |  8 +++
 tools/Makefile                                |  5 ++
 tools/dwarves/Makefile                        | 35 ++++++++++++
 tools/elfutils/Makefile                       | 32 +++++++++++
 32 files changed, 228 insertions(+), 32 deletions(-)
 create mode 100644 target/linux/generic/backport-5.10/200-v5.18-tools-resolve_btfids-Build-with-host-flags.patch
 create mode 100644 target/linux/generic/backport-5.15/200-v5.18-tools-resolve_btfids-Build-with-host-flags.patch
 create mode 100644 tools/dwarves/Makefile
 create mode 100644 tools/elfutils/Makefile

-- 
2.35.1




More information about the openwrt-devel mailing list