Nicholas Nethercote
7f0984ea02
The syscall wrappers for sys_fcntl{,64} were too simplistic -- the 3rd
...
arg is only used if the 2nd arg has particular values, so we were
getting false positives. This commit makes the wrappers smarter to
account for this. I updated the reg test too.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3080
2004-11-23 14:57:49 +00:00
Nicholas Nethercote
26361b37e9
account for restart_syscall
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3028
2004-11-16 18:20:35 +00:00
Nicholas Nethercote
583e072e7f
fix incorrect counts
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3027
2004-11-16 18:13:11 +00:00
Nicholas Nethercote
6b8d578f39
Add some missing test cases.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3026
2004-11-16 17:59:04 +00:00
Nicholas Nethercote
1524d5ac06
Converted the last syscalls. Phew. Still some cleaning up to do, esp. with
...
socketcall() and ipc() which are done too simplistically.
Also, VG_([gs]et_thread_area)() both now return -VKI_EFAULT if they are given a
NULL pointer.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3024
2004-11-16 17:13:24 +00:00
Nicholas Nethercote
126c196c21
Converted the timer_* and clock_* syscalls.
...
Also now checking the return value of every syscall in scalar, to make sure
that they (mostly) fail as expected. Because occasionally one would succeed
unexpectedly and unaddressable memory would be marked as addressable, and
things would go haywire. (The fact that the wrapper sets the memory as
addressable in these cases is a bug with the relevant wrappers; I'll fix them
later.)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3023
2004-11-16 16:15:41 +00:00
Nicholas Nethercote
c026b31697
Converted the io_* and mq_* syscalls.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3022
2004-11-16 12:58:04 +00:00
Tom Hughes
e07366ea5e
Add arguments to the prctl call in the scalar test.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3019
2004-11-16 08:27:21 +00:00
Nicholas Nethercote
d3cb945e9b
add a bunch of tests
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3018
2004-11-15 20:42:06 +00:00
Nicholas Nethercote
39914e513d
Converted sigprocmask and rt_sigprocmask.
...
While doing so, fixed bug #93328 , by using the right sized types in
sigprocmask(), and converting them as necessary. Added a regression test for
it too.
(partly) MERGE TO STABLE
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3013
2004-11-15 19:03:27 +00:00
Nicholas Nethercote
0ec929266e
convert a couple more
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3012
2004-11-15 17:19:22 +00:00
Nicholas Nethercote
2c423e4567
Convert more syscalls. Avoid obvious seg faults due to NULL vectors in readv()
...
and writev().
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3011
2004-11-15 17:04:14 +00:00
Nicholas Nethercote
ba41261f08
Converted modify_ldt() and init_module(); the old code for init_module() was
...
seemingly totally wrong, as the man page doesn't reflect the real kernel code.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3009
2004-11-15 16:40:40 +00:00
Nicholas Nethercote
98da137d80
Add scalar_exit_group to reg tests. Tweak scalar.c again.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3008
2004-11-15 16:11:20 +00:00
Tom Hughes
de135bbb7f
After a clone system call there are two threads of control running so we
...
need to make sure the child exits or we will get two copies of the output
from each test which follows. Also some older systems do not define the
CLONE_PARENT_SETTID flag.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3007
2004-11-15 15:35:49 +00:00
Nicholas Nethercote
a01f2960be
Fill in missing cases in scalar.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3006
2004-11-15 15:31:17 +00:00
Nicholas Nethercote
aa4b01411e
converted more syscalls
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3005
2004-11-15 14:50:02 +00:00
Nicholas Nethercote
a0ce711edb
Converted more syscalls
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3004
2004-11-15 14:32:12 +00:00
Nicholas Nethercote
df2c9db230
converted mmap and mmap2
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3003
2004-11-15 12:57:39 +00:00
Nicholas Nethercote
ad980e636a
Converted a few more, including clone() which I'm not at all sure about, and
...
ipc() which is done too simplistically.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3002
2004-11-15 12:28:58 +00:00
Tom Hughes
d29a50f397
Add some missing system call arguments to the scalar test.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3001
2004-11-15 10:02:53 +00:00
Nicholas Nethercote
7be89aef83
Converted some more syscalls.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2998
2004-11-14 20:06:27 +00:00
Nicholas Nethercote
117e80b375
Converted a few more syscalls.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2996
2004-11-14 19:11:56 +00:00
Nicholas Nethercote
ef904d7d63
converted a few more syscalls
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2995
2004-11-14 18:37:07 +00:00
Nicholas Nethercote
838a81ce30
Undo splitting of scalar from the last commit, which was stupid; just use
...
--error-limit=no instead.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2993
2004-11-14 18:11:55 +00:00
Nicholas Nethercote
1dbf6e342f
Converted a few more syscalls.
...
Also split scalar into 6 pieces, to avoid hitting the 300 error limit.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2992
2004-11-14 17:58:27 +00:00
Nicholas Nethercote
8e2be498fc
Converted a couple more
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2991
2004-11-14 17:03:47 +00:00
Nicholas Nethercote
344a3d78aa
Add gettimeofday() to test.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2990
2004-11-14 15:56:32 +00:00
Nicholas Nethercote
18c90ac917
Add missing params. Tom's nightly tests should work now.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2989
2004-11-14 15:55:06 +00:00
Nicholas Nethercote
4a6e2f7afb
converted sigsuspend, rt_sigsuspend. Not very sure about them.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2988
2004-11-14 14:13:05 +00:00
Nicholas Nethercote
e0c74bbbfa
converted a few more
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2987
2004-11-14 13:42:51 +00:00
Nicholas Nethercote
da82e7dd7a
converted some more
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2986
2004-11-13 13:57:12 +00:00
Nicholas Nethercote
e10f7ac465
convert some more, mash some more
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2979
2004-11-12 21:21:07 +00:00
Nicholas Nethercote
17ce7e1ba9
Add commented-out templates so further additions are easier.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2978
2004-11-12 21:00:08 +00:00
Nicholas Nethercote
66213608e7
converted some more
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2976
2004-11-12 19:55:08 +00:00
Nicholas Nethercote
cdbb6cd2e1
and converted a few more
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2974
2004-11-12 18:49:27 +00:00
Nicholas Nethercote
e3a2bb9405
renamed variables
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2973
2004-11-12 18:21:17 +00:00
Nicholas Nethercote
192c356143
converted some more
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2972
2004-11-12 18:20:12 +00:00
Nicholas Nethercote
b54443644a
Converted a whole bunch of syscalls.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2969
2004-11-12 17:07:26 +00:00
Nicholas Nethercote
0c0a684a6d
Converted execve().
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2968
2004-11-12 15:41:06 +00:00
Nicholas Nethercote
267ff3faac
Converted vfork() and acct(). Properly annotated all the ones we don't handle,
...
plus a few we do.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2967
2004-11-12 14:57:34 +00:00
Nicholas Nethercote
691c66f51d
Converted lookup_dcookie.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2966
2004-11-12 13:29:24 +00:00
Nicholas Nethercote
ccdeacec51
Converted uname(); annotated some obsolete ones.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2964
2004-11-12 11:19:36 +00:00
Nicholas Nethercote
c235901341
Now handling non-existent syscalls appropriately -- just returning ENOSYS
...
rather than giving the warning about the syscall being missing. (Nb: this only
applies to syscall numbers for which the kernel has no corresponding syscall;
Valgrind will still give that warning if new syscalls are added to the kernel.)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2962
2004-11-11 19:43:50 +00:00
Nicholas Nethercote
f49d300804
Converted fork(), and added a separate regtest for it.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2961
2004-11-11 19:03:34 +00:00
Nicholas Nethercote
9f628720a2
Converted a bunch more syscalls.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2960
2004-11-11 18:00:47 +00:00
Nicholas Nethercote
4a31c80382
Converted a bunch of zero-arg syscalls.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2959
2004-11-11 16:38:21 +00:00
Nicholas Nethercote
22f3dd16c0
augmented scalar
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2957
2004-11-10 18:59:57 +00:00
Nicholas Nethercote
7c0a206e62
Converted __NR_{mount,getpid,getppid}.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2954
2004-11-09 16:45:33 +00:00
Nicholas Nethercote
fff1483600
- Convert open() to the new syscall regime.
...
- Improve scalar regtest; I will add new syscalls to it as I convert them.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2953
2004-11-09 16:20:46 +00:00