[ltt-dev] [PATCH 04/11] define sync_core for x86 PIC
Paolo Bonzini
pbonzini at redhat.com
Mon Feb 15 03:10:14 EST 2010
On 02/14/2010 03:37 PM, Mathieu Desnoyers wrote:
> Please add a note saying that it also works in the presence of signal
> handlers, because we are not using the ebx value returned by cpuid.
>
> It would not be correct to use this with signals enabled if we cared
> about the ebx value returned by cpuid.
It would, because %ebx is callee-save and the signal handler would have
to reinitialize it (since each shared library for example has its own
GOT, it doesn't know if the caller had the same GOT). In general,
functions that are not static or hidden, or that have their address
taken need to rebuild the GOT pointer. Signal handlers fall obviously
in the latter category.
Paolo
More information about the lttng-dev
mailing list