]> www.infradead.org Git - users/hch/misc.git/commit
perf report/top: Improve toggle callchain menu option
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 12 Dec 2019 14:48:23 +0000 (11:48 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 6 Jan 2020 14:46:10 +0000 (11:46 -0300)
commitbdc633fec50be7e6856b9dee89af9bb7c5e9a04f
treea967d3b052a5916b90d081b29491b0b934af4424
parentd5a599d9890f51cb2cabfa21f8c38bb6f51f4bb2
perf report/top: Improve toggle callchain menu option

Taking into account the current status of the callchain, i.e. if folded,
show "Expand", otherwise "Collapse", also show the name of the entry
that will be affected and mention the hotkeys for expanding/collapsing
all callchains below the main entry, the one that appears with/without
callchains.

Reviewed-by: Jiri Olsa <jolsa@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jin Yao <yao.jin@linux.intel.com>
Cc: Kan Liang <kan.liang@intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-03arm6poo8463k5tfcfp7gkk@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/ui/browsers/hists.c
tools/perf/util/sort.c
tools/perf/util/sort.h