Skip to content

perf tools: Cleanup hist printing code (v4)

Namhyung Kim lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v1 Latest posting 2/25 patches 15 repliesIn review
  2. v1 posting 1/25 patches 0 repliesSuperseded

v3 -> v4 from the cover letter

* Rebase to current acme/perf/core
* The first two in the previous series have been merged
* Rename hist_period_print to perf_hpp_fmt (Arnaldo)
* Rename ctx->s to hpp->buf (Arnaldo)

Patches in v1 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5perf hists: Introduce perf_hpp for hist period printingtools/perf/Makefile tools/perf/builtin-diff.c tools/perf/ui/hist.c +3 more+402 -2009 replies
2/5perf hists: Handle field separator properlytools/perf/ui/hist.c tools/perf/ui/stdio/hist.c+51 -271 reply
3/5perf hists: Use perf_hpp__format->width to calculate the column widthstools/perf/ui/hist.c tools/perf/util/hist.c+27 -331 reply
4/5perf ui/browser: Use perf_hpp__format functionstools/perf/ui/browsers/hists.c tools/perf/ui/tui/setup.c+76 -224 replies
5/5perf gtk/browser: Use perf_hpp__format functionstools/perf/ui/gtk/browser.c tools/perf/ui/gtk/gtk.h tools/perf/ui/gtk/setup.c+87 -161 reply

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchPekka EnbergRobert Richter
1/5T-b
2/5
3/5
4/5
5/5A-b A-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 RESEND 0/5] perf tools: Cleanup hist printing code (v4)

Hi,

This is a cleanup and refactoring patchset for the hist printing code by adding perf_hpp__format functions and perf_hpp. I believe it makes the code easy to maintain and to add new features like upcoming group viewing and callchain accumulation.

Any comments are welcome, thanks.
Namhyung

v3 -> v4:
* Rebase to current acme/perf/core
* The first two in the previous series have been merged
* Rename hist_period_print to perf_hpp_fmt (Arnaldo)
* Rename ctx->s to hpp->buf (Arnaldo)

v2 -> v3:
* Move fprintf code to ui/stdio/hist.c (Arnaldo)
* Add ack from Pekka

Namhyung Kim (5):
perf hists: Introduce perf_hpp for hist period printing perf hists: Handle field separator properly
perf hists: Use perf_hpp__format->width to calculate the column widths perf ui/browser: Use perf_hpp__format functions
perf gtk/browser: Use perf_hpp__format functions

 tools/perf/Makefile            |   2 +
 tools/perf/builtin-diff.c      |   1 +
 tools/perf/ui/browsers/hists.c |  94 ++++++++---
 tools/perf/ui/gtk/browser.c    | 101 ++++++++++--
 tools/perf/ui/gtk/gtk.h        |   1 +
 tools/perf/ui/gtk/setup.c      |   1 +
 tools/perf/ui/hist.c           | 366 +++++++++++++++++++++++++++++++++++++++++
 tools/perf/ui/setup.c          |   8 +-
 tools/perf/ui/stdio/hist.c     | 239 +++++----------------------
 tools/perf/ui/tui/setup.c      |   4 +
 tools/perf/util/hist.c         |  33 ----
 tools/perf/util/hist.h         |  37 +++++
 12 files changed, 616 insertions(+), 271 deletions(-)
 create mode 100644 tools/perf/ui/hist.c
Signature · 1 line
1.7.11.4