[PATCH bpf-next 0/2] libbpf: allow users to set kprobe/uprobe attach mode

From: menglong8 . dong
Date: Thu Feb 02 2023 - 22:18:46 EST


From: Menglong Dong <imagedong@xxxxxxxxxxx>

By default, libbpf will attach the kprobe/uprobe eBPF program in the
latest mode that supported by kernel. In this series, we add the support
to let users manually attach kprobe/uprobe in legacy or perf mode in the
1th patch.

And in the 2th patch, we add the selftests for it.

*** BLURB HERE ***

Menglong Dong (2):
libbpf: add support to set kprobe/uprobe attach mode
selftests/bpf: add test for legacy/perf kprobe/uprobe attach mode

tools/lib/bpf/libbpf.c | 30 ++++++++-
tools/lib/bpf/libbpf.h | 19 ++++++
.../selftests/bpf/prog_tests/attach_probe.c | 61 ++++++++++++++++++-
.../selftests/bpf/progs/test_attach_probe.c | 32 ++++++++++
4 files changed, 140 insertions(+), 2 deletions(-)

--
2.39.0