mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Brendan Gregg <bgregg@netflix.com>
To: Peter Zijlstra <peterz@infradead.org>,
	Ingo Molnar <mingo@redhat.com>,
	Arnaldo Carvalho de Melo <acme@kernel.org>,
	Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: linux-kernel@vger.kernel.org, Alexei Starovoitov <ast@kernel.org>,
	Wang Nan <wangnan0@huawei.com>,
	Brendan Gregg <bgregg@netflix.com>
Subject: [PATCH v2 0/3] Add a tracepoint for BPF perf sampling
Date: Wed,  3 Aug 2016 02:47:46 +0000	[thread overview]
Message-ID: <1470192469-11910-1-git-send-email-bgregg@netflix.com> (raw)

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

             reply	other threads:[~2016-08-03  2:50 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-03  2:47 Brendan Gregg [this message]
2016-08-03  2:47 ` [PATCH v2 1/3] perf/core: Add a tracepoint for " Brendan Gregg
2016-08-03  9:48   ` Peter Zijlstra
2016-08-03 18:57     ` Brendan Gregg
2016-08-04 14:28       ` Peter Zijlstra
2016-08-05  1:43         ` Alexei Starovoitov
2016-08-05  4:13           ` Brendan Gregg
2016-08-05  5:24             ` Alexei Starovoitov
2016-08-05 10:52               ` Peter Zijlstra
2016-08-05 17:22                 ` Brendan Gregg
2016-08-08  9:57                   ` Peter Zijlstra
2016-08-05 19:45                 ` Alexei Starovoitov
2016-08-08 10:03                   ` Peter Zijlstra
2016-08-03  2:47 ` [PATCH v2 2/3] samples/bpf: Add a sampling BPF example Brendan Gregg
2016-08-03  2:47 ` [PATCH v2 3/3] perf script: add bpf-output field to usage message Brendan Gregg
2016-08-09 19:16   ` [tip:perf/urgent] perf script: Add 'bpf-output' " tip-bot for Brendan Gregg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1470192469-11910-1-git-send-email-bgregg@netflix.com \
    --to=bgregg@netflix.com \
    --cc=acme@kernel.org \
    --cc=alexander.shishkin@linux.intel.com \
    --cc=ast@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.org \
    --cc=wangnan0@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®