[PATCH 2/2] perf newt: Fix the 'A'/'a' shortcut for annotate

From: Arnaldo Carvalho de Melo
Date: Sat May 15 2010 - 19:51:19 EST


From: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>

Reported-by: Ingo Molnar <mingo@xxxxxxx>
Cc: FrÃdÃric Weisbecker <fweisbec@xxxxxxxxx>
Cc: Mike Galbraith <efault@xxxxxx>
Cc: Paul Mackerras <paulus@xxxxxxxxx>
Cc: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
Cc: Tom Zanussi <tzanussi@xxxxxxxxx>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
---
tools/perf/util/newt.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/perf/util/newt.c b/tools/perf/util/newt.c
index 5ded2f0..094887f 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 "
--
1.6.2.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/