[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250124144411.13468-1-chen.dylane@gmail.com>
Date: Fri, 24 Jan 2025 22:44:08 +0800
From: Tao Chen <chen.dylane@...il.com>
To: ast@...nel.org,
daniel@...earbox.net,
andrii@...nel.org,
eddyz87@...il.com,
haoluo@...gle.com,
jolsa@...nel.org,
qmo@...nel.org
Cc: bpf@...r.kernel.org,
linux-kernel@...r.kernel.org,
chen.dylane@...il.com
Subject: [PATCH bpf-next v3 0/3] Add prog_kfunc feature probe
More and more kfunc functions are being added to the kernel.
Different prog types have different restrictions when using kfunc.
Therefore, prog_kfunc probe is added to check whether it is supported,
and the use of this api will be added to bpftool later.
Change list:
- v2 -> v3:
- rename parameter off with btf_fd
- extract the common part for libbpf_probe_bpf_{helper,kfunc}
- v2
https://lore.kernel.org/bpf/20250123170555.291896-1-chen.dylane@gmail.com
- v1 -> v2:
- check unsupported prog type like probe_bpf_helper
- add off parameter for module btf
- check verifier info when kfunc id invalid
- v1
https://lore.kernel.org/bpf/20250122171359.232791-1-chen.dylane@gmail.com
Tao Chen (3):
libbpf: Refactor libbpf_probe_bpf_helper
libbpf: Add libbpf_probe_bpf_kfunc API
selftests/bpf: Add libbpf_probe_bpf_kfunc API selftests
tools/lib/bpf/libbpf.h | 17 ++++-
tools/lib/bpf/libbpf.map | 1 +
tools/lib/bpf/libbpf_probes.c | 68 +++++++++++++++----
.../selftests/bpf/prog_tests/libbpf_probes.c | 35 ++++++++++
4 files changed, 108 insertions(+), 13 deletions(-)
--
2.43.0
Powered by blists - more mailing lists