perf symbols: Move symbol filtering to event__preprocess_sample()
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 15 Dec 2009 22:04:41 +0000 (20:04 -0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 16 Dec 2009 07:53:49 +0000 (08:53 +0100)
commitc410a33887c17cac95ed8b0d860cdfb5c087a7d8
tree54fe6ed5ac64ff77763ff686af58bd36b04e73d6
parent655000e7c75a559681ee7f15f6fa870c80ae3194
perf symbols: Move symbol filtering to event__preprocess_sample()

So that --dsos, --comm, --symbols can bem used in more tools,
like in perf diff:

$ perf record -f find / > /dev/null
$ perf record -f find / > /dev/null
$ perf diff --dsos /lib64/libc-2.10.1.so | head -5
   1        +22392124     /lib64/libc-2.10.1.so   _IO_vfprintf_internal
   2         +6410655     /lib64/libc-2.10.1.so   __GI_memmove
   3    +1   +9192692     /lib64/libc-2.10.1.so   _int_malloc
   4    -1  -15158605     /lib64/libc-2.10.1.so   _int_free
   5           +45669     /lib64/libc-2.10.1.so   _IO_new_file_xsputn
$

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <1260914682-29652-3-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-annotate.c
tools/perf/builtin-diff.c
tools/perf/builtin-report.c
tools/perf/builtin-top.c
tools/perf/util/event.c
tools/perf/util/symbol.c
tools/perf/util/symbol.h