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

menglong8.dong@gmail.com posted 2 patches 2 years, 7 months ago
There is a newer version of this series
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(-)
[PATCH bpf-next 0/2] libbpf: allow users to set kprobe/uprobe attach mode
Posted by menglong8.dong@gmail.com 2 years, 7 months ago
From: Menglong Dong <imagedong@tencent.com>

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