linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/8] perf tools: Various updates
@ 2012-08-16 19:10 Robert Richter
  2012-08-16 19:10 ` [PATCH 1/8] perf tools: Fix type for evsel->ids and add size check for ids Robert Richter
                   ` (8 more replies)
  0 siblings, 9 replies; 24+ messages in thread
From: Robert Richter @ 2012-08-16 19:10 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo
  Cc: Ingo Molnar, Peter Zijlstra, Jiri Olsa, LKML, Robert Richter

This patch set contains various perf tools updates. Most patches deal
with event naming. If the event name is unknown it is named like the
command line string of it. This is esp. valueable for pmu events like
for AMD IBS:

     $ perf report | grep '^#.*event'
     # event : name = ibs_op/cnt_ctl=1/GH, type = 7, config = 0x80000, config1 = 0x0, config2 = 0x0, excl_usr = 0, excl_kern = 0, excl_host = 0, excl_guest = 0, precise_ip = 0, id = { 
     # event : name = ibs_fetch/config=0/, type = 6, config = 0x0, config1 = 0x0, config2 = 0x0, excl_usr = 0, excl_kern = 0, excl_host = 0, excl_guest = 1, precise_ip = 0, id = { 57, 
     # Samples: 20K of event 'ibs_op/cnt_ctl=1/GH'
     # Samples: 4K of event 'ibs_fetch/config=0/'

Another patch stores the pmu/type mapping in the header of perf.data.
Now the pmu types are known and event can be attributed to a certain
dynamically allocated pmu:

     # pmu mappings: ibs_op = 7, ibs_fetch = 6, cpu = 4, breakpoint = 5, tracepoint = 2, software = 1

This is usefull for analysing the perf.data file on a system where the
pmu mappings are no longer available, e.g. on a remote system or if
the pmu has been unregistered.

Patches base on commit 0c21f736e0a37c50f66ab248d2a52f711b28a4e4
(acme/perf/core):

  perf evlist: Introduce evsel list accessors (2012-08-15 10:14:18 -0300)

-Robert

Robert Richter (8):
  perf tools: Fix type for evsel->ids and add size check for ids
  perf tools: Report number of pmu type of unknown events
  perf tools: Rename some variables for better understanding
  perf tools: Rename global variable 'events' in util/header.c
  perf tools: Catch event names from command line
  perf tools: Refactor print_event_desc()
  perf report: Update event names from header description
  perf tools: Add pmu mappings to header information

 tools/perf/util/evsel.c        |    3 +-
 tools/perf/util/evsel.h        |    2 +-
 tools/perf/util/header.c       |  357 ++++++++++++++++++++++++++++++----------
 tools/perf/util/header.h       |    3 +-
 tools/perf/util/parse-events.c |   12 ++
 tools/perf/util/parse-events.h |    1 +
 tools/perf/util/parse-events.l |   50 +++++-
 tools/perf/util/parse-events.y |   20 ++-
 tools/perf/util/pmu.c          |   50 ++++++-
 tools/perf/util/pmu.h          |    2 +
 10 files changed, 396 insertions(+), 104 deletions(-)

-- 
1.7.8.6



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

end of thread, other threads:[~2012-08-27 16:57 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-16 19:10 [PATCH 0/8] perf tools: Various updates Robert Richter
2012-08-16 19:10 ` [PATCH 1/8] perf tools: Fix type for evsel->ids and add size check for ids Robert Richter
2012-08-21 16:24   ` [tip:perf/core] perf tools: Fix type for evsel-> ids " tip-bot for Robert Richter
2012-08-16 19:10 ` [PATCH 2/8] perf tools: Report number of pmu type of unknown events Robert Richter
2012-08-21 16:25   ` [tip:perf/core] " tip-bot for Robert Richter
2012-08-16 19:10 ` [PATCH 3/8] perf tools: Rename some variables for better understanding Robert Richter
2012-08-17 15:34   ` Arnaldo Carvalho de Melo
2012-08-21 16:26   ` [tip:perf/core] " tip-bot for Robert Richter
2012-08-16 19:10 ` [PATCH 4/8] perf tools: Rename global variable 'events' in util/header.c Robert Richter
2012-08-21 16:27   ` [tip:perf/core] " tip-bot for Robert Richter
2012-08-16 19:10 ` [PATCH 5/8] perf tools: Catch event names from command line Robert Richter
2012-08-20 17:42   ` Jiri Olsa
2012-08-21 18:02     ` Robert Richter
2012-08-21 18:03     ` [PATCH 1/2] perf test: Update event names in test cases Robert Richter
2012-08-21 18:03       ` [PATCH 2/2] perf test: Do not abort tests on error Robert Richter
2012-08-27 16:53         ` [tip:perf/core] " tip-bot for Robert Richter
2012-08-27 16:54   ` [tip:perf/core] perf tools: Catch event names from command line tip-bot for Robert Richter
2012-08-16 19:10 ` [PATCH 6/8] perf tools: Refactor print_event_desc() Robert Richter
2012-08-27 16:55   ` [tip:perf/core] " tip-bot for Robert Richter
2012-08-16 19:10 ` [PATCH 7/8] perf report: Update event names from header description Robert Richter
2012-08-27 16:56   ` [tip:perf/core] " tip-bot for Robert Richter
2012-08-16 19:10 ` [PATCH 8/8] perf tools: Add pmu mappings to header information Robert Richter
2012-08-27 16:57   ` [tip:perf/core] " tip-bot for Robert Richter
2012-08-17 16:18 ` [PATCH 0/8] perf tools: Various updates Arnaldo Carvalho de Melo

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