Skip to content

perf tools: Add support for multiline headers and spans

Jiri Olsa lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5perf tools: Introduce nr_header_lines into struct perf_hpp_listtools/perf/ui/browsers/hists.c tools/perf/ui/hist.c tools/perf/util/hist.h+14 -30 replies
2/5perf tools: Add line argument into perf_hpp_fmt's header callbacktools/perf/builtin-diff.c tools/perf/ui/browsers/hists.c tools/perf/ui/gtk/hists.c +4 more+14 -120 replies
3/5perf tools tui: Display multiple header linestools/perf/ui/browsers/hists.c+17 -80 replies
4/5perf tools stdio: Display multiple header linestools/perf/ui/stdio/hist.c+25 -90 replies
5/5perf tools: Add support for header spantools/perf/builtin-diff.c tools/perf/ui/browsers/hists.c tools/perf/ui/gtk/hists.c +4 more+25 -140 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/5] perf tools: Add support for multiline headers and spans

hi,
the c2c output readability heavily depends on headers being displayed on multiple lines and allowing span of some headers over multiple columns, like:

# Total %All Total ----- Core Load Hit ----- -- LLC Load Hit -- ----- LLC Load Hitm -----

# Index             Cacheline  records  Ld Miss    %hitm    Loads       FB       L1       L2       Llc       Rmt    Total      Lcl      Rmt
# .....  ....................  .......  .......  .......  .......  .......  .......  .......  ........  ........  .......  .......  .......
#
      0        0x7fbe65acee00      203    2.37%    3.34%      162       26       72        0        20         2       39       11       28

I haven't found use for this under current perf code, so there's no actual current user in perf code of those features.

Also available in:
git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
perf/fixes

thanks,
jirka

---
Jiri Olsa (5):
perf tools: Introduce nr_header_lines into struct perf_hpp_list perf tools: Add line argument into perf_hpp_fmt's header callback perf tools tui: Display multiple header lines
perf tools stdio: Display multiple header lines
perf tools: Add support for header span

 tools/perf/builtin-diff.c      |  4 +++-
 tools/perf/ui/browsers/hists.c | 48 +++++++++++++++++++++++++++++++++++-------------
 tools/perf/ui/gtk/hists.c      |  2 +-
 tools/perf/ui/hist.c           |  4 +++-
 tools/perf/ui/stdio/hist.c     | 45 ++++++++++++++++++++++++++++++++-------------
 tools/perf/util/hist.h         |  3 ++-
 tools/perf/util/sort.c         |  7 +++++--
 7 files changed, 81 insertions(+), 32 deletions(-)