Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1216380

Re: [PATCH v16 00/16] perf, tools: Add support for PMU events in JSON format

From Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Newsgroups linux.kernel
Subject Re: [PATCH v16 00/16] perf, tools: Add support for PMU events in JSON format
Date 2015-08-31 21:10 +0200
Message-ID <q3CCS-8jt-9@gated-at.bofh.it> (permalink)
References <q1C4h-5Gj-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Sukadev Bhattiprolu [sukadev@linux.vnet.ibm.com] wrote:
| CPUs support a large number of performance monitoring events (PMU events)
| and often these events are very specific to an architecture/model of the
| CPU. To use most of these PMU events with perf, we currently have to identify
| them by their raw codes:
| 
| 	perf stat -e r100f2 sleep 1
| 
| This patchset allows architectures to specify these PMU events in JSON
| files located in 'tools/perf/pmu-events/arch/' of the mainline tree.
| The events from the JSON files for the architecture are then built into
| the perf binary.
| 
| At run time, perf identifies the specific set of events for the CPU and
| creates "event aliases". These aliases allow users to specify events by
| "name" as:
| 
| 	perf stat -e pm_1plus_ppc_cmpl sleep 1
| 
| The file, 'tools/perf/pmu-events/README' in [PATCH 16/16] gives more
| details.
| 
| Note:
| 	- All known events tables for the architecture are included in the
| 	  perf binary.
| 
| 	- For architectures that don't have any JSON files, an empty mapping
| 	  table is created and they should continue to build.
| 
| Thanks to input from Andi Kleen, Jiri Olsa, Namhyung Kim and Ingo Molnar.
| 
| These patches are available from:
| 
| 	https://github.com:sukadev/linux.git 
| 	
| 	Branch			Description
| 	------------------------------------------------------
| 	json-v16		Source Code only 
| 	json-files-6		x86 and Powerpc datafiles only
| 	json-v16-with-data	Both code and data (for build/test)

Arnaldo, Ingo,

I added Andi's patch https://lkml.org/lkml/2015/8/28/521 to 'json-v16' branch.
and created a new branch, 'json-files-7' with updated to Intel data files.
Here are the three new branches.

 	https://github.com:sukadev/linux.git 
 	
 	Branch			Description
 	------------------------------------------------------
 	json-v16		Source Code only 
 	json-files-7		x86 and Powerpc datafiles only
 	json-v16.1-with-data	Both code and data (for build/test)

Sukadev

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH v16 00/16] perf, tools: Add support for PMU events in JSON format Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> - 2015-08-26 08:10 +0200
  [PATCH v16 15/16] perf, tools: Handle header line in mapfile Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> - 2015-08-26 08:10 +0200
  [PATCH v16 14/16] perf, tools: Add support for event list topics Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> - 2015-08-26 08:10 +0200
  [PATCH v16 04/16] perf, tools: Support CPU ID matching for Powerpc Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> - 2015-08-26 08:10 +0200
  [PATCH v16 02/16] perf, tools, jevents: Program to convert JSON file to C style file Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> - 2015-08-26 08:10 +0200
  [PATCH v16 12/16] perf, tools: Support long descriptions with perf list Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> - 2015-08-26 08:20 +0200
  [PATCH v16 09/16] perf, tools: Add override support for event list CPUID Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> - 2015-08-26 08:20 +0200
  [PATCH v16 16/16] perf, tools: Add README for info on parsing JSON/map files Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> - 2015-08-26 08:20 +0200
  [PATCH v16 11/16] perf, tools: Add alias support for long descriptions Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> - 2015-08-26 08:20 +0200
  [PATCH v16 13/16] perf, tools, jevents: Add support for event topics Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> - 2015-08-26 08:20 +0200
  [PATCH v16 05/16] perf, tools: Support CPU id matching for x86 v2 Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> - 2015-08-26 08:20 +0200
  [PATCH v16 10/16] perf, tools, jevents: Add support for long descriptions Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> - 2015-08-26 08:20 +0200
  [PATCH v16 01/16] perf, tools: Add jsmn `jasmine' JSON parser Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> - 2015-08-26 08:20 +0200
  [PATCH v16 08/16] perf, tools: Add a --no-desc flag to perf list Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> - 2015-08-26 08:20 +0200
  Re: [PATCH v16 00/16] perf, tools: Add support for PMU events in  JSON format Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> - 2015-08-31 21:10 +0200

csiph-web