Skip to content

RFC perf tools: Introduce hists specific format entries

Jiri Olsa lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest26 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/26perf tools: Factor output_resort from hists__output_resorttools/perf/util/hist.c+15 -80 replies
2/26perf tools: Introduce perf_evsel__output_resort functiontools/perf/builtin-annotate.c tools/perf/builtin-report.c tools/perf/builtin-top.c +5 more+23 -160 replies
3/26perf tools: Add _idx fields into struct perf_hpp_fmttools/perf/ui/hist.c tools/perf/util/hist.h+15 -110 replies
4/26perf tools: Use struct perf_hpp_fmt::idx in perf_hpp__reset_widthtools/perf/ui/hist.c+2 -100 replies
5/26perf tools: Add equal method to perf_hpp_fmt structtools/perf/ui/hist.c tools/perf/util/hist.h tools/perf/util/sort.c+28 -220 replies
6/26perf tools: Add hpp__equal callback functiontools/perf/ui/hist.c+16 -00 replies
7/26perf tools: Make hpp setup function generictools/perf/ui/hist.c+8 -280 replies
8/26perf report: Move ui initialization ahead of sort setuptools/perf/builtin-report.c+9 -90 replies
9/26perf tools: Allocate output sort fieldtools/perf/ui/hist.c tools/perf/util/sort.c+47 -100 replies
10/26perf tools: Remove perf_hpp__column_(disable|enable)tools/perf/ui/hist.c tools/perf/util/hist.h+0 -140 replies
11/26perf tools: Properly release format fieldstools/perf/ui/hist.c tools/perf/util/hist.h tools/perf/util/sort.c+33 -00 replies
12/26perf tools: Separate sort fields parsing into setup_sort_list functiontools/perf/util/sort.c+22 -120 replies
13/26perf tools: Separate output fields parsing into setup_output_list functiontools/perf/util/sort.c+22 -120 replies
14/26perf tools: Introduce struct perf_hpp_listtools/perf/ui/hist.c tools/perf/util/hist.h+16 -113 replies
15/26perf tools: Introduce perf_hpp_list__init functiontools/perf/util/hist.c tools/perf/util/hist.h+8 -00 replies
16/26perf tools: Add perf_hpp_list register helperstools/perf/ui/hist.c tools/perf/util/hist.h+23 -90 replies
17/26perf tools: Pass perf_hpp_list all the way through setup_sort_listtools/perf/util/sort.c+19 -155 replies
18/26perf tools: Pass perf_hpp_list all the way through setup_output_listtools/perf/util/sort.c+18 -150 replies
19/26perf tools: Introduce perf_hpp_list__for_each_format macrotools/perf/ui/browsers/hists.c tools/perf/ui/gtk/hists.c tools/perf/ui/hist.c +3 more+22 -220 replies
20/26perf tools: Introduce perf_hpp_list__for_each_format_safe macrotools/perf/ui/hist.c tools/perf/util/hist.h+4 -40 replies
21/26perf tools: Introduce perf_hpp_list__for_each_sort_list macrotools/perf/ui/hist.c tools/perf/util/hist.c tools/perf/util/hist.h+7 -70 replies
22/26perf tools: Introduce perf_hpp_list__for_each_sort_list_safe macrotools/perf/ui/hist.c tools/perf/util/hist.h+3 -30 replies
23/26perf tools: Add struct perf_hpp_list argument to helper functionstools/perf/ui/hist.c tools/perf/util/hist.h tools/perf/util/sort.c+17 -150 replies
24/26perf tools: Add hpp_list into struct hists objecttools/perf/util/hist.c tools/perf/util/hist.h+5 -30 replies
25/26perf tools: Introduce hists__for_each_format macrotools/perf/ui/browsers/hists.c tools/perf/ui/gtk/hists.c tools/perf/ui/hist.c +2 more+16 -130 replies
26/26perf tools: Introduce hists__for_each_sort_list macrotools/perf/util/hist.c tools/perf/util/hist.h+9 -30 replies

Reviews trailers per patch

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

PatchNamhyung Kim
1/26
2/26
3/26
4/26
5/26
6/26
7/26
8/26
9/26
10/26
11/26
12/26
13/26
14/26
15/26
16/26
17/26A-b
18/26
19/26
20/26
21/26
22/26
23/26
24/26
25/26
26/26

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC 00/26] perf tools: Introduce hists specific format entries

hi,
currently we have global format sort and output lists. This rfc patchset introduces hists object based format entries to allow the hist object to carry specific format entries.

This will allow to have distinguished hist objects displaying different stuff in output.

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

thanks for comments,
jirka

---
Jiri Olsa (26):
perf tools: Factor output_resort from hists__output_resort perf tools: Introduce perf_evsel__output_resort function
perf tools: Add _idx fields into struct perf_hpp_fmt
perf tools: Use struct perf_hpp_fmt::idx in perf_hpp__reset_width perf tools: Add equal method to perf_hpp_fmt struct
perf tools: Add hpp__equal callback function
perf tools: Make hpp setup function generic
perf report: Move ui initialization ahead of sort setup
perf tools: Allocate output sort field
perf tools: Remove perf_hpp__column_(disable|enable)
perf tools: Properly release format fields
perf tools: Separate sort fields parsing into setup_sort_list function perf tools: Separate output fields parsing into setup_output_list function perf tools: Introduce struct perf_hpp_list
perf tools: Introduce perf_hpp_list__init function
perf tools: Add perf_hpp_list register helpers
perf tools: Pass perf_hpp_list all the way through setup_sort_list perf tools: Pass perf_hpp_list all the way through setup_output_list perf tools: Introduce perf_hpp_list__for_each_format macro perf tools: Introduce perf_hpp_list__for_each_format_safe macro perf tools: Introduce perf_hpp_list__for_each_sort_list macro perf tools: Introduce perf_hpp_list__for_each_sort_list_safe macro perf tools: Add struct perf_hpp_list argument to helper functions perf tools: Add hpp_list into struct hists object
perf tools: Introduce hists__for_each_format macro
perf tools: Introduce hists__for_each_sort_list macro

 tools/perf/builtin-annotate.c     |   2 +-
 tools/perf/builtin-report.c       |  20 ++++-----
 tools/perf/builtin-top.c          |  10 +++--
 tools/perf/tests/hists_cumulate.c |   2 +-
 tools/perf/tests/hists_filter.c   |   2 +-
 tools/perf/tests/hists_output.c   |  10 ++---
 tools/perf/ui/browsers/hists.c    |   8 ++--
 tools/perf/ui/gtk/hists.c         |   6 +--
 tools/perf/ui/hist.c              | 170 +++++++++++++++++++++++++++++++++++++----------------------------------
 tools/perf/ui/stdio/hist.c        |  10 ++---
 tools/perf/util/hist.c            |  47 ++++++++++++++------
 tools/perf/util/hist.h            |  65 ++++++++++++++++++++--------
 tools/perf/util/sort.c            | 231 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------------
 13 files changed, 359 insertions(+), 224 deletions(-)