Merge branch 'bpf-Add-BPF-support-to-all-perf_event'
Merge branch 'bpf-Add-BPF-support-to-all-perf_event'
Alexei Starovoitov says:
====================
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
====================
Signed-off-by:
David S. Miller <davem@davemloft.net>
No related branches found
No related tags found
Showing
- include/linux/perf_event.h 5 additions, 2 deletionsinclude/linux/perf_event.h
- include/uapi/linux/bpf.h 7 additions, 4 deletionsinclude/uapi/linux/bpf.h
- kernel/bpf/arraymap.c 7 additions, 21 deletionskernel/bpf/arraymap.c
- kernel/events/core.c 28 additions, 19 deletionskernel/events/core.c
- kernel/trace/bpf_trace.c 8 additions, 14 deletionskernel/trace/bpf_trace.c
- samples/bpf/bpf_helpers.h 2 additions, 1 deletionsamples/bpf/bpf_helpers.h
- samples/bpf/trace_event_user.c 63 additions, 10 deletionssamples/bpf/trace_event_user.c
- samples/bpf/tracex6_kern.c 21 additions, 7 deletionssamples/bpf/tracex6_kern.c
- samples/bpf/tracex6_user.c 142 additions, 38 deletionssamples/bpf/tracex6_user.c
- tools/include/uapi/linux/bpf.h 7 additions, 4 deletionstools/include/uapi/linux/bpf.h
Please register or sign in to comment