Skip to content

perf tools: Various updates

Robert Richter lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8perf tools: Fix type for evsel->ids and add size check for idstools/perf/util/evsel.h tools/perf/util/header.c tools/perf/util/header.h+9 -61 reply
2/8perf tools: Report number of pmu type of unknown eventstools/perf/util/evsel.c+2 -11 reply
3/8perf tools: Rename some variables for better understandingtools/perf/util/header.c+21 -212 replies
4/8perf tools: Rename global variable 'events' in util/header.ctools/perf/util/header.c+20 -201 reply
5/8perf tools: Catch event names from command linetools/perf/util/parse-events.c tools/perf/util/parse-events.h tools/perf/util/parse-events.l +1 more+71 -126 replies
6/8perf tools: Refactor print_event_desc()tools/perf/util/header.c+93 -411 reply
7/8perf report: Update event names from header descriptiontools/perf/util/header.c+51 -11 reply
8/8perf tools: Add pmu mappings to header informationtools/perf/util/header.c tools/perf/util/header.h tools/perf/util/pmu.c +1 more+129 -21 reply

Reviews trailers per patch

1 of 8 patches has a Reviewed-by or Acked-by.

PatchPeter Zijlstra
1/8
2/8
3/8
4/8
5/8
6/8
7/8
8/8A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/8] perf tools: Various updates

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(-)
Signature · 1 line
1.7.8.6