All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
To: mingo@redhat.com, ak@linux.intel.com,
	Michael Ellerman <mpe@ellerman.id.au>,
	Jiri Olsa <jolsa@redhat.com>,
	Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: namhyung@kernel.org, maddy@linux.vnet.ibm.com,
	linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v16 00/16] perf, tools: Add support for PMU events in JSON format
Date: Mon, 31 Aug 2015 12:05:21 -0700	[thread overview]
Message-ID: <20150831190521.GC31119@us.ibm.com> (raw)
In-Reply-To: <1440569166-22169-1-git-send-email-sukadev@linux.vnet.ibm.com>

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

  parent reply	other threads:[~2015-08-31 19:08 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-26  6:05 [PATCH v16 00/16] perf, tools: Add support for PMU events in JSON format Sukadev Bhattiprolu
2015-08-26  6:05 ` [PATCH v16 01/16] perf, tools: Add jsmn `jasmine' JSON parser Sukadev Bhattiprolu
2015-08-26  6:05 ` [PATCH v16 02/16] perf, tools, jevents: Program to convert JSON file to C style file Sukadev Bhattiprolu
2015-08-26  6:05 ` [PATCH v16 03/16] perf, tools: Use pmu_events table to create aliases Sukadev Bhattiprolu
2015-08-26  6:05 ` [PATCH v16 04/16] perf, tools: Support CPU ID matching for Powerpc Sukadev Bhattiprolu
2015-08-26  6:05 ` [PATCH v16 05/16] perf, tools: Support CPU id matching for x86 v2 Sukadev Bhattiprolu
2015-08-26  6:05 ` [PATCH v16 06/16] perf, tools: Support alias descriptions Sukadev Bhattiprolu
2015-08-26  6:05 ` [PATCH v16 07/16] perf, tools: Query terminal width and use in perf list Sukadev Bhattiprolu
2015-08-26  6:05 ` [PATCH v16 08/16] perf, tools: Add a --no-desc flag to " Sukadev Bhattiprolu
2015-08-26  6:05 ` [PATCH v16 09/16] perf, tools: Add override support for event list CPUID Sukadev Bhattiprolu
2015-08-26  6:06 ` [PATCH v16 10/16] perf, tools, jevents: Add support for long descriptions Sukadev Bhattiprolu
2015-08-26  6:06 ` [PATCH v16 11/16] perf, tools: Add alias " Sukadev Bhattiprolu
2015-08-26  6:06 ` [PATCH v16 12/16] perf, tools: Support long descriptions with perf list Sukadev Bhattiprolu
2015-08-26  6:06 ` [PATCH v16 13/16] perf, tools, jevents: Add support for event topics Sukadev Bhattiprolu
2015-08-26  6:06 ` [PATCH v16 14/16] perf, tools: Add support for event list topics Sukadev Bhattiprolu
2015-08-26  6:06 ` [PATCH v16 15/16] perf, tools: Handle header line in mapfile Sukadev Bhattiprolu
2015-08-26  6:06 ` [PATCH v16 16/16] perf, tools: Add README for info on parsing JSON/map files Sukadev Bhattiprolu
2015-08-31 19:05 ` Sukadev Bhattiprolu [this message]
2015-09-10 18:06   ` [PATCH v16 00/16] perf, tools: Add support for PMU events in JSON format Sukadev Bhattiprolu
2015-09-10 19:00     ` Arnaldo Carvalho de Melo
2015-09-21 18:56     ` 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=20150831190521.GC31119@us.ibm.com \
    --to=sukadev@linux.vnet.ibm.com \
    --cc=acme@kernel.org \
    --cc=ak@linux.intel.com \
    --cc=jolsa@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=maddy@linux.vnet.ibm.com \
    --cc=mingo@redhat.com \
    --cc=mpe@ellerman.id.au \
    --cc=namhyung@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.