Skip to content

Commit 79ee47f

Browse files
ftang1acmel
authored andcommitted
perf annotate browser: Integrate script browser into annotation browser
Integrate the script browser into annotation, users can press function key 'r' to list all perf scripts and select one of them to run that script, the output will be shown in a separate browser. Signed-off-by: Feng Tang <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 6651782 commit 79ee47f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tools/perf/ui/browsers/annotate.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -676,8 +676,14 @@ static int annotate_browser__run(struct annotate_browser *browser, int evidx,
676676
"o Toggle disassembler output/simplified view\n"
677677
"s Toggle source code view\n"
678678
"/ Search string\n"
679+
"r Run available scripts\n"
679680
"? Search previous string\n");
680681
continue;
682+
case 'r':
683+
{
684+
script_browse(NULL);
685+
continue;
686+
}
681687
case 'H':
682688
nd = browser->curr_hot;
683689
break;

0 commit comments

Comments
 (0)