]> git.baikalelectronics.ru Git - kernel.git/commit
perf hists browser: Dynamically change verbosity level
authorAlexis Berlemont <alexis.berlemont@gmail.com>
Wed, 12 Oct 2016 21:48:23 +0000 (23:48 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 24 Oct 2016 14:07:42 +0000 (11:07 -0300)
commit17d45d93570ecb44cd5e3bb7bdc910c87f6677a4
tree7794155f0af8bdf9b083bba61c6cc5437cedba3f
parent727479908031365bdd693d260c1ce8bf033bec89
perf hists browser: Dynamically change verbosity level

Here is a small patch which tries to fulfill a point in the perf todo
list:

* Make pressing 'V' multiple times to go on cycling thru various
  verbosity levels in 'perf top', so that info that is present in
  'perf top -v' can be obtained without having to restart the tool
  (acme).

After a small grep in the code, the max verbosity level seems 3; so,
we cycle at 4; I did not dare define a MAX_VERBOSE_LEVEL constant.

Signed-off-by: Alexis Berlemont <alexis.berlemont@gmail.com>
Suggested-and-Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20161012214823.14324-2-alexis.berlemont@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/ui/browsers/hists.c
tools/perf/util/map.c