Skip to content

BPF event output helper improvements

Daniel Borkmann lkml netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyIn review
  2. v13 patches 9 repliesSuperseded

Changes in v2 from the cover letter

- Integrated and adapted Peter's diff into patch 1, updated the remaining ones accordingly. Thanks Peter!

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3perf, events: add non-linear data support for raw recordsarch/s390/kernel/perf_cpum_sf.c arch/x86/events/amd/ibs.c include/linux/perf_event.h +3 more+93 -320 replies
2/3bpf, perf: split bpf_perf_event_outputkernel/trace/bpf_trace.c+22 -130 replies
3/3bpf: avoid stack copy and use skb ctx for event outputinclude/linux/bpf.h include/uapi/linux/bpf.h kernel/bpf/core.c +2 more+69 -220 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchAlexei Starovoitov
1/3A-b
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH net-next v2 0/3] BPF event output helper improvements

This set adds improvements to the BPF event output helper to support non-linear data sampling, here specifically, for skb context. For details please see individual patches. The set is based against net-next tree.

v1 -> v2:
- Integrated and adapted Peter's diff into patch 1, updated the remaining ones accordingly. Thanks Peter!

Thanks a lot!

Daniel Borkmann (3):
perf, events: add non-linear data support for raw records bpf, perf: split bpf_perf_event_output
bpf: avoid stack copy and use skb ctx for event output

 arch/s390/kernel/perf_cpum_sf.c |  9 ++++--
 arch/x86/events/amd/ibs.c       |  8 +++--
 include/linux/bpf.h             |  7 ++++-
 include/linux/perf_event.h      | 20 ++++++++++++-
 include/uapi/linux/bpf.h        |  2 ++
 kernel/bpf/core.c               |  6 ++--
 kernel/events/core.c            | 66 ++++++++++++++++++++++++++++-------------
 kernel/events/internal.h        | 16 +++++++---
 kernel/trace/bpf_trace.c        | 66 +++++++++++++++++++++++------------------
 net/core/filter.c               | 43 ++++++++++++++++++++++++++-
 10 files changed, 180 insertions(+), 63 deletions(-)
Signature · 1 line
1.9.3