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

Message ID 20230203031742.1730761-1-imagedong@tencent.com
Headers
Series libbpf: allow users to set kprobe/uprobe attach mode |

Message

Menglong Dong Feb. 3, 2023, 3:17 a.m. UTC
  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(-)