From: Jiri Olsa <jolsa@redhat.com>
To: linux-kernel@vger.kernel.org
Subject: [RFCv2 0/8] perf tools: Add non-architectural event aliases
Date: Sat, 26 Jan 2013 21:04:02 +0100 [thread overview]
Message-ID: <1359230650-10415-1-git-send-email-jolsa@redhat.com> (raw)
hi,
adding support to use non-architectural events in perf via name,
to be able to use them like:
$ perf stat -e 'cpu/IDQ.ALL_DSB_CYCLES/' ...
$ perf stat -e 'cpu/L2_STORE_LOCK_RQSTS.MISS/' ...
...
The perf list command displays current non-arch. events available:
$ perf list
...
cpu/AGU_BYPASS_CANCEL.COUNT/ [Kernel PMU event]
cpu/ARITH.FPU_DIV/ [Kernel PMU event]
cpu/ARITH.FPU_DIV_ACTIVE/ [Kernel PMU event]
cpu/BACLEARS.ANY/ [Kernel PMU event]
...
This version is dependent on precise changes:
http://marc.info/?l=linux-kernel&m=135922143117888&w=2
First version of this RFC is here:
http://marc.info/?l=linux-kernel&m=135575146128720&w=2
This version provides support for non-architectural events
aliasses being defined in sigle files, like for SandyBridge:
$ cat arch/x86/events/intel/snb | head -5
name=AGU_BYPASS_CANCEL.COUNT,event=0xb6,umask=0x1
name=ARITH.FPU_DIV_ACTIVE,event=0x14,umask=0x1
name=ARITH.FPU_DIV,event=0x14,umask=0x10401
name=BACLEARS.ANY,event=0xe6,umask=0x1f
...
So far this is still under testing and only SandyBridge and IvyBridge
events were added. I have no problem to add the rest of the archs.
when the shape of this is agreed.
Available also at:
git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/linux.git
perf/nonarch9
any comments are welcome,
jirka
---
Andi Kleen (1):
perf tools: List kernel supplied event aliases in perf list v2
Jiri Olsa (7):
perf tools: Add '.' as part of the event 'name' token
perf tools: Change perf_pmu__new_alias function interface
perf tools: Add name term processing for alias
perf tools: Add pmu interface to parse single file of aliases
perf tools: Add support to include non architectural event aliases
perf tools: Add non arch events for SandyBridge microarchitecture
perf tools: Add non arch events for IvyBridge micro architecture
tools/perf/Documentation/perf-list.txt | 4 +-
tools/perf/arch/x86/Makefile | 11 ++++
tools/perf/arch/x86/events/intel/ivb | 248 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
tools/perf/arch/x86/events/intel/snb | 274 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
tools/perf/arch/x86/util/pmu.c | 125 ++++++++++++++++++++++++++++++++++++++++++
tools/perf/builtin-list.c | 3 +
tools/perf/util/parse-events.c | 24 ++------
tools/perf/util/parse-events.l | 4 +-
tools/perf/util/pmu.c | 158 ++++++++++++++++++++++++++++++++++++++++++++++++-----
tools/perf/util/pmu.h | 9 +++
10 files changed, 824 insertions(+), 36 deletions(-)
next reply other threads:[~2013-01-26 20:04 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-26 20:04 Jiri Olsa [this message]
2013-01-26 20:04 ` [PATCH 1/8] perf tools: Add '.' as part of the event 'name' token Jiri Olsa
2013-01-28 20:52 ` Stephane Eranian
2013-01-28 21:32 ` Stephane Eranian
2013-01-29 8:03 ` Ingo Molnar
2013-01-29 10:53 ` Jiri Olsa
2013-02-03 20:37 ` Stephane Eranian
2013-02-04 7:30 ` Jiri Olsa
2013-05-03 18:56 ` Peter Zijlstra
2013-05-04 8:10 ` Ingo Molnar
2013-01-26 20:04 ` [PATCH 2/8] perf tools: Change perf_pmu__new_alias function interface Jiri Olsa
2013-01-26 20:04 ` [PATCH 3/8] perf tools: Add name term processing for alias Jiri Olsa
2013-01-26 20:04 ` [PATCH 4/8] perf tools: Add pmu interface to parse single file of aliases Jiri Olsa
2013-01-26 20:04 ` [PATCH 5/8] perf tools: Add support to include non architectural event aliases Jiri Olsa
2013-01-26 20:04 ` [PATCH 6/8] perf tools: Add non arch events for SandyBridge microarchitecture Jiri Olsa
2013-01-26 20:04 ` [PATCH 7/8] perf tools: Add non arch events for IvyBridge micro architecture Jiri Olsa
2013-01-26 20:04 ` [PATCH 8/8] perf tools: List kernel supplied event aliases in perf list v2 Jiri Olsa
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=1359230650-10415-1-git-send-email-jolsa@redhat.com \
--to=jolsa@redhat.com \
--cc=linux-kernel@vger.kernel.org \
/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).