bpf: Add LINK_DETACH for perf links
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest2 patches 1 replyIn review
- v22 patches 3 repliesSuperseded
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | bpf: Add LINK_DETACH support for perf linkkernel/ | +73 | 0 replies | |
| 2/2 | selftests/bpf: Test LINK_DETACH for perf linktools/ | +67 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
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