Skip to content

perf report: Add support for event group view (v3)

Namhyung Kim lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest20 patches 10 repliesIn review

v2 -> v3 from the cover letter

* drop patch 1 since it's merged into acme/perf/core
* cherry-pick Jiri's hpp changes
* add missing bswap_32 on reading nr_groups (Jiri)
* remove perf_evlist__recalc_nr_groups() in favor of list_is_last (Jiri)

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/20perf hists: Add struct hists pointer to struct hist_entrytools/perf/util/hist.c tools/perf/util/sort.h+3 -01 reply
2/20perf diff: Refactor diff displacement possition infotools/perf/builtin-diff.c tools/perf/builtin-report.c tools/perf/builtin-top.c +4 more+44 -401 reply
3/20perf hists: Separate overhead and baseline columnstools/perf/ui/hist.c tools/perf/ui/stdio/hist.c tools/perf/util/hist.h+58 -281 reply
4/20perf tools: Removing hists pair argument from output pathtools/perf/builtin-diff.c tools/perf/builtin-report.c tools/perf/builtin-top.c +3 more+13 -171 reply
5/20perf tool: Add hpp interface to enable/disable hpp columntools/perf/builtin-diff.c tools/perf/builtin-report.c tools/perf/ui/browsers/hists.c +4 more+29 -151 reply
6/20perf diff: Removing the total_period argument from output codetools/perf/ui/browsers/hists.c tools/perf/ui/gtk/browser.c tools/perf/ui/hist.c +2 more+35 -261 reply
7/20perf hists: Introduce struct he_stattools/perf/ui/browsers/hists.c tools/perf/ui/gtk/browser.c tools/perf/ui/hist.c +3 more+59 -511 reply
8/20perf hists: Move he->stat.nr_events initialization to a templatetools/perf/util/hist.c+3 -11 reply
9/20perf hists: Add more helpers for hist entry stattools/perf/util/hist.c+18 -81 reply
10/20perf tools: Keep group informationtools/perf/util/evlist.c tools/perf/util/evlist.h tools/perf/util/evsel.h +3 more+31 -20 replies
11/20perf header: Add HEADER_GROUP_DESC featuretools/perf/builtin-record.c tools/perf/util/header.c tools/perf/util/header.h+157 -00 replies
11/20perf header: Add HEADER_GROUP_DESC featuretools/perf/builtin-record.c tools/perf/util/header.c tools/perf/util/header.h+157 -00 replies
12/20perf hists: Collapse group hist_entries to a leadertools/perf/util/evsel.h tools/perf/util/hist.c tools/perf/util/sort.h +2 more+112 -90 replies
13/20perf hists: Maintain total periods of group members in the leadertools/perf/util/hist.c tools/perf/util/hist.h+26 -00 replies
14/20perf report: Make another loop for output resortingtools/perf/builtin-report.c+5 -00 replies
15/20perf ui/hist: Add support for event group viewtools/perf/ui/hist.c tools/perf/ui/stdio/hist.c+63 -50 replies
16/20perf ui/browser: Add support for event group viewtools/perf/ui/browsers/hists.c tools/perf/ui/hist.c+35 -30 replies
17/20perf ui/gtk: Add support for event group viewtools/perf/ui/gtk/browser.c+46 -140 replies
18/20perf report: Bypass non-leader events when event group is enabledtools/perf/builtin-report.c tools/perf/ui/browsers/hists.c tools/perf/ui/gtk/browser.c+41 -60 replies
19/20perf report: Show group description when event group is enabledtools/perf/builtin-report.c tools/perf/ui/browsers/hists.c tools/perf/ui/gtk/browser.c +2 more+93 -30 replies
20/20perf report: Add --group optiontools/perf/builtin-report.c+2 -00 replies

Reviews trailers per patch

None of the 21 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJiri Olsa
SeriesA-b
1/20
2/20
3/20
4/20
5/20
6/20
7/20
8/20
9/20
10/20
11/20
11/20
12/20
13/20
14/20
15/20
16/20
17/20
18/20
19/20
20/20

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

Read the v1 thread

Cover letter [PATCH 00/20] perf report: Add support for event group view (v3)

Hi,

This is my v3 of event group view support.
For basic idea and usage example, please see my original post [1].

I rebased the series on top of selected hpp changes from Jiri's diff patchset [2] since it contains cleanups and improves that can be used in this series too.

You can also get it via my tree at:

git://git.kernel.org/pub/scm/linux/kernel/git/namhyung/linux-perf.git perf/group-v3

Any comments are welcome, thanks,
Namhyung

v2 -> v3:
* drop patch 1 since it's merged into acme/perf/core
* cherry-pick Jiri's hpp changes
* add missing bswap_32 on reading nr_groups (Jiri)
* remove perf_evlist__recalc_nr_groups() in favor of list_is_last (Jiri)

v1 -> v2:
* save group relation to header (Jiri)

[1] https://lkml.org/lkml/2012/7/24/81
[2] https://lkml.org/lkml/2012/9/27/254

Jiri Olsa (6):
perf hists: Add struct hists pointer to struct hist_entry perf diff: Refactor diff displacement possition info perf hists: Separate overhead and baseline columns perf tools: Removing hists pair argument from output path perf tool: Add hpp interface to enable/disable hpp column perf diff: Removing the total_period argument from output code

Namhyung Kim (14):
perf hists: Introduce struct he_stat
perf hists: Move he->stat.nr_events initialization to a template perf hists: Add more helpers for hist entry stat
perf tools: Keep group information
perf header: Add HEADER_GROUP_DESC feature
perf hists: Collapse group hist_entries to a leader perf hists: Maintain total periods of group members in the leader perf report: Make another loop for output resorting perf ui/hist: Add support for event group view
perf ui/browser: Add support for event group view
perf ui/gtk: Add support for event group view
perf report: Bypass non-leader events when event group is enabled perf report: Show group description when event group is enabled perf report: Add --group option

 tools/perf/builtin-diff.c      |   68 ++++++++++----
 tools/perf/builtin-record.c    |    3 +
 tools/perf/builtin-report.c    |   33 ++++++-
 tools/perf/builtin-top.c       |    2 +-
 tools/perf/ui/browsers/hists.c |  115 +++++++++++++++++++---
 tools/perf/ui/gtk/browser.c    |   74 ++++++++++++---
 tools/perf/ui/hist.c           |  204 +++++++++++++++++++++++++++++-----------
 tools/perf/ui/setup.c          |    2 +-
 tools/perf/ui/stdio/hist.c     |   47 ++++-----
 tools/perf/util/evlist.c       |   10 +-
 tools/perf/util/evlist.h       |    1 +
 tools/perf/util/evsel.c        |   25 +++++
 tools/perf/util/evsel.h        |   23 +++++
 tools/perf/util/header.c       |  152 ++++++++++++++++++++++++++++++
 tools/perf/util/header.h       |    2 +
 tools/perf/util/hist.c         |  195 ++++++++++++++++++++++++++++++++------
 tools/perf/util/hist.h         |   12 +--
 tools/perf/util/parse-events.c |    1 +
 tools/perf/util/parse-events.h |    1 +
 tools/perf/util/parse-events.y |   10 ++
 tools/perf/util/sort.h         |   20 ++--
 tools/perf/util/symbol.c       |    4 +
 tools/perf/util/symbol.h       |    3 +-
 23 files changed, 826 insertions(+), 181 deletions(-)
Signature · 1 line
1.7.9.2