bpf: Add cookies retrieval for perf/kprobe multi links
Status from this message: This series was applied to bpf/bpf-next.git (master)
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest8 patches 10 repliesApplied 8/8
- v18 patches 10 repliesSuperseded
Changes in v2 from the cover letter
- added review/ack tags
- fixed memory leak [Quentin]
- align the uapi fields properly [Yafang Shao]
[1] https://lore.kernel.org/bpf/CALOAHbAZ6=A9j3VFCLoAC_WhgQKU7injMf06=cM2sU4Hi4Sx+Q@mail.gmail.com/
---
Jiri Olsa (8):
bpf: Add cookie to perf_event bpf_link_info records
bpf: Store cookies in kprobe_multi bpf_link_info data
bpftool: Fix wrong free call in do_show_link
selftests/bpf: Add cookies check for kprobe_multi fill_link_info test selftests/bpf: Add cookies check for perf_event fill_link_info test selftests/bpf: Add fill_link_info test for perf event
bpftool: Display cookie for perf event link probes
bpftool: Display cookie for kprobe multi link
Patches in v2 All 8 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | bpf: Add cookie to perf_event bpf_link_info recordsinclude/ kernel/ tools/ | +16 | 2 replies | Applied |
| 2/8 | bpf: Store cookies in kprobe_multi bpf_link_info datainclude/ kernel/ tools/ | +17 | 1 reply | Applied |
| 3/8 | bpftool: Fix wrong free call in do_show_linktools/ | +1 | 1 reply | Applied |
| 4/8 | selftests/bpf: Add cookies check for kprobe_multi fill_link_info testtools/ | +36 | 1 reply | Applied |
| 5/8 | selftests/bpf: Add cookies check for perf_event fill_link_info testtools/ | +21 | 1 reply | Applied |
| 6/8 | selftests/bpf: Add fill_link_info test for perf eventtools/ tools/ | +46 | 1 reply | Applied |
| 7/8 | bpftool: Display cookie for perf event link probestools/ | +14 | 1 reply | Applied |
| 8/8 | bpftool: Display cookie for kprobe multi linktools/ | +63 | 1 reply | Applied |
Reviews trailers per patch
All 8 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Yafang Shao | Quentin Monnet | Song Liu |
|---|---|---|---|
| Series | R-b | ||
| 1/8 | A-b | A-b | |
| 2/8 | A-b | A-b | |
| 3/8 | A-b | R-b | A-b |
| 4/8 | A-b | ||
| 5/8 | A-b | ||
| 6/8 | A-b | ||
| 7/8 | R-b | A-b | |
| 8/8 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCHv2 bpf-next 0/8] bpf: Add cookies retrieval for perf/kprobe multi links
hi,
this patchset adds support to retrieve cookies from existing tracing links that still did not support it plus changes to bpftool to display them. It's leftover we discussed some time ago [1].
thanks,
jirka
v2 changes:
- added review/ack tags
- fixed memory leak [Quentin]
- align the uapi fields properly [Yafang Shao]
[1] https://lore.kernel.org/bpf/CALOAHbAZ6=A9j3VFCLoAC_WhgQKU7injMf06=cM2sU4Hi4Sx+Q@mail.gmail.com/
---
Jiri Olsa (8):
bpf: Add cookie to perf_event bpf_link_info records
bpf: Store cookies in kprobe_multi bpf_link_info data
bpftool: Fix wrong free call in do_show_link
selftests/bpf: Add cookies check for kprobe_multi fill_link_info test selftests/bpf: Add cookies check for perf_event fill_link_info test selftests/bpf: Add fill_link_info test for perf event
bpftool: Display cookie for perf event link probes
bpftool: Display cookie for kprobe multi link
include/uapi/linux/bpf.h | 7 ++++++ kernel/bpf/syscall.c | 4 ++++ kernel/trace/bpf_trace.c | 15 +++++++++++++ tools/bpf/bpftool/link.c | 94 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------- tools/include/uapi/linux/bpf.h | 7 ++++++ tools/testing/selftests/bpf/prog_tests/fill_link_info.c | 114 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------- tools/testing/selftests/bpf/progs/test_fill_link_info.c | 6 +++++ 7 files changed, 214 insertions(+), 33 deletions(-)