Messages in this thread | | | From | Brendan Gregg <> | Subject | [PATCH v2 0/3] Add a tracepoint for BPF perf sampling | Date | Wed, 3 Aug 2016 02:47:46 +0000 |
| |
This patchset adds a tracepoint for perf sampling, perf:perf_hrtimer, and includes a complete example in samples/bpf for using it to frequency count sampled instruction pointers in a BPF map.
Signed-off-by: Brendan Gregg <bgregg@netflix.com> --- Changes in v2: - added samples/bpf/sampleip* example for perf:perf_hrtimer - added bpf-output to perf script usage message
Brendan Gregg (3): perf/core: Add a tracepoint for perf sampling samples/bpf: Add a sampling BPF example perf script: add bpf-output field to usage message
include/trace/events/perf.h | 29 +++++ kernel/events/core.c | 5 + samples/bpf/Makefile | 4 + samples/bpf/sampleip_kern.c | 48 ++++++++ samples/bpf/sampleip_user.c | 189 +++++++++++++++++++++++++++++++ tools/perf/Documentation/perf-script.txt | 4 +- tools/perf/builtin-script.c | 2 +- 7 files changed, 278 insertions(+), 3 deletions(-) create mode 100644 include/trace/events/perf.h create mode 100644 samples/bpf/sampleip_kern.c create mode 100644 samples/bpf/sampleip_user.c
-- 2.7.4
| |