[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100923201901.GE31726@gambetta>
Date: Thu, 23 Sep 2010 22:19:01 +0200
From: Frederik Deweerdt <frederik.deweerdt@...og.eu>
To: acme@...hat.com
Cc: linux-kernel@...r.kernel.org
Subject: [patch 36-rc5] perf browser ui segfault on 'a' for annotate
Hi Arnaldo,
There a typo in util/ui/browsers/hists.c that leads to a segfault when
you press the 'a' key on a non-resolved symbol (plain hex address).
This is fixed by the patch below.
Thanks,
Frederik
Signed-off-by: Frederik Deweerdt <frederik.deweerdt@...og.eu>
diff --git a/tools/perf/util/ui/browsers/hists.c b/tools/perf/util/ui/browsers/hists.c
index dafdf67..6866aa4 100644
--- a/tools/perf/util/ui/browsers/hists.c
+++ b/tools/perf/util/ui/browsers/hists.c
@@ -773,7 +773,7 @@ int hists__browse(struct hists *self, const char *helpline, const char *ev_name)
switch (key) {
case 'a':
- if (browser->selection->map == NULL &&
+ if (browser->selection->map == NULL ||
browser->selection->map->dso->annotate_warned)
continue;
goto do_annotate;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists