lkml.org 
[lkml]   [2015]   [Apr]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] perf: Ensure symbols for plugins are exported
On Sun, Apr 12, 2015 at 06:00:51PM +0200, Mathias Krause wrote:
> When building perf with perl or python support it implicitly gets linked
> with the -export-dynamic linker option through the additional linker
> flags, namely with -Wl,-E via perl or -Xlinker -export-dynamic via
> python. That flag is essential for the traceevent plugin support so we
> shouldn't rely on adding it implicitly.
>
> Ensure perf's exported symbols can be used by dlopen()ed plugins by
> unconditionally adding this flag when linking perf. Otherwise plugins
> won't be able to access symbols in the perf binary.
>
> This fixes the following warning / bug when trying to load plugins:
>
> Warning: could not load plugin '/home/minipli/.traceevent/plugins/plugin_xen.so'
> /home/minipli/.traceevent/plugins/plugin_xen.so: undefined symbol: trace_seq_printf
> Warning: could not load plugin '/home/minipli/.traceevent/plugins/plugin_function.so'
> /home/minipli/.traceevent/plugins/plugin_function.so: undefined symbol: warning
> Warning: could not load plugin '/home/minipli/.traceevent/plugins/plugin_sched_switch.so'
> /home/minipli/.traceevent/plugins/plugin_sched_switch.so: undefined symbol: pevent_unregister_event_handler
> [...]

hum, not sure now how -export-dynamic works but should this
be rather in traceevent lib then?

jirka


\
 
 \ /
  Last update: 2015-04-17 18:01    [W:0.149 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site