All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch 36-rc5] perf browser ui segfault on 'a' for annotate
@ 2010-09-23 20:19 Frederik Deweerdt
  2010-10-04 17:56 ` Arnaldo Carvalho de Melo
  2010-10-05 12:13 ` [tip:perf/core] perf ui hist browser: Fix " tip-bot for Frederik Deweerdt
  0 siblings, 2 replies; 3+ messages in thread
From: Frederik Deweerdt @ 2010-09-23 20:19 UTC (permalink / raw)
  To: acme; +Cc: linux-kernel

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@xprog.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;

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-10-05 12:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-23 20:19 [patch 36-rc5] perf browser ui segfault on 'a' for annotate Frederik Deweerdt
2010-10-04 17:56 ` Arnaldo Carvalho de Melo
2010-10-05 12:13 ` [tip:perf/core] perf ui hist browser: Fix " tip-bot for Frederik Deweerdt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.