]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitafa2160bee3b50fef14ca99a6bb8a0b6fb0bcb6f
tree393263862dd3c17d76dfd47b8e939a41fa9b2197
parentbc8a2e7598e717f1a1c9e936ed06d936b4c22e0b
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