perf annotate: Remove requirement of passing a symbol name
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 20 Oct 2009 17:08:29 +0000 (15:08 -0200)
committerIngo Molnar <mingo@elte.hu>
Tue, 20 Oct 2009 19:12:58 +0000 (21:12 +0200)
commit8f0b037398a909ccf703ad5f5803066db6327f22
treeb01865a96ffba7b1f70d159fd10a76b3627a5d70
parente42049926ebdcae24fdfdc8f0e3ff8f05f24a60b
perf annotate: Remove requirement of passing a symbol name

If the user doesn't pass a symbol name to annotate, it will
annotate all the symbols that have hits, in order, just like
'perf report -s comm,dso,symbol'.

This is a natural followup patch to the one that uses
output_hists to find the symbols with hits.

The common case is to annotate the first few entries at the top
of a perf report, so lets type less characters.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Mike Galbraith <efault@gmx.de>
LKML-Reference: <1256058509-19678-1-git-send-email-acme@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-annotate.c