perf symbols: Call the symbol filter in dso__synthesize_plt_symbols()
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 16 Nov 2009 15:48:11 +0000 (13:48 -0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 16 Nov 2009 16:29:54 +0000 (17:29 +0100)
commit82164161679c448f33092945ea97cb547a13683a
tree393263862dd3c17d76dfd47b8e939a41fa9b2197
parent559fdc3c1b624edb1933a875022fe7e27934d11c
perf symbols: Call the symbol filter in dso__synthesize_plt_symbols()

We need to pass the symbol to the filter so that, for instance,
'perf top' can do filtering and also set the private area it
manages, setting the ->map pointer, etc.

I found this while running 'perf top' on a machine where hits
happened on PLT symbols, where ->map wasn't being set up and
segfaults thus happened.

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