Skip to content

bpf: Add BPF support to all perf_event

Alexei Starovoitov lkml netdev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 1 replyIn review
  2. v33 patches 2 repliesSuperseded
  3. v23 patches 9 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3perf, bpf: Add BPF support to all perf_event typesinclude/linux/perf_event.h kernel/bpf/arraymap.c kernel/events/core.c +1 more+48 -550 replies
2/3samples/bpf: add tests for more perf event typessamples/bpf/bpf_helpers.h samples/bpf/trace_event_user.c samples/bpf/tracex6_kern.c +1 more+228 -560 replies
3/3bpf: update perf event helper functions documentationinclude/uapi/linux/bpf.h tools/include/uapi/linux/bpf.h+14 -80 replies

Reviews trailers per patch

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

Read the v4 thread

Cover letter [PATCH v4 net-next 0/3] bpf: Add BPF support to all perf_event

v3->v4: one more tweak to reject unsupported events at map update time as Peter suggested

v2->v3: more refactoring to address Peter's feedback. Now all perf_events are attachable and readable

v1->v2: address Peter's feedback. Refactor patch 1 to allow attaching bpf programs to all event types and reading counters from all of them as well patch 2 - more tests
patch 3 - address Dave's feedback and document bpf_perf_event_read() and bpf_perf_event_output() properly

Alexei Starovoitov (1):
perf, bpf: Add BPF support to all perf_event types

Teng Qin (2):
samples/bpf: add tests for more perf event types
bpf: update perf event helper functions documentation

 include/linux/perf_event.h     |   7 +-
 include/uapi/linux/bpf.h       |  11 ++-
 kernel/bpf/arraymap.c          |  28 ++-----
 kernel/events/core.c           |  47 ++++++-----
 kernel/trace/bpf_trace.c       |  21 ++---
 samples/bpf/bpf_helpers.h      |   3 +-
 samples/bpf/trace_event_user.c |  73 ++++++++++++++---
 samples/bpf/tracex6_kern.c     |  28 +++++--
 samples/bpf/tracex6_user.c     | 180 ++++++++++++++++++++++++++++++++---------
 tools/include/uapi/linux/bpf.h |  11 ++-
 10 files changed, 290 insertions(+), 119 deletions(-)
Signature · 1 line
2.9.3