Skip to content

perf: Support a new 'percore' event qualifier

Jin Yao lkml 4 versions – Applied

Status from this message: Thanks, applied.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 5 repliesApplied
  2. v34 patches 5 repliesSuperseded
  3. v24 patches 3 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches6 repliesSuperseded

Changes in v4 from the cover letter

---
Add percore qualifier to documantation.
Rebase to latest perf/core branch

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/4perf: Add a 'percore' event qualifiertools/perf/Documentation/perf-list.txt tools/perf/util/evsel.c tools/perf/util/evsel.h +3 more+46 -00 replies
2/4perf stat: Factor out aggregate counts printingtools/perf/util/stat-display.c+39 -250 replies
3/4perf stat: Support 'percore' event qualifiertools/perf/Documentation/perf-stat.txt tools/perf/builtin-stat.c tools/perf/util/stat-display.c +1 more+69 -73 replies
4/4perf test: Add a simple test for term 'percore'tools/perf/tests/parse-events.c+9 -10 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJiri OlsaRavi Bangoria
SeriesA-b
1/4
2/4
3/4T-b
4/4

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

Read the v4 thread

Cover letter [PATCH v4 0/4] perf: Support a new 'percore' event qualifier

The 'percore' event qualifier which sums up the event counts for both hardware threads in a core. For example,

perf stat -e cpu/event=0,umask=0x3,percore=1/,cpu/event=0,umask=0x3/

In this example, we count the event 'ref-cycles' per-core and per-CPU in one perf stat command-line.

We can already support per-core counting with --per-core, but it's often useful to do this together with other metrics that are collected per CPU (per hardware thread). So this patch series supports this per-core counting on a event level.

v4:
---
Add percore qualifier to documantation.
Rebase to latest perf/core branch

v3:
---
Simplify the patch: "perf: Add a 'percore' event qualifier" Other patches don't have changes.

v2:
---
1. Change 'coresum' to 'percore'.
2. Move the aggregate counts printing to a seperate patch.

Jin Yao (4):
perf: Add a 'percore' event qualifier
perf stat: Factor out aggregate counts printing
perf stat: Support 'percore' event qualifier
perf test: Add a simple test for term 'percore'

 tools/perf/Documentation/perf-list.txt |  12 ++++
 tools/perf/Documentation/perf-stat.txt |   4 ++
 tools/perf/builtin-stat.c              |  21 +++++++
 tools/perf/tests/parse-events.c        |  10 ++-
 tools/perf/util/evsel.c                |   2 +
 tools/perf/util/evsel.h                |   3 +
 tools/perf/util/parse-events.c         |  27 +++++++++
 tools/perf/util/parse-events.h         |   1 +
 tools/perf/util/parse-events.l         |   1 +
 tools/perf/util/stat-display.c         | 107 ++++++++++++++++++++++++---------
 tools/perf/util/stat.c                 |   8 ++-
 11 files changed, 163 insertions(+), 33 deletions(-)
Signature · 1 line
2.7.4