Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1471073
| From | Alexei Starovoitov <ast@fb.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH net-next 0/6] perf, bpf: add support for bpf in sw/hw perf_events |
| Date | 2016-08-27 04:40 +0200 |
| Message-ID | <saBHj-793-3@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Hi Peter, Dave,
this patch set is a follow up to the discussion:
https://lkml.org/lkml/2016/8/4/304
It turned out to be simpler than what we discussed.
Patches 1-3 is a bpf-side prep for the main patch 4
that adds bpf program as an overflow_handler to sw and hw perf_events.
Peter, please review.
Patches 5 and 6 are tests/examples from myself and Brendan.
Thanks!
Alexei Starovoitov (5):
bpf: support 8-byte metafield access
bpf: introduce BPF_PROG_TYPE_PERF_EVENT program type
bpf: perf_event progs should only use preallocated maps
perf, bpf: add perf events core support for BPF_PROG_TYPE_PERF_EVENT
programs
samples/bpf: add perf_event+bpf example
Brendan Gregg (1):
samples/bpf: add sampleip example
include/linux/bpf.h | 4 +
include/linux/perf_event.h | 7 ++
include/uapi/linux/Kbuild | 1 +
include/uapi/linux/bpf.h | 1 +
include/uapi/linux/bpf_perf_event.h | 18 +++
kernel/bpf/verifier.c | 31 +++++-
kernel/events/core.c | 82 +++++++++++++-
kernel/trace/bpf_trace.c | 57 ++++++++++
samples/bpf/Makefile | 8 ++
samples/bpf/bpf_helpers.h | 2 +
samples/bpf/bpf_load.c | 7 +-
samples/bpf/sampleip_kern.c | 38 +++++++
samples/bpf/sampleip_user.c | 196 +++++++++++++++++++++++++++++++++
samples/bpf/trace_event_kern.c | 65 +++++++++++
samples/bpf/trace_event_user.c | 213 ++++++++++++++++++++++++++++++++++++
15 files changed, 724 insertions(+), 6 deletions(-)
create mode 100644 include/uapi/linux/bpf_perf_event.h
create mode 100644 samples/bpf/sampleip_kern.c
create mode 100644 samples/bpf/sampleip_user.c
create mode 100644 samples/bpf/trace_event_kern.c
create mode 100644 samples/bpf/trace_event_user.c
--
2.8.0
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH net-next 0/6] perf, bpf: add support for bpf in sw/hw perf_events Alexei Starovoitov <ast@fb.com> - 2016-08-27 04:40 +0200
[PATCH net-next 1/6] bpf: support 8-byte metafield access Alexei Starovoitov <ast@fb.com> - 2016-08-27 04:40 +0200
Re: [PATCH net-next 1/6] bpf: support 8-byte metafield access Daniel Borkmann <daniel@iogearbox.net> - 2016-08-30 02:00 +0200
[PATCH net-next 6/6] samples/bpf: add sampleip example Alexei Starovoitov <ast@fb.com> - 2016-08-27 04:40 +0200
[PATCH net-next 4/6] perf, bpf: add perf events core support for BPF_PROG_TYPE_PERF_EVENT programs Alexei Starovoitov <ast@fb.com> - 2016-08-27 04:40 +0200
Re: [PATCH net-next 4/6] perf, bpf: add perf events core support for BPF_PROG_TYPE_PERF_EVENT programs Peter Zijlstra <peterz@infradead.org> - 2016-08-29 14:20 +0200
Re: [PATCH net-next 4/6] perf, bpf: add perf events core support for BPF_PROG_TYPE_PERF_EVENT programs Alexei Starovoitov <alexei.starovoitov@gmail.com> - 2016-08-31 05:50 +0200
[PATCH net-next 2/6] bpf: introduce BPF_PROG_TYPE_PERF_EVENT program type Alexei Starovoitov <ast@fb.com> - 2016-08-27 04:40 +0200
Re: [PATCH net-next 2/6] bpf: introduce BPF_PROG_TYPE_PERF_EVENT program type Daniel Borkmann <daniel@iogearbox.net> - 2016-08-30 02:20 +0200
[PATCH net-next 5/6] samples/bpf: add perf_event+bpf example Alexei Starovoitov <ast@fb.com> - 2016-08-27 04:40 +0200
Re: [PATCH net-next 0/6] perf, bpf: add support for bpf in sw/hw perf_events Peter Zijlstra <peterz@infradead.org> - 2016-08-29 13:00 +0200
Re: [PATCH net-next 0/6] perf, bpf: add support for bpf in sw/hw perf_events Alexei Starovoitov <alexei.starovoitov@gmail.com> - 2016-08-30 01:10 +0200
Re: [PATCH net-next 0/6] perf, bpf: add support for bpf in sw/hw perf_events Peter Zijlstra <peterz@infradead.org> - 2016-08-29 14:20 +0200
Re: [PATCH net-next 0/6] perf, bpf: add support for bpf in sw/hw perf_events Brendan Gregg <brendan.d.gregg@gmail.com> - 2016-08-30 04:30 +0200
csiph-web