Julian Seward
2ebd38040f
Handle sys_lookup_dcookie on amd64-linux (Andrew Haley). Also take
...
the opportunity to move the handlers from syswrap-generic.c (which
they certainly aren't) to syswrap-linux.c. Fixes #175044 .
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8769
2008-11-16 21:40:54 +00:00
Julian Seward
70e5fbdf04
Fix debug printing of fd in mmap system calls.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8764
2008-11-13 13:14:00 +00:00
Julian Seward
2a5db7f788
Support sys_stime on x86-linux. Fixes #159285 .
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8736
2008-11-06 23:11:42 +00:00
Julian Seward
e3cccbaf9a
Fix integer-pointer comparisons in new spu_ wrappers.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8735
2008-11-06 09:22:50 +00:00
Julian Seward
3a2fbbfafd
Add ioctl wrappers for Linux wireless extensions version 22.
...
Patch from Gwenael Lambrouin. Fixes #159452 .
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8734
2008-11-05 16:59:55 +00:00
Julian Seward
af77aae9cd
Support sys_spu_run and sys_spu_create on ppc32-linux. Patch by
...
Kenneth Skovhede. Fixes #167288 .
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8731
2008-11-05 11:36:59 +00:00
Julian Seward
f4bffe6909
Support sys_pipe2 on {amd64,x86}-linux. Also, update syscall numbers
...
for all supported Linuxes to those in linux-2.6.28-rc3.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8730
2008-11-05 11:20:59 +00:00
Julian Seward
1c03211b43
Enable sys_quotactl on amd64-linux. Possible fixes #173177 .
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8720
2008-10-30 13:12:50 +00:00
Julian Seward
57c7455121
Ensure the root thread's stack is suitably mapped before doing a
...
client syscall. Believed to fix #156404 .
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8712
2008-10-27 01:23:04 +00:00
Julian Seward
fbdd00b6e0
gcc-4.4.0 (snapshot) started complaining about buf.sem_nsems being
...
uninitialised in get_sem_count(). This makes it quiet. I am not sure
whether get_sem_count() was correct or not without it (probably was
OK).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8697
2008-10-23 09:46:59 +00:00
Nicholas Nethercote
0cf8a14c70
- Reinstate the 'atfork' from 2.4.0, which was more powerful, and expose it to
...
tools.
- Factor out 'execv' from 'system' and expose it to tools.
Partly based on a patch from Robert O'Callahan.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8669
2008-10-13 04:19:15 +00:00
Julian Seward
335992d8fc
Merge all remaining changes from branches/PTRCHECK. These are some
...
relatively minor extensions to m_debuginfo, a major overhaul of
m_debuginfo/readdwarf3.c to get its space usage under control, and
changes throughout the system to enable heap-use profiling.
The majority of the merged changes were committed into
branches/PTRCHECK as the following revs: 8591 8595 8598 8599 8601 and
8161.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8621
2008-09-18 18:12:50 +00:00
Bart Van Assche
86ff87c102
Enabled capget and capset system calls for amd64, ppc32 and ppc64.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8554
2008-08-27 17:41:56 +00:00
Julian Seward
832a3d400b
Tidy up the wrappers for pread64 and pwrite64, and make these two
...
syscalls available on ppc64-linux.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8519
2008-08-07 20:29:55 +00:00
Julian Seward
8204098c5e
* handle sys_getprocs64 on ppc32-aix5
...
* handle sys_uname properly on ppc{32,64}-aix5
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8451
2008-07-22 10:01:25 +00:00
Julian Seward
7874b34ffb
Format string fixes for ppc{32,64}-aix5.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8444
2008-07-18 18:23:24 +00:00
Bart Van Assche
783f123bab
Enabled support for the sched_setparam() system call on the amd64, ppc32 and ppc64 platforms (was already enabled on x86).
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8405
2008-07-09 07:39:09 +00:00
Bart Van Assche
8e96150945
Merged FORMATCHECK branch (r8368) to trunk.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8369
2008-07-07 06:49:24 +00:00
Bart Van Assche
bd28f145d5
Moved support for Linux-specific system call sys_init_module from generic to Linux wrappers. Added wrapper for sys_delete_module system call.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8266
2008-06-21 16:28:24 +00:00
Bart Van Assche
e3ebca1d59
Enabled support for the init_module() system call on amd64. Should fix #164476 .
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8263
2008-06-20 10:41:12 +00:00
Julian Seward
1fb920eeb5
Add '*flags |= SfMayBlock' to PRE(sys_sync_file_range).
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8177
2008-06-04 06:49:56 +00:00
Julian Seward
b2651c395b
More fiddling with the sys_signalfd wrapper.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8147
2008-05-29 12:56:08 +00:00
Bart Van Assche
7fbbba6ae4
Make sure the debug information is read before a tool is notified about an mmap() system call.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8142
2008-05-29 08:52:44 +00:00
Julian Seward
178fbd72d3
Tidy up timerfd wrapper stuff a bit:
...
* make linux_kernel_2_6_22 return Bool
* linux_kernel_2_6_22: don't assert if /proc/sys/kernel/osrelease
can't be opened
* PRE(sys_timerfd_create), PRE(sys_signalfd):
use %ld for Word arguments, and use house types
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8138
2008-05-28 11:06:08 +00:00
Bart Van Assche
0f6897cc6c
Removed the superfluous casts that were introduced in r8132.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8136
2008-05-28 07:09:54 +00:00
Bart Van Assche
dcf69a8cb2
sys_timerfd() and sys_signalfd() wrappers now interpret their first argument consistently as signed instead of unsigned. Fixes #162663 .
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8132
2008-05-26 17:16:08 +00:00
Bart Van Assche
4938c1f0ba
Added support for the fadvise64() system call on ppc64.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8130
2008-05-25 18:09:11 +00:00
Bart Van Assche
df3037fdc9
Removed superfluous #include directive.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8124
2008-05-25 16:01:03 +00:00
Bart Van Assche
7d072b3b4a
Enabled timerfd() and timerfd_create() support for ppc32 and ppc64.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8051
2008-05-12 18:16:14 +00:00
Julian Seward
a617a26b86
POST(sys_poll): mark the revents field even when RES==0. Fixes #158425 .
...
(Dave Goodell)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8049
2008-05-12 15:46:34 +00:00
Julian Seward
22e711d457
Fix wrappers for sys_futimesat and sys_utimensat. (Dan Kegel)
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8047
2008-05-12 14:29:23 +00:00
Julian Seward
3c25a48a0c
Temporarily work around compilation failures caused by non-definition
...
of __NR_timerfd, pending proper resolution. See
http://bugs.kde.org/show_bug.cgi?id=160907
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7983
2008-05-01 21:22:38 +00:00
Julian Seward
4cae5c3ed5
Merge branches/OTRACK_BY_INSTRUMENTATION into the trunk. This adds
...
support to Memcheck for tracking the origin of uninitialised values,
if you use the --track-origins=yes flag.
This currently causes some Memcheck regression tests to fail, because
they now print an extra line of advisory text in their output. This
will be fixed.
The core-tool interface is slightly changed. The version number for
the interface needs to be incremented.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7982
2008-05-01 20:24:26 +00:00
Bart Van Assche
bcb85a68fb
Make sure the test for kernel version 2.6.22 will work correctly for the future kernel versions 2.6.220 .. 2.6.229.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7971
2008-05-01 12:35:48 +00:00
Bart Van Assche
c6d4c09e7c
Added support for timerfd_create(), timerfd_gettime() and timerfd_settime() system calls.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7942
2008-04-27 12:56:06 +00:00
Bart Van Assche
46fd0e3040
Enabled syslog and create_module system calls.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7920
2008-04-26 10:57:07 +00:00
Bart Van Assche
e31611fb5c
Added support for epoll_pwait(), utimensat(), eventfd(), timerfd() and signalfd(). Fixes bug 160907.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7917
2008-04-26 07:45:10 +00:00
Tom Hughes
34d1e3b268
Always call ML_(generic_POST_sys_shmat) when a shmat call succeeds, even
...
if the memory was attached at address zero. Fixes bug #157665 .
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7399
2008-02-11 14:47:05 +00:00
Julian Seward
5679a22410
Update copyright dates ("200X-2007" --> "200X-2008").
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7398
2008-02-11 11:34:59 +00:00
Julian Seward
7cebb7d626
Include headers for VG_(register_stack) calls.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7396
2008-02-11 11:23:12 +00:00
Tom Hughes
2e55cfac69
Make the clone system call wrappers call VG_(register_stack) to record
...
the new thread's stack, then make the stack unwinder use that information
to make a better guess at the stack bounds.
This helps avoid crashes trying to unwind the stack under wine when
the starting point is a routine without a proper stack frame.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7383
2008-02-08 15:17:07 +00:00
Julian Seward
9c149e9981
Fix inconsistent order of fields. I think this is purely aesthetic
...
since nothing depends on the actual layout of this struct, but anyway.
Noticed by Vinay Nallamothu.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7352
2008-01-17 14:37:24 +00:00
Julian Seward
c798246fb2
Enable some syscalls needed to run firefox on 64-bit ppc on Fedora 8.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7334
2008-01-09 22:01:40 +00:00
Tom Hughes
cbb3cb05a5
Add support for the sync_file_range system call.
...
Based on patch from Russell Sears <sears@cs.berkeley.edu >.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7324
2008-01-08 16:31:25 +00:00
Tom Hughes
e25736ec6c
Valid file descriptor argument to llseek system call.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7322
2008-01-08 13:54:43 +00:00
Julian Seward
d03d7532bd
Handle semaphore-related syscalls.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7273
2007-12-04 16:12:54 +00:00
Julian Seward
953b8549d7
Changes to make Memcheck work sanely on recent incarnations of AIX 5.3:
...
* add a few more syscall wrappers, and fix a couple of buggy ones
* intercept strcmp et al in a few more libraries
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7249
2007-11-29 03:08:32 +00:00
Julian Seward
a60ad6740d
AIX 5.3 build fixes.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7232
2007-11-26 22:43:03 +00:00
Julian Seward
931a40e83b
Core-tool iface changes needed to support exp-drd (Bart Van Assche).
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7212
2007-11-25 14:06:06 +00:00
Julian Seward
4d601bfed7
Support sys_utimensat on x86-linux. (Dan McGee)
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7195
2007-11-20 23:41:23 +00:00