perf top browser: Handle empty active symbols list
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 1 Mar 2011 13:21:44 +0000 (10:21 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 1 Mar 2011 13:21:44 +0000 (10:21 -0300)
commit3166fc8fb6a2f52273d545e970297524e02c3e39
tree6f3174295ca7df1edad287903e8ef6c4458a1e5f
parentb210b3bb1b002f27165325a5edb6ebce3c168e92
perf top browser: Handle empty active symbols list

Fixing a SEGV. An empty list could happen when not being able to resolve
symbols, for instance when --vmlinux invalid-file is used.

Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/ui/browsers/top.c