|
From: Tom H. <to...@co...> - 2005-07-20 14:39:39
|
In message <Pin...@ch...>
Nicholas Nethercote <nj...@cs...> wrote:
> On Wed, 20 Jul 2005, Tom Hughes wrote:
>
>> The vki_sigevent_t definition was out of sync with the 2.6.12 kernel
>> source and I have fixed that.
>
> Did the kernel type change? If so, will this cause problems when
> running Valgrind with older kernels?
The kernel type did change, yes, but only for 64 bit platforms. For
a 32 bit platform both the old and new definitions work out the same.
The structure has three fixed member followed by a union which
contains a couple of members plus an array which is intended to
pad the structure to 64 bytes so there is space for expansion.
On 64 bit platforms it used to add too much padding so there was
more reserved space than was intended because the calculation was
assuming that sigval_t was 32 bits but on 64 bit platforms it is
actually 64 bits.
So although the type has changed it shouldn't cause us any problem
with older kernels.
Tom
--
Tom Hughes (to...@co...)
http://www.compton.nu/
|