Skip to content

perf tools: Assorted cleanup for TUI (v3)

Namhyung Kim lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 19 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10perf tools: Move TUI-specific fields into unnamed uniontools/perf/util/sort.h+12 -61 reply
2/10perf tools: Move init_have_children field to the unnamed uniontools/perf/util/sort.h+1 -10 replies
3/10perf hists browser: Fix possible memory leaktools/perf/ui/browsers/hists.c+5 -30 replies
4/10perf hists browser: Save hist_browser_timer pointer in hist_browsertools/perf/ui/browsers/hists.c+8 -50 replies
5/10perf hists browser: Save pstack in the hist_browsertools/perf/ui/browsers/hists.c+10 -100 replies
6/10perf hists browser: Save perf_session_env in the hist_browsertools/perf/ui/browsers/hists.c+5 -20 replies
7/10perf hists browser: Split popup menu actionstools/perf/ui/browsers/hists.c+156 -860 replies
8/10perf hists browser: Split popup menu actions - part 2tools/perf/ui/browsers/hists.c+214 -1407 replies
9/10perf hists browser: Simplify zooming code a bittools/perf/ui/browsers/hists.c tools/perf/util/pstack.c tools/perf/util/pstack.h+13 -133 replies
10/10perf tools: Move TUI-specific fields out of map_symboltools/perf/ui/browsers/hists.c tools/perf/util/callchain.h tools/perf/util/hist.c +2 more+33 -3414 replies

Reviews trailers per patch

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

PatchJiri Olsa
SeriesA-b
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10A-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 00/10] perf tools: Assorted cleanup for TUI (v3)

Hello,

This patches are to cleanup TUI hists browser code for later work. I moved hist_entry_diff and hist_entry_tui under an union in order to reduce memory footprint of hist entry. Also split out hist browser functions to make it easier to read.

* changed in v3)
- save necessary info in hist_browser (Arnaldo)
- rename to struct popup_action (Arnaldo)
- split popup registration and callback (Arnaldo)
- move TUI-specific fields out of map_symbol

* changes in v2)
- add comment on the new union fields (Jiri)
- add missing sym->namelen check (Jiri)
- fix transient bug in zoom out on LEFT key press (Jiri)

It's available on 'perf/tui-cleanup-v3' branch in my tree:

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

Thanks,
Namhyung

Namhyung Kim (10):
perf tools: Move TUI-specific fields into unnamed union perf tools: Move init_have_children field to the unnamed union perf hists browser: Fix possible memory leak
perf hists browser: Save hist_browser_timer pointer in hist_browser perf hists browser: Save pstack in the hist_browser
perf hists browser: Save perf_session_env in the hist_browser perf hists browser: Split popup menu actions
perf hists browser: Split popup menu actions - part 2 perf hists browser: Simplify zooming code a bit
perf tools: Move TUI-specific fields out of map_symbol

 tools/perf/ui/browsers/hists.c | 603 +++++++++++++++++++++++++----------------
 tools/perf/util/callchain.h    |   4 +
 tools/perf/util/hist.c         |   2 +-
 tools/perf/util/pstack.c       |   7 +
 tools/perf/util/pstack.h       |   1 +
 tools/perf/util/sort.h         |  22 +-
 tools/perf/util/symbol.h       |   2 -
 7 files changed, 399 insertions(+), 242 deletions(-)
Signature · 1 line
2.3.5