Skip to content

perf tools: fix perf stat with large socket IDs

James Clark linux-arm-kernel linux-perf-users lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest12 patches 5 repliesIn review
  2. v512 patches 2 repliesSuperseded
  3. v413 patches 9 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v313 patches0 repliesSuperseded

Changes in v6 from the cover letter

* Fix test for cpu_map__get_die() by shifting id before testing.
* Fix test for cpu_map__get_socket() by not using cpu_map__id_to_socket() which is only valid in CPU aggregation mode.

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12perf tools: Improve topology testtools/perf/tests/topology.c+46 -70 replies
2/12perf tools: Use allocator for perf_cpu_maptools/perf/util/cpumap.c+4 -40 replies
3/12perf tools: Add new struct for cpu aggregationtools/perf/util/cpumap.c tools/perf/util/cpumap.h+26 -00 replies
4/12perf tools: Replace aggregation ID with a structtools/perf/builtin-stat.c tools/perf/tests/topology.c tools/perf/util/cpumap.c +4 more+173 -1270 replies
5/12perf tools: add new map type for aggregationtools/perf/util/cpumap.c tools/perf/util/cpumap.h+25 -00 replies
6/12perf tools: drop in cpu_aggr_map structtools/perf/builtin-stat.c tools/perf/util/cpumap.c tools/perf/util/cpumap.h +1 more+35 -200 replies
7/12perf tools: Start using cpu_aggr_id in maptools/perf/builtin-stat.c tools/perf/util/cpumap.c tools/perf/util/cpumap.h +1 more+11 -110 replies
8/12perf tools: Add separate node membertools/perf/builtin-stat.c tools/perf/tests/topology.c tools/perf/util/cpumap.c +2 more+21 -80 replies
9/12perf tools: Add separate socket membertools/perf/builtin-stat.c tools/perf/tests/topology.c tools/perf/util/cpumap.c +3 more+41 -510 replies
10/12perf tools: Add separate die membertools/perf/builtin-stat.c tools/perf/tests/topology.c tools/perf/util/cpumap.c +2 more+26 -360 replies
11/12perf tools: Add separate core membertools/perf/builtin-stat.c tools/perf/tests/topology.c tools/perf/util/cpumap.c +2 more+27 -280 replies
12/12perf tools: Add separate thread membertools/perf/tests/topology.c tools/perf/util/cpumap.c tools/perf/util/cpumap.h +1 more+16 -160 replies

Reviews trailers per patch

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

PatchNamhyung KimJiri OlsaJohn Garry
SeriesA-b A-b T-b
1/12
2/12
3/12
4/12
5/12
6/12
7/12
8/12
9/12
10/12
11/12
12/12

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v6 thread

Cover letter [PATCH v6 00/12] perf tools: fix perf stat with large socket IDs

Changes since v5:
* Fix test for cpu_map__get_die() by shifting id before testing.
* Fix test for cpu_map__get_socket() by not using cpu_map__id_to_socket() which is only valid in CPU aggregation mode.

James Clark (12):
perf tools: Improve topology test
perf tools: Use allocator for perf_cpu_map perf tools: Add new struct for cpu aggregation perf tools: Replace aggregation ID with a struct perf tools: add new map type for aggregation perf tools: drop in cpu_aggr_map struct perf tools: Start using cpu_aggr_id in map perf tools: Add separate node member perf tools: Add separate socket member perf tools: Add separate die member
perf tools: Add separate core member perf tools: Add separate thread member

 tools/perf/builtin-stat.c      | 128 ++++++++++++------------
 tools/perf/tests/topology.c    |  64 ++++++++++--
 tools/perf/util/cpumap.c       | 171 ++++++++++++++++++++++-----------
 tools/perf/util/cpumap.h       |  55 ++++++-----
 tools/perf/util/stat-display.c | 102 ++++++++++++--------
 tools/perf/util/stat.c         |   2 +-
 tools/perf/util/stat.h         |   9 +-
 7 files changed, 337 insertions(+), 194 deletions(-)
Signature · 1 line
2.28.0