Skip to content

perf tools: Assorted cleanup for TUI (v1)

Namhyung Kim lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7perf tools: Get rid of position field from struct hist_entrytools/perf/util/sort.h+0 -10 replies
2/7perf diff: Make hist_entry_diff fields uniontools/perf/util/sort.h+8 -70 replies
3/7perf tools: Move TUI-specific fields to struct hist_entry_tuitools/perf/ui/browsers/hists.c tools/perf/util/hist.c tools/perf/util/sort.h+37 -342 replies
4/7perf tools: Move init_have_children field to struct hist_entry_tuitools/perf/ui/browsers/hists.c tools/perf/util/sort.h+3 -30 replies
5/7perf hists browser: Fix possible memory leaktools/perf/ui/browsers/hists.c+3 -22 replies
6/7perf hists browser: Split popup menu actionstools/perf/ui/browsers/hists.c+363 -2028 replies
7/7perf hists browser: Simplify zooming code a bittools/perf/ui/browsers/hists.c tools/perf/util/pstack.c tools/perf/util/pstack.h+13 -110 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCHSET 0/7] perf tools: Assorted cleanup for TUI (v1)

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.

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

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

Thanks,
Namhyung

Namhyung Kim (7):
perf tools: Get rid of position field from struct hist_entry perf diff: Make hist_entry_diff fields union
perf tools: Move TUI-specific fields to struct hist_entry_tui perf tools: Move init_have_children field to struct hist_entry_tui perf hists browser: Fix possible memory leak
perf hists browser: Split popup menu actions
perf hists browser: Simplify zooming code a bit

 tools/perf/ui/browsers/hists.c | 612 ++++++++++++++++++++++++++---------------
 tools/perf/util/hist.c         |   4 +-
 tools/perf/util/pstack.c       |   7 +
 tools/perf/util/pstack.h       |   1 +
 tools/perf/util/sort.h         |  31 ++-
 5 files changed, 411 insertions(+), 244 deletions(-)
Signature · 1 line
2.3.5