Skip to content

bpf: Add LINK_DETACH for perf links

Florian Lehner bpf 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 1 replyIn review
  2. v22 patches 3 repliesSuperseded
  3. v11 patch 4 repliesSuperseded

Changes in v3 from the cover letter

1. Introduce bpf_perf_link_mutex to guard against concurrent access

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2bpf: Add LINK_DETACH support for perf linkkernel/bpf/syscall.c+73 -140 replies
2/2selftests/bpf: Test LINK_DETACH for perf linktools/testing/selftests/bpf/prog_tests/perf_link.c+67 -121 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH bpf-next 0/2 v3] bpf: Add LINK_DETACH for perf links

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.

---

Change log:

v3:
1. Introduce bpf_perf_link_mutex to guard against concurrent access

v2: https://lore.kernel.org/bpf/[email protected]/
1. Drop LINK_DETACH support for iter
2. Add test for LINK_DETACH for perf event links

v1: https://lore.kernel.org/bpf/[email protected]/

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

 kernel/bpf/syscall.c                          | 87 ++++++++++++++++---
 .../selftests/bpf/prog_tests/perf_link.c      | 79 ++++++++++++++---
 2 files changed, 140 insertions(+), 26 deletions(-)
Signature · 1 line
2.53.0