]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Added support for the fadvise64() system call on ppc64.
authorBart Van Assche <bvanassche@acm.org>
Sun, 25 May 2008 18:09:11 +0000 (18:09 +0000)
committerBart Van Assche <bvanassche@acm.org>
Sun, 25 May 2008 18:09:11 +0000 (18:09 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8130

coregrind/m_syswrap/syswrap-ppc64-linux.c

index 9dbb5f38b8243a74639738129f936b71a726c497..230eb9e8471433c5c4f07d379cd06209b07d8335 100644 (file)
@@ -434,6 +434,7 @@ DECL_TEMPLATE(ppc64_linux, sys_clone);
 //zz DECL_TEMPLATE(ppc64_linux, sys_sigreturn);
 DECL_TEMPLATE(ppc64_linux, sys_rt_sigreturn);
 //zz DECL_TEMPLATE(ppc64_linux, sys_sigaction);
+DECL_TEMPLATE(ppc64_linux, sys_fadvise64);
 
 PRE(sys_socketcall)
 {
@@ -1010,6 +1011,13 @@ PRE(sys_clone)
    }
 }
 
+PRE(sys_fadvise64)
+{
+   PRINT("sys_fadvise64 ( %d, %lld, %llu, %d )", ARG1,ARG2,ARG3,ARG4);
+   PRE_REG_READ4(long, "fadvise64",
+                 int, fd, vki_loff_t, offset, vki_size_t, len, int, advice);
+}
+
 PRE(sys_rt_sigreturn)
 {
    /* See comments on PRE(sys_rt_sigreturn) in syswrap-amd64-linux.c for
@@ -1409,7 +1417,7 @@ const SyscallTableEntry ML_(syscall_table)[] = {
    LINX_(__NR_io_submit,         sys_io_submit),          // 230
    LINXY(__NR_io_cancel,         sys_io_cancel),          // 231
    LINX_(__NR_set_tid_address,   sys_set_tid_address),    // 232
-// _____(__NR_fadvise64,         sys_fadvise64),          // 233
+   PLAX_(__NR_fadvise64,         sys_fadvise64),          // 233
    LINX_(__NR_exit_group,        sys_exit_group),         // 234
 
 // _____(__NR_lookup_dcookie,    sys_lookup_dcookie),     // 235