Skip to content

perf stat: Cleanup perf stat output display (v2)

Namhyung Kim linux-perf-users lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11perf stat: Fix crash with --per-node --metric-only in CSV modetools/perf/util/stat-display.c+3 -11 reply
2/11perf stat: Move common code in print_metric_headers()tools/perf/util/stat-display.c+8 -50 replies
3/11perf stat: Fix --metric-only --json outputtools/perf/util/stat-display.c+3 -191 reply
4/11perf stat: Increase metric length to align outputstools/perf/util/stat-display.c+1 -10 replies
5/11perf stat: Clear screen only if output file is a ttytools/perf/builtin-stat.c+8 -01 reply
6/11perf stat: Do not indent headers for JSONtools/perf/util/stat-display.c+1 -10 replies
7/11perf stat: Add header for interval in JSON outputtools/perf/util/stat-display.c+4 -00 replies
8/11perf stat: Fix condition in print_interval()tools/perf/util/stat-display.c+2 -20 replies
9/11perf stat: Consolidate condition to print metricstools/perf/util/stat-display.c+1 -30 replies
10/11perf stat: Fix summary output in CSV with --metric-onlytools/perf/util/stat-display.c+8 -31 reply
11/11perf stat: Add missing separator in the CSV headertools/perf/util/stat-display.c+2 -21 reply

Reviews trailers per patch

All 11 patches have a Reviewed-by or Acked-by.

PatchIan Rogers
1/11A-b
2/11A-b
3/11A-b
4/11A-b
5/11A-b
6/11A-b
7/11A-b
8/11A-b
9/11A-b
10/11A-b
11/11A-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 [PATCHSET 00/11] perf stat: Cleanup perf stat output display (v2)

Hello,

I'm working on cleaning up the perf stat code and found a number of issues. Before moving on to the real changes, I'd like to fix those first. I'll think about how to test this properly.

changes in v2)
* move applied patches to the beginning (Arnaldo)
* make it error to use --interval-clear with other output (Ian)
* add two more patches for CSV output
* add Acked-by from Ian

You can get it from 'perf/stat-cleanup-v2' branch in

git://git.kernel.org/pub/scm/linux/kernel/git/namhyung/linux-perf.git

Thanks,
Namhyung

Namhyung Kim (11):
perf stat: Fix crash with --per-node --metric-only in CSV mode perf stat: Move common code in print_metric_headers() perf stat: Fix --metric-only --json output
perf stat: Increase metric length to align outputs perf stat: Clear screen only if output file is a tty perf stat: Do not indent headers for JSON
perf stat: Add header for interval in JSON output perf stat: Fix condition in print_interval()
perf stat: Consolidate condition to print metrics perf stat: Fix summary output in CSV with --metric-only perf stat: Add missing separator in the CSV header

 tools/perf/builtin-stat.c      |  8 ++++
 tools/perf/util/stat-display.c | 68 ++++++++++++++++------------------
 2 files changed, 40 insertions(+), 36 deletions(-)

base-commit: 816815b852216f3aa3a43e2ce91c5510927cd61b

Signature · 1 line
2.38.1.493.g58b659f92b-goog