From: Anshuman Khandual <khandual@linux.vnet.ibm.com>
To: linuxppc-dev@ozlabs.org
Cc: mikey@neuling.org, sukadev@linux.vnet.ibm.com, michaele@au1.ibm.com
Subject: [PATCH 0/2] Export POWER8 PMU raw event codes through sysfs
Date: Wed, 16 Oct 2013 11:22:58 +0530 [thread overview]
Message-ID: <1381902780-2719-1-git-send-email-khandual@linux.vnet.ibm.com> (raw)
This patchset adds some missing event list for POWER7 PMU raw
events which are exported through sysfs interface. Also adds a new
set of raw PMU events list for POWER8. I have completed some amount
of initial testing to verify the working of POWER8 raw event codes
through sysfs.
Before the patch
================
directory contents: /sys/bus/event_source/devices/cpu/
format perf_event_mux_interval_ms power subsystem type uevent
After the patch
===============
(1) directory contents: /sys/bus/event_source/devices/cpu/
'events' format perf_event_mux_interval_ms power subsystem type uevent
(2) contents inside new directory: /sys/bus/event_source/devices/cpu/events/
............................
............................
............................
PM_ANY_THRD_RUN_CYC
PM_BR_2PATH
PM_BR_CMPL
PM_BR_MRK_2PATH
PM_BR_TAKEN_CMPL
PM_CMPLU_STALL_BRU
PM_CMPLU_STALL_BRU_CRU
PM_CMPLU_STALL_COQ_FULL
PM_CMPLU_STALL_DCACHE_MISS
PM_CMPLU_STALL_DMISS_L21_L31
PM_CMPLU_STALL_DMISS_L2L3
PM_CMPLU_STALL_DMISS_L2L3_CONFLICT
PM_CMPLU_STALL_DMISS_L3MISS
PM_CMPLU_STALL_DMISS_LMEM
PM_CMPLU_STALL_DMISS_REMOTE
PM_CMPLU_STALL_ERAT_MISS
PM_CMPLU_STALL_FLUSH
PM_CMPLU_STALL_FXLONG
PM_CMPLU_STALL_FXU
PM_CMPLU_STALL_HWSYNC
PM_CMPLU_STALL_LOAD_FINISH
...........................
............................
............................
Sample tests:
================================================================
perf stat -e 'cpu/PM_CMPLU_STALL_ERAT_MISS/' ls
Performance counter stats for 'ls':
56762 cpu/PM_CMPLU_STALL_ERAT_MISS/
0.003643785 seconds time elapsed
perf stat -e 'cpu/PM_CMPLU_STALL_BRU/' ls
Performance counter stats for 'ls':
208615 cpu/PM_CMPLU_STALL_BRU/
0.003600713 seconds time elapsed
=================================================================
Anshuman Khandual (2):
power7, perf: Make some new raw event codes available in sysfs
power8, perf: Export raw event codes through sysfs interface
arch/powerpc/perf/power7-events-list.h | 10 +++
arch/powerpc/perf/power8-events-list.h | 146 +++++++++++++++++++++++++++++++++
arch/powerpc/perf/power8-pmu.c | 30 +++++++
3 files changed, 186 insertions(+)
create mode 100644 arch/powerpc/perf/power8-events-list.h
--
1.7.11.7
next reply other threads:[~2013-10-16 5:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-16 5:52 Anshuman Khandual [this message]
2013-10-16 5:52 ` [PATCH 1/2] power7, perf: Make some new raw event codes available in sysfs Anshuman Khandual
2013-12-13 2:50 ` Michael Ellerman
2013-12-13 4:30 ` Anshuman Khandual
2013-12-18 1:59 ` Michael Ellerman
2014-01-02 5:05 ` Anshuman Khandual
2013-10-16 5:53 ` [PATCH 2/2] power8, perf: Export raw event codes through sysfs interface Anshuman Khandual
2014-02-07 7:25 ` Michael Ellerman
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=1381902780-2719-1-git-send-email-khandual@linux.vnet.ibm.com \
--to=khandual@linux.vnet.ibm.com \
--cc=linuxppc-dev@ozlabs.org \
--cc=michaele@au1.ibm.com \
--cc=mikey@neuling.org \
--cc=sukadev@linux.vnet.ibm.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).