]> git.karo-electronics.de Git - karo-tx-linux.git/commit
perf scripts browser: Add a browser for perf script
authorFeng Tang <feng.tang@intel.com>
Tue, 30 Oct 2012 03:56:04 +0000 (11:56 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 29 Oct 2012 13:52:53 +0000 (11:52 -0200)
commit66517826664fa910d4bc5f32a5abff6bcd8657c5
tree0dfb8b6b1320c26f76e97367bb471f7dd07af3e7
parent49e639e256ea18fb92f609dd6be09883cd9d05aa
perf scripts browser: Add a browser for perf script

Create a script browser, so that user can check all the available
scripts for current perf data file and run them inside the main perf
report or annotation browsers, for all perf samples or for samples
belong to one thread/symbol.

Please be noted: current script browser is only for report use, and
doesn't cover the record phase, IOW it must run against one existing
perf data file.

The work flow is, users can use function key to list all the available
scripts for current perf data file in system and chose one, which will
be executed with popen("perf script -s xxx.xx",) and all the output
lines are put into one ui browser, pressing 'q' or left arrow key will
make it return to previous browser.

Signed-off-by: Feng Tang <feng.tang@intel.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1351569369-26732-4-git-send-email-feng.tang@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Makefile
tools/perf/ui/browsers/scripts.c [new file with mode: 0644]
tools/perf/util/hist.h