From: Bart Van Assche Date: Sun, 25 May 2008 18:09:11 +0000 (+0000) Subject: Added support for the fadvise64() system call on ppc64. X-Git-Tag: svn/VALGRIND_3_4_0~554 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4938c1f0ba54c7cbbf86c395b7c9afae9ef74d43;p=thirdparty%2Fvalgrind.git Added support for the fadvise64() system call on ppc64. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8130 --- diff --git a/coregrind/m_syswrap/syswrap-ppc64-linux.c b/coregrind/m_syswrap/syswrap-ppc64-linux.c index 9dbb5f38b8..230eb9e847 100644 --- a/coregrind/m_syswrap/syswrap-ppc64-linux.c +++ b/coregrind/m_syswrap/syswrap-ppc64-linux.c @@ -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