From: Song Liu <song@kernel.org>
To: <linux-kernel@vger.kernel.org>
Cc: <kernel-team@fb.com>, <acme@kernel.org>, <acme@redhat.com>,
<namhyung@kernel.org>, <jolsa@kernel.org>,
<songliubraving@fb.com>, Song Liu <song@kernel.org>
Subject: [PATCH v2 0/3] perf util: bpf perf improvements
Date: Tue, 6 Apr 2021 17:35:58 -0700 [thread overview]
Message-ID: <20210407003601.619158-1-song@kernel.org> (raw)
This patches set improves bpf_perf (perf-stat --bpf-counter) by
1) exposing key definitions to a libperf header;
2) adding compatibility check for perf_attr_map;
3) introducing config stat.bpf-counter-events.
Changes v1 => v2:
1. Separte 2/3 from 1/3. (Jiri)
2. Rename bperf.h to bpf_perf.h. (Jiri)
3. Other small fixes/optimizations. (Jiri)
Song Liu (3):
perf util: move bpf_perf definitions to a libperf header
perf bpf: check perf_attr_map is compatible with the perf binary
perf-stat: introduce config stat.bpf-counter-events
tools/lib/perf/include/perf/bpf_perf.h | 31 ++++++++++++++
tools/perf/Documentation/perf-stat.txt | 2 +
tools/perf/builtin-stat.c | 43 ++++++++++++-------
tools/perf/util/bpf_counter.c | 57 +++++++++++++++-----------
tools/perf/util/config.c | 32 +++++++++++++++
tools/perf/util/evsel.c | 2 +
tools/perf/util/evsel.h | 6 +++
tools/perf/util/target.h | 5 ---
8 files changed, 134 insertions(+), 44 deletions(-)
create mode 100644 tools/lib/perf/include/perf/bpf_perf.h
--
2.30.2
next reply other threads:[~2021-04-07 0:36 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-07 0:35 Song Liu [this message]
2021-04-07 0:35 ` [PATCH v2 1/3] perf util: move bpf_perf definitions to a libperf header Song Liu
2021-04-07 0:36 ` [PATCH v2 2/3] perf bpf: check perf_attr_map is compatible with the perf binary Song Liu
2021-04-07 0:36 ` [PATCH v2 3/3] perf-stat: introduce config stat.bpf-counter-events Song Liu
2021-04-08 11:47 ` Jiri Olsa
2021-04-08 16:39 ` Song Liu
2021-04-08 17:19 ` Arnaldo Carvalho de Melo
2021-04-08 17:20 ` Jiri Olsa
2021-04-08 17:28 ` Song Liu
2021-04-08 17:45 ` Jiri Olsa
2021-04-08 18:08 ` Song Liu
2021-04-08 18:24 ` Jiri Olsa
2021-04-08 18:50 ` Arnaldo Carvalho de Melo
2021-04-08 19:41 ` Song Liu
2021-04-08 19:46 ` Song Liu
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=20210407003601.619158-1-song@kernel.org \
--to=song@kernel.org \
--cc=acme@kernel.org \
--cc=acme@redhat.com \
--cc=jolsa@kernel.org \
--cc=kernel-team@fb.com \
--cc=linux-kernel@vger.kernel.org \
--cc=namhyung@kernel.org \
--cc=songliubraving@fb.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;
as well as URLs for NNTP newsgroup(s).