linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] perf report: Support custom output fields in hierarchy mode
@ 2025-03-31  7:37 Namhyung Kim
  2025-03-31  7:37 ` [PATCH 1/4] perf hist: Remove formats in hierarchy when cancel children Namhyung Kim
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Namhyung Kim @ 2025-03-31  7:37 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo, Ian Rogers, Kan Liang
  Cc: Jiri Olsa, Adrian Hunter, Peter Zijlstra, Ingo Molnar, LKML,
	linux-perf-users

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
-- 
2.49.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-04-23 20:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-31  7:37 [PATCH 0/4] perf report: Support custom output fields in hierarchy mode Namhyung Kim
2025-03-31  7:37 ` [PATCH 1/4] perf hist: Remove formats in hierarchy when cancel children Namhyung Kim
2025-03-31  7:37 ` [PATCH 2/4] perf hist: Remove formats in hierarchy when cancel latency Namhyung Kim
2025-03-31  7:37 ` [PATCH 3/4] perf hist: Set levels in output_field_add() Namhyung Kim
2025-03-31  7:37 ` [PATCH 4/4] perf hist: Allow custom output fields in hierarchy mode Namhyung Kim
2025-04-23 20:46 ` [PATCH 0/4] perf report: Support " Arnaldo Carvalho de Melo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).