[PATCH bpf-next 4/8] libbpf: move feature detection code into its own file

John Fastabend john.fastabend at gmail.com
Mon Dec 11 21:41:48 UTC 2023


Andrii Nakryiko wrote:
> It's quite a lot of well isolated code, so it seems like a good
> candidate to move it out of libbpf.c to reduce its size.
> 
> Signed-off-by: Andrii Nakryiko <andrii at kernel.org>
> ---
>  tools/lib/bpf/Build             |   2 +-
>  tools/lib/bpf/elf.c             |   2 -
>  tools/lib/bpf/features.c        | 473 ++++++++++++++++++++++++++++++++
>  tools/lib/bpf/libbpf.c          | 463 +------------------------------
>  tools/lib/bpf/libbpf_internal.h |   2 +
>  tools/lib/bpf/str_error.h       |   3 +
>  6 files changed, 480 insertions(+), 465 deletions(-)
>  create mode 100644 tools/lib/bpf/features.c

Acked-by: John Fastabend <john.fastabend at gmail.com>



More information about the Linux-security-module-archive mailing list