Skip to content

perf report: Support custom output fields in hierarchy mode

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4perf hist: Remove formats in hierarchy when cancel childrentools/perf/builtin-report.c tools/perf/builtin-top.c tools/perf/ui/hist.c +1 more+22 -40 replies
2/4perf hist: Remove formats in hierarchy when cancel latencytools/perf/builtin-report.c tools/perf/ui/hist.c tools/perf/util/hist.h+16 -30 replies
3/4perf hist: Set levels in output_field_add()tools/perf/builtin-c2c.c tools/perf/util/sort.c tools/perf/util/sort.h+26 -150 replies
4/4perf hist: Allow custom output fields in hierarchy modetools/perf/builtin-report.c+4 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] perf report: Support custom output fields in hierarchy mode

Hello,

This is to remove arbitrary restrictions in the hierarchy mode.

The -F/--fields option is to specify output fields and sort keys in perf report exactly what users want. It was not allowed in the hierarchy mode because it missed to handle the field correctly.

This patchset addresses that problem and allows the option. It'd make the output more flexible. For example, this is possible:

  $ perf report -F overhead,comm,dso -H

Thanks,
Namhyung

Namhyung Kim (4):
perf hist: Remove formats in hierarchy when cancel children perf hist: Remove formats in hierarchy when cancel latency perf hist: Set levels in output_field_add()
perf hist: Allow custom output fields in hierarchy mode

 tools/perf/builtin-c2c.c    |  3 ++-
 tools/perf/builtin-report.c | 16 ++++++----------
 tools/perf/builtin-top.c    |  2 +-
 tools/perf/ui/hist.c        | 35 +++++++++++++++++++++++++++++++++--
 tools/perf/util/hist.h      |  4 ++--
 tools/perf/util/sort.c      | 36 +++++++++++++++++++++++-------------
 tools/perf/util/sort.h      |  2 +-
 7 files changed, 68 insertions(+), 30 deletions(-)

base-commit: 35d13f841a3d8159ef20d5e32a9ed3faa27875bc

Signature · 1 line
2.49.0