linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC][PATCH 0/4] perf: Enable symbolic event names
@ 2015-05-01  7:05 Sukadev Bhattiprolu
  2015-05-01  7:05 ` [RFC][PATCH 1/4] perf: Create a table of Power7 PMU events Sukadev Bhattiprolu
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Sukadev Bhattiprolu @ 2015-05-01  7:05 UTC (permalink / raw)
  To: mingo, ak, Michael Ellerman, Jiri Olsa, Arnaldo Carvalho de Melo,
	Paul Mackerras
  Cc: linuxppc-dev, linux-kernel

Implement ability to specify Power PMU events by their symbolic event
names rather than raw codes. This approach pulls tables of the Power7
and Power8 PMU events into the perf source tree and uses these tables
to create aliases for the PMU events. With these aliases users can run:

	perf stat -e PM_1PLUS_PPC_CMPL:ku sleep 1
or
	perf stat -e cpu/PM_VSU_SINGLE/ sleep 1

This is an early POC patchset based on discussions with Jiri Olsa,
Michael Ellerman and Ingo Molnar. Lightly tested on Power7 and Power8.

Can other architectures can implement arch_get_events_table() and similarly 
use symoblic event names?

I am also assuming that if the header files like power8-events.h are
easily readable, we don't need the JSON files anymore?

TODO:
	- Maybe translate event names to lower-case?
	- Allow perf to process event descriptions (need Andi Kleen's patch)


Sukadev Bhattiprolu (4):
  perf: Create a table of Power7 PMU events
  perf: Create a table of Power8 PMU events
  perf/powerpc: Move mfspr and friends to header file
  perf: Create aliases for Power PMU events

 tools/perf/arch/powerpc/util/Build           |    2 +-
 tools/perf/arch/powerpc/util/header.c        |    9 +-
 tools/perf/arch/powerpc/util/header.h        |    9 +
 tools/perf/arch/powerpc/util/pmu-events.c    |   52 +
 tools/perf/arch/powerpc/util/pmu-events.h    |   17 +
 tools/perf/arch/powerpc/util/power7-events.h | 3315 +++++++++++++
 tools/perf/arch/powerpc/util/power8-events.h | 6408 ++++++++++++++++++++++++++
 tools/perf/util/pmu.c                        |   77 +
 tools/perf/util/pmu.h                        |   10 +
 9 files changed, 9890 insertions(+), 9 deletions(-)
 create mode 100644 tools/perf/arch/powerpc/util/header.h
 create mode 100644 tools/perf/arch/powerpc/util/pmu-events.c
 create mode 100644 tools/perf/arch/powerpc/util/pmu-events.h
 create mode 100644 tools/perf/arch/powerpc/util/power7-events.h
 create mode 100644 tools/perf/arch/powerpc/util/power8-events.h

-- 
1.7.9.5


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-05-04 11:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-01  7:05 [RFC][PATCH 0/4] perf: Enable symbolic event names Sukadev Bhattiprolu
2015-05-01  7:05 ` [RFC][PATCH 1/4] perf: Create a table of Power7 PMU events Sukadev Bhattiprolu
2015-05-01  7:05 ` [RFC][PATCH 2/4] perf: Create a table of Power8 " Sukadev Bhattiprolu
2015-05-01  7:05 ` [RFC][PATCH 3/4] perf/powerpc: Move mfspr and friends to header file Sukadev Bhattiprolu
2015-05-01  7:05 ` [RFC][PATCH 4/4] perf: Create aliases for PMU events Sukadev Bhattiprolu
2015-05-02  7:04   ` Vineet Gupta
2015-05-02 15:38   ` Jiri Olsa
2015-05-04 11:44     ` Andi Kleen
2015-05-02  7:02 ` [RFC][PATCH 0/4] perf: Enable symbolic event names Vineet Gupta

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).