mbox series

[bpf-next,0/7] bpf: drop libbpf from bpf preload.

Message ID 20220131220528.98088-1-alexei.starovoitov@gmail.com (mailing list archive)
Headers show
Series bpf: drop libbpf from bpf preload. | expand

Message

Alexei Starovoitov Jan. 31, 2022, 10:05 p.m. UTC
From: Alexei Starovoitov <ast@kernel.org>

CO-RE in the kernel support allows bpf preload to switch to light skeleton
and remove libbpf dependency.
This reduces the size of bpf_preload_umd from 300kbyte to 19kbyte and
eventually will make "kernel skeleton" possible.

Alexei Starovoitov (7):
  libbpf: Add support for bpf iter in light skeleton.
  libbpf: Open code low level bpf commands.
  libbpf: Open code raw_tp_open and link_create commands.
  bpf: Remove unnecessary setrlimit from bpf preload.
  bpf: Convert bpf preload to light skeleton.
  bpf: Open code obj_get_info_by_fd in bpf preload.
  bpf: Drop libbpf, libelf, libz dependency from bpf preload.

 kernel/bpf/preload/Makefile                   |  28 +-
 kernel/bpf/preload/iterators/Makefile         |   6 +-
 kernel/bpf/preload/iterators/iterators.c      |  28 +-
 .../bpf/preload/iterators/iterators.lskel.h   | 428 ++++++++++++++++++
 kernel/bpf/preload/iterators/iterators.skel.h | 412 -----------------
 tools/bpf/bpftool/gen.c                       |   7 +-
 tools/lib/bpf/skel_internal.h                 |  70 ++-
 7 files changed, 527 insertions(+), 452 deletions(-)
 create mode 100644 kernel/bpf/preload/iterators/iterators.lskel.h
 delete mode 100644 kernel/bpf/preload/iterators/iterators.skel.h

Comments

patchwork-bot+netdevbpf@kernel.org Feb. 1, 2022, 11 p.m. UTC | #1
Hello:

This series was applied to bpf/bpf-next.git (master)
by Daniel Borkmann <daniel@iogearbox.net>:

On Mon, 31 Jan 2022 14:05:21 -0800 you wrote:
> From: Alexei Starovoitov <ast@kernel.org>
> 
> CO-RE in the kernel support allows bpf preload to switch to light skeleton
> and remove libbpf dependency.
> This reduces the size of bpf_preload_umd from 300kbyte to 19kbyte and
> eventually will make "kernel skeleton" possible.
> 
> [...]

Here is the summary with links:
  - [bpf-next,1/7] libbpf: Add support for bpf iter in light skeleton.
    https://git.kernel.org/bpf/bpf-next/c/42d1d53fedc9
  - [bpf-next,2/7] libbpf: Open code low level bpf commands.
    https://git.kernel.org/bpf/bpf-next/c/e981f41fd029
  - [bpf-next,3/7] libbpf: Open code raw_tp_open and link_create commands.
    https://git.kernel.org/bpf/bpf-next/c/c69f94a33d12
  - [bpf-next,4/7] bpf: Remove unnecessary setrlimit from bpf preload.
    https://git.kernel.org/bpf/bpf-next/c/1ddbddd70651
  - [bpf-next,5/7] bpf: Convert bpf preload to light skeleton.
    https://git.kernel.org/bpf/bpf-next/c/79b203926d18
  - [bpf-next,6/7] bpf: Open code obj_get_info_by_fd in bpf preload.
    https://git.kernel.org/bpf/bpf-next/c/18ef5dac934a
  - [bpf-next,7/7] bpf: Drop libbpf, libelf, libz dependency from bpf preload.
    https://git.kernel.org/bpf/bpf-next/c/e96f2d64c812

You are awesome, thank you!