mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/2] libbpf: allow users to set kprobe/uprobe attach mode
@ 2023-02-03  3:17 menglong8.dong
  2023-02-03  3:17 ` [PATCH bpf-next 1/2] libbpf: add support " menglong8.dong
  2023-02-03  3:17 ` [PATCH bpf-next 2/2] selftests/bpf: add test for legacy/perf " menglong8.dong
  0 siblings, 2 replies; 12+ messages in thread
From: menglong8.dong @ 2023-02-03  3:17 UTC (permalink / raw)
  To: andrii.nakryiko, alan.maguire
  Cc: ast, daniel, andrii, martin.lau, song, yhs, john.fastabend,
	kpsingh, sdf, haoluo, jolsa, bpf, linux-kernel, Menglong Dong

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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-02-09 17:13 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-03  3:17 [PATCH bpf-next 0/2] libbpf: allow users to set kprobe/uprobe attach mode menglong8.dong
2023-02-03  3:17 ` [PATCH bpf-next 1/2] libbpf: add support " menglong8.dong
2023-02-06 19:58   ` Andrii Nakryiko
2023-02-07  2:23     ` Menglong Dong
2023-02-03  3:17 ` [PATCH bpf-next 2/2] selftests/bpf: add test for legacy/perf " menglong8.dong
2023-02-06 20:05   ` Andrii Nakryiko
2023-02-07  2:39     ` Menglong Dong
2023-02-07 22:50       ` Andrii Nakryiko
2023-02-08 11:49         ` Alan Maguire
2023-02-08 23:30           ` Andrii Nakryiko
2023-02-09 14:08             ` Menglong Dong
2023-02-09 17:13               ` Andrii Nakryiko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®