Tom Hughes
269fc43ee7
Implement the name_to_handle_at system call for x86 and amd64.
...
Based on patch from Asmadeus to fix BZ#308930.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13304
2013-03-03 12:57:20 +00:00
Philippe Waroquiers
1b9a118603
Factorise some code from syswrap-amd64/arm/mips32/mips64-linux.c to syswrap-linux.c
...
Almost mechanical transformation, removes > 1000 SLOC.
Compiled and regtested on amd64/x86/mips32
Compiled and (somewhat) tested on mips64
Compiled on arm
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13302
2013-03-01 23:31:09 +00:00
Christian Borntraeger
4155f1b382
add s390 specific fix for getregset
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13112
2012-11-08 20:10:10 +00:00
Philippe Waroquiers
88d11f08b4
factorise sys_socketcall
...
sys_socketcall was duplicated in syswrap-{ppc64|ppc32|arm|mips32|s390x}-linux.c
=>
* Similarly for what was done for sys_ipc, factorise the code in syswrap-linux.c
* re-enabled PRE_MEM_READ for VKI_SYS_SENDMSG and VKI_SYS_RECVMSG
(PRE_MEM_READ calls were commented out around 2003, for what
was supposed a glibc bug.
The PRE_MEM_READ calls were already re-enabled in s390x)
* s390x also had some more checking to verify the addressibility of
the args and fail the syscall with EFAULT if not addressable
=> same checks are now done for all platforms.
(tested on x86/amd64/mips32/s390x/ppc32/ppc64,
compiled for arm-android-emulator)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13104
2012-11-04 20:40:33 +00:00
Philippe Waroquiers
b83003a1e0
restructure code for future fixing of 123837 (semctl GETVAL false positive)
...
Regrouped identical code (except for indentation)
from syswrap-ppc64-linux.c, syswrap-ppc32-linux.c,syswrap-mips32-linux.c
syswrap-x86-linux.c, syswrap-s390x-linux.c
into
syswrap-linux.c
(compiled/regtested on x86, amd64, ppc64, mips32, s390x)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13076
2012-10-21 20:21:17 +00:00
Tom Hughes
1592db60c5
Add support for the tee and vmsplice system calls. BZ#304561.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12861
2012-08-08 08:03:44 +00:00
Julian Seward
4a3633e266
Update copyright dates to include 2012.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12843
2012-08-05 15:46:46 +00:00
Tom Hughes
bc2f84b39f
Add support for the move_pages system call. BZ#282790.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12485
2012-04-03 10:51:27 +00:00
Tom Hughes
baec53c5f1
Add support for the sendmmsg and recvmmsg system calls. Fixes BZ#277779.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12376
2012-02-10 11:30:09 +00:00
Tom Hughes
74eb6fb3b4
Add support for process_vm_readv and process_vm_writev system calls.
...
Patch from Lénaïc Huard to fix BZ#292995.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12374
2012-02-10 09:39:37 +00:00
Julian Seward
c96096ab24
Update all copyright dates, from 20xy-2010 to 20xy-2011.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12206
2011-10-23 07:32:08 +00:00
Julian Seward
5ce93a8654
Remove identical copies of convert_sigset_to_rt, PRE(sys_sigaction)
...
and POST(sys_sigaction) in syswrap-x86-linux.c and
syswrap-ppc32-linux.c, and replace them with a single version in
syswrap-linux.c instead. Derived from patch in bug 266035 comment 10
(Jeff Brown, jeffbrown@google.com ).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11870
2011-07-11 17:48:24 +00:00
Tom Hughes
42bc84e869
Add support for prlimit64 on x86 and amd64.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11806
2011-06-08 09:55:54 +00:00
Tom Hughes
912fe51553
It seems that the perf_counter_open system call was renamed to
...
perf_event_open some time after we added it, so correct the name
wherever it appears to match the current kernel source.
Also fixup the PRE handler to do the check correctly, using the
size field of the structure to work out how much data there is.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11804
2011-06-08 09:10:40 +00:00
Julian Seward
669d87bcc1
Support sys_readahead on Linux.
...
(Sean Bartell, wingedtachikoma@gmail.com ) Fixes #247894 .
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11394
2010-10-04 20:03:27 +00:00
Julian Seward
9b0574dff8
Update copyright dates to 2010.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11121
2010-05-03 21:37:12 +00:00
Tom Hughes
0e95308259
Add a wrapper for the splice system call and wire it up on
...
x86 and amd64 systems. Closes #205788 .
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11055
2010-02-23 10:49:48 +00:00
Tom Hughes
2a70cf0b01
Add support for the getcpu system call on x86, ppc32 and ppc64. There
...
is no support for amd64 because there is no getcpu system call on that
platform - it is always done as a vsyscall in user space.
Based on patch from Aleksander Salwa. Closes #223758 .
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11054
2010-02-23 10:02:55 +00:00
Tom Hughes
27f8eb0f4a
Clean up support for sync_file_range system call and add second version used
...
by ppc platforms based on patch from Dodji Seketeli. Part fix for #215973 .
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10952
2009-11-25 11:29:14 +00:00
Tom Hughes
40fa55a53b
Add support for rt_tgsigqueueinfo system call based on patch
...
from Dodji Seketeli. Part fix for #215973 .
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10947
2009-11-24 16:08:40 +00:00
Tom Hughes
0d0f835353
Add support for sched_rr_get_interval system call based on patch
...
from Dodji Seketeli. Part fix for #215973 .
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10946
2009-11-24 16:03:19 +00:00
Tom Hughes
128df057cb
Handle the dup3 system call. Closes #215448 .
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10945
2009-11-23 08:19:20 +00:00
Tom Hughes
33d5189e1a
Add support for preadv and pwritev. Fixes #212149 .
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10914
2009-10-28 10:04:11 +00:00
Tom Hughes
387cb44cc1
Add support for the inotify_init1 system call, based on patches
...
from Dodji Seketeli and Jakub Jelinek. Fixes #202315 .
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10909
2009-10-27 14:17:27 +00:00
Tom Hughes
141ec942a1
Add support for the perf_counter_open system call. Fixes #211498 .
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10907
2009-10-27 09:19:26 +00:00
Nicholas Nethercote
f00335141b
Handle fallocate() on 64-bit platforms. Fixes bug 185794.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10456
2009-07-15 03:08:35 +00:00
Nicholas Nethercote
400b917577
Handle epoll_create1. Patch from Sam Varshavchik. Fixes bug 188427.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10427
2009-07-10 12:02:03 +00:00
Nicholas Nethercote
2001629c3f
Updated copyright years.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9344
2009-03-10 22:02:09 +00:00
Nicholas Nethercote
87b5e49494
Merge a large chunk of r8949 (the part that moved fcntl and ioctl wrappers
...
out of syswrap-generic into syswrap-linux) from the DARWIN branch.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9219
2009-02-22 23:00:30 +00:00
Nicholas Nethercote
3bfae3eec1
Merged r9185 (fix up getsockopt mess) from the DARWIN branch, minus the
...
Darwin-specific parts.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9186
2009-02-17 00:23:30 +00:00
Tom Hughes
f1ac1fd992
Add signalfd4 support.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8930
2009-01-09 16:42:51 +00:00
Tom Hughes
2ebda825b1
Add support ioprio_get and wire up ioprio_set on all platforms.
...
Fixes bug #177819 .
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8826
2008-12-15 08:58:29 +00:00
Tom Hughes
4d4d4c10fe
Add support for eventfd2 (and wire up pipe2 on PPC platforms).
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8815
2008-12-10 09:28:56 +00:00
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
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
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
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
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
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
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
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
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
Julian Seward
77c7c9adc2
Handle sys_ioprio_set on amd64-linux.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6641
2007-03-11 19:28:02 +00:00
Tom Hughes
0075b20e84
Add support for linux key management system calls.
...
Based on patch from Ezra Peisach <epeisach@bu.edu>.
Fixes bug #139300 .
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6632
2007-03-07 11:12:13 +00:00
Julian Seward
172505c978
Update copyright dates.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6488
2007-01-08 06:01:59 +00:00
Julian Seward
ad67fd79fe
Update copyright dates.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5954
2006-06-05 23:21:15 +00:00
Tom Hughes
297aa09b43
Implement the set_robust_list and get_robust_list system calls.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5905
2006-05-17 14:24:12 +00:00
Tom Hughes
4eb782b553
Add wrappers for a load of new 2.6.16 system calls. Fixes bug #123248 .
...
Also expands pathname arguments as strings in a lot more system call
trace messages and fixed the poll wrapper to not be x86 specific.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5785
2006-03-21 10:58:35 +00:00
Nicholas Nethercote
057061d2ae
Try to avoid compiler warnings on AMD64.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5065
2005-11-10 04:02:19 +00:00
Nicholas Nethercote
8a58b97fbb
Factor out some common code in m_syswrap.
...
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5062
2005-11-10 02:48:04 +00:00