From: Arnaldo Carvalho de Melo Date: Sat, 15 May 2010 23:45:31 +0000 (-0300) Subject: perf newt: Fix the 'A'/'a' shortcut for annotate X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c1ec5fefd9cd9ccb020966a49a3c7f44b25d9e84;p=linux-beck.git perf newt: Fix the 'A'/'a' shortcut for annotate Reported-by: Ingo Molnar Cc: Frédéric Weisbecker Cc: Mike Galbraith Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Tom Zanussi LKML-Reference: Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/util/newt.c b/tools/perf/util/newt.c index 5ded2f0d3e4d..094887f45d05 100644 --- a/tools/perf/util/newt.c +++ b/tools/perf/util/newt.c @@ -892,10 +892,10 @@ int hists__browse(struct hists *self, const char *helpline, const char *input_na if (choice == -1) continue; -do_annotate: + if (choice == annotate) { struct hist_entry *he; - +do_annotate: if (browser->selection->map->dso->origin == DSO__ORIG_KERNEL) { ui_helpline__puts("No vmlinux file found, can't " "annotate with just a "