From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 373 invoked by alias); 8 Feb 2007 12:21:16 -0000 Received: (qmail 355 invoked by uid 22791); 8 Feb 2007 12:21:12 -0000 X-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,FORGED_RCVD_HELO X-Spam-Check-By: sourceware.org Received: from wildebeest.demon.nl (HELO gnu.wildebeest.org) (83.160.170.119) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 08 Feb 2007 12:21:05 +0000 Received: from hermans.wildebeest.org ([192.168.1.28]) by gnu.wildebeest.org with esmtp (Exim 3.36 #1 (Debian)) id 1HF8Gy-00017P-00 for ; Thu, 08 Feb 2007 13:21:08 +0100 Subject: New syscalls From: Mark Wielaard To: frysk@sourceware.org Content-Type: multipart/mixed; boundary="=-RMZ3Aq8tQyzKOybrOh0Q" Date: Thu, 08 Feb 2007 12:21:00 -0000 Message-Id: <1170937253.3024.3.camel@hermans.wildebeest.org> Mime-Version: 1.0 X-Mailer: Evolution 2.8.2.1 (2.8.2.1-3.fc6) X-Virus-Checked: Checked by ClamAV on sourceware.org X-IsSubscribed: yes Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2007-q1/txt/msg00096.txt.bz2 --=-RMZ3Aq8tQyzKOybrOh0Q Content-Type: text/plain Content-Transfer-Encoding: 7bit Content-length: 810 Hi, The latest AuditLibs pointed out that there are some new syscalls for IA32 and PowerPC. This patch adds them and changes the test to check that we know at least the number of syscalls that auditlib knows about. 2007-02-08 Mark Wielaard * LinuxIa32Syscall.java (syscallList): Add getcpu and epoll_pwait. * LinuxPowerPCSyscall.java (syscallList): Add move_pages. * TestSyscallsWithAudit.java (syscallTest): Change test to up to at least highest number in auditlib. It might be a good idea to better integrate the names and numbers as reported by auditlib on the users system. Unfortunately auditlib doesn't know all the details we need, so we still need to augment the list with extra info (like whether or not the call returns, parameter list, etc). Committed, Mark --=-RMZ3Aq8tQyzKOybrOh0Q Content-Disposition: inline; filename=syscall.patch Content-Type: text/x-patch; name=syscall.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-length: 2306 Index: frysk-core/frysk/proc/LinuxIa32Syscall.java =================================================================== RCS file: /cvs/frysk/frysk-core/frysk/proc/LinuxIa32Syscall.java,v retrieving revision 1.5 diff -u -r1.5 LinuxIa32Syscall.java --- frysk-core/frysk/proc/LinuxIa32Syscall.java 4 Dec 2006 20:53:55 -0000 1.5 +++ frysk-core/frysk/proc/LinuxIa32Syscall.java 8 Feb 2007 11:56:52 -0000 @@ -440,7 +440,9 @@ new Ia32Syscall ("sync_file_range", 314), new Ia32Syscall ("tee", 315), new Ia32Syscall ("vmsplice", 316), - new Ia32Syscall ("move_pages", 317) + new Ia32Syscall ("move_pages", 317), + new Ia32Syscall ("getcpu", 318), + new Ia32Syscall ("epoll_pwait", 319) }; Index: frysk-core/frysk/proc/LinuxPowerPCSyscall.java =================================================================== RCS file: /cvs/frysk/frysk-core/frysk/proc/LinuxPowerPCSyscall.java,v retrieving revision 1.5 diff -u -r1.5 LinuxPowerPCSyscall.java --- frysk-core/frysk/proc/LinuxPowerPCSyscall.java 4 Dec 2006 20:53:55 -0000 1.5 +++ frysk-core/frysk/proc/LinuxPowerPCSyscall.java 8 Feb 2007 11:56:52 -0000 @@ -429,7 +429,8 @@ new PowerPCSyscall ("fchmodat", 297), new PowerPCSyscall ("faccessat", 298), new PowerPCSyscall ("get_robust_list", 299), - new PowerPCSyscall ("set_robust_list", 300) + new PowerPCSyscall ("set_robust_list", 300), + new PowerPCSyscall ("move_pages", 301) }; static class SocketSubSyscall Index: frysk/proc/TestSyscallsWithAudit.java =================================================================== RCS file: /cvs/frysk/frysk-core/frysk/proc/TestSyscallsWithAudit.java,v retrieving revision 1.6 diff -u -r1.6 TestSyscallsWithAudit.java --- frysk/proc/TestSyscallsWithAudit.java 14 Oct 2006 22:25:13 -0000 1.6 +++ frysk/proc/TestSyscallsWithAudit.java 8 Feb 2007 12:11:03 -0000 @@ -126,7 +126,8 @@ assertNull("MAX_SYSCALL_NUM", AuditLibs.syscallToName(MAX_SYSCALL_NUM, machine)); - // We should have names up to the highest number auditlib knows about. - assertEquals("max-syscall-num", highestNum, syscallList.length - 1); + // We should have names up to at least the highest number auditlib + // knows about. + assertTrue("max-syscall-num", highestNum <= syscallList.length - 1); } } --=-RMZ3Aq8tQyzKOybrOh0Q--