]> git.baikalelectronics.ru Git - kernel.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)
commitf23e34b2eb09838dde2ca6ac17ac7249957fcb80
treea967d3b052a5916b90d081b29491b0b934af4424
parentcc6fda9b3d2415d52bf1dfea93392c98a893113b
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