Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1175995
| From | He Kuang <hekuang@huawei.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [RFC PATCH v2 0/4] Make eBPF programs output data to perf event |
| Date | 2015-07-02 16:00 +0200 |
| Message-ID | <pHNbY-3p1-3@gated-at.bofh.it> (permalink) |
| References | <pHjGV-1xX-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi,
Accordint to the discussion on patchset v1, it seems an extra
perf_trace_buf is reduntant, this patch removes the additional buffer
and stores bpf output into a temporary region at the ending of the
original perf_trace_buf. The temporary region will be moved back to
the proper offset of perf_trace_buf at the stage of
perf_trace_prepare_buf.
v1-v2:
- Remove additional perf_trace_buf. Use the end of perf_trace_buf as
a temporary region to store bpf data.
- Rename bpf_output_sample to bpf_output_data.
- New bpf API added to the end of the function list.
Thank you.
He Kuang (4):
bpf: Put perf_events check ahead of bpf prog
tracing/kprobe: Separate inc recursion count out of
perf_trace_buf_prepare
bpf: Introduce function for outputing data to perf event
tracing/kprobe: Combine bpf output and perf event output
include/linux/ftrace_event.h | 4 +++
include/linux/perf_event.h | 2 ++
include/uapi/linux/bpf.h | 3 ++
kernel/events/core.c | 6 ++++
kernel/events/internal.h | 17 ++++++----
kernel/trace/bpf_trace.c | 29 +++++++++++++++++
kernel/trace/trace_event_perf.c | 56 +++++++++++++++++++++++++++++---
kernel/trace/trace_kprobe.c | 72 ++++++++++++++++++++++++++++++++++-------
samples/bpf/bpf_helpers.h | 2 ++
9 files changed, 167 insertions(+), 24 deletions(-)
--
1.8.5.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[RFC PATCH v2 0/4] Make eBPF programs output data to perf event He Kuang <hekuang@huawei.com> - 2015-07-02 16:00 +0200 [RFC PATCH v2 1/4] bpf: Put perf_events check ahead of bpf prog He Kuang <hekuang@huawei.com> - 2015-07-02 16:00 +0200 [RFC PATCH v2 3/4] bpf: Introduce function for outputing data to perf event He Kuang <hekuang@huawei.com> - 2015-07-02 16:00 +0200 [RFC PATCH v2 2/4] tracing/kprobe: Separate inc recursion count out of perf_trace_buf_prepare He Kuang <hekuang@huawei.com> - 2015-07-02 16:00 +0200 [RFC PATCH v2 4/4] tracing/kprobe: Combine bpf output and perf event output He Kuang <hekuang@huawei.com> - 2015-07-02 16:00 +0200
csiph-web