Skip to content

perf stat: Cleanup perf stat output display (v1)

Namhyung Kim linux-perf-users lkml 1 version Applied

Status from this message: Thanks, applied to perf/urgent.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 14 repliesApplied

Patches in v1 Applied

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

Reviews trailers per patch

6 of 9 patches have a Reviewed-by or Acked-by.

PatchIan Rogers
1/9
2/9A-b
3/9
4/9A-b
5/9
6/9A-b
7/9A-b
8/9A-b
9/9A-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 0/9] perf stat: Cleanup perf stat output display (v1)

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.

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

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

Thanks,
Namhyung

Namhyung Kim (9):
perf stat: Fix crash with --per-node --metric-only in CSV mode perf stat: Increase metric length to align outputs perf stat: Clear screen only if output file is a tty perf stat: Move common code in print_metric_headers() perf stat: Fix --metric-only --json output
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

 tools/perf/util/stat-display.c | 55 ++++++++++++++--------------------
 1 file changed, 23 insertions(+), 32 deletions(-)

base-commit: 96e6d929a6c3368ad6327a52f870294747888c77

Signature · 1 line
2.38.1.431.g37b22c650d-goog