All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH bpf-next v2 0/2] bpf: Add LINK_DETACH for perf links
@ 2026-03-04 21:02 Florian Lehner
  2026-03-04 21:02 ` [PATCH bpf-next v2 1/2] bpf: Add LINK_DETACH support for perf link Florian Lehner
  2026-03-04 21:02 ` [PATCH bpf-next v2 2/2] selftests/bpf: Test LINK_DETACH " Florian Lehner
  0 siblings, 2 replies; 7+ messages in thread
From: Florian Lehner @ 2026-03-04 21:02 UTC (permalink / raw)
  To: bpf
  Cc: ast, daniel, john.fastabend, andrii, martin.lau, eddyz87, song,
	yonghong.song, kpsingh, sdf, haoluo, jolsa, shuah, davem, kuba,
	hawk, Florian Lehner

73b11c2a introduced LINK_DETACH and implemented it for some link types,
like xdp, netns and others.

This patch implements LINK_DETACH for perf links, re-using existing link
release handling code.

Changes since initial approach [1]:
 - drop LINK_DETACH support for iter
 - add test for LINK_DETACH for perf event links

[1] https://lore.kernel.org/bpf/aJOhPoTLdYnZmHYA@der-flo.net/

Florian Lehner (2):
  bpf: Add LINK_DETACH support for perf link
  selftests/bpf: Test LINK_DETACH for perf link

 kernel/bpf/syscall.c                          | 30 ++++++-
 .../selftests/bpf/prog_tests/perf_link.c      | 81 ++++++++++++++++---
 2 files changed, 94 insertions(+), 17 deletions(-)

-- 
2.53.0


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

end of thread, other threads:[~2026-03-11 16:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-04 21:02 [PATCH bpf-next v2 0/2] bpf: Add LINK_DETACH for perf links Florian Lehner
2026-03-04 21:02 ` [PATCH bpf-next v2 1/2] bpf: Add LINK_DETACH support for perf link Florian Lehner
2026-03-04 22:01   ` bot+bpf-ci
2026-03-06  3:38     ` Kumar Kartikeya Dwivedi
2026-03-06  3:59       ` Alexei Starovoitov
2026-03-11 16:48         ` Yonghong Song
2026-03-04 21:02 ` [PATCH bpf-next v2 2/2] selftests/bpf: Test LINK_DETACH " Florian Lehner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.