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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Alexei Starovoitov <ast@xxxxxxxxxx>

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

-- 
2.30.2




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux