|
From: Amadeus W. M. <ama...@ca...> - 2006-08-07 02:35:26
|
On Mon, 07 Aug 2006 10:59:17 +1000, Nicholas Nethercote wrote:
> On Sun, 6 Aug 2006, Amadeus W. M. wrote:
>
>> Thanks for the quick reply. Sorry, I forgot to mention in my first
>> post, I'm running Fedora Core 5 with kernel-smp-2.6.17-1.2157_FC5.
>>
>> I downloaded the valgrind source, and I did see set_robust_list in
>> vki_unista-x86-linux.h. First of all, why does valgrind have a different
>> list of syscalls than the system itself?
>
> Because Valgrind's list is up-to-date with more recent versions of the
> kernel than the one you have.
>
>> Second, exactly how do I know what that system call is supposed to do? I
>> ain't psychic.
>
> Google or the Linux source code.
>
> Nick
Found something in linux-2.6.17.7/kernel/futex.c:
asmlinkage long
sys_set_robust_list(struct robust_list_head __user *head,
size_t len)
{
/*
* The kernel knows only one size for now:
*/
if (unlikely(len != sizeof(*head)))
return -EINVAL;
current->robust_list = head;
return 0;
}
No idea how to write a valgrind wrapper though, so maybe I'll
just stop short of hacking the kernel and valgrind, and wait
till the kernel >= 2.6.17-7 is available in FC5.
Thanks for the help.
|