Index: desc.c
===================================================================
RCS file: /cvsroot/strace/strace/desc.c,v
retrieving revision 1.28
diff -u -p -r1.28 desc.c
--- desc.c	24 Jul 2007 01:57:11 -0000	1.28
+++ desc.c	24 Jul 2007 04:05:36 -0000
@@ -899,4 +916,13 @@ sys_pselect6(struct tcb *tcp)
 	}
 	return rc;
 }
+
+int
+sys_eventfd(tcp)
+struct tcb *tcp;
+{
+	if (entering(tcp))
+		tprintf("%lu", tcp->u_arg[0]);
+	return 0;
+}
 #endif
Index: linux/syscall.h
===================================================================
RCS file: /cvsroot/strace/strace/linux/syscall.h,v
retrieving revision 1.50
diff -u -p -r1.50 syscall.h
--- linux/syscall.h	24 Jul 2007 01:57:11 -0000	1.50
+++ linux/syscall.h	24 Jul 2007 04:05:37 -0000
@@ -102,7 +102,7 @@ int sys_waitid(), sys_fadvise64(), sys_f
 int sys_mbind(), sys_get_mempolicy(), sys_set_mempolicy(), sys_move_pages();
 int sys_arch_prctl();
 int sys_io_setup(), sys_io_submit(), sys_io_cancel(), sys_io_getevents(), sys_io_destroy();
-int sys_utimensat(), sys_epoll_pwait(), sys_signalfd(), sys_timerfd();
+int sys_utimensat(), sys_epoll_pwait(), sys_signalfd(), sys_timerfd(), sys_eventfd();
 
 /* sys_socketcall subcalls */
 
Index: linux/syscallent.h
===================================================================
RCS file: /cvsroot/strace/strace/linux/syscallent.h,v
retrieving revision 1.44
diff -u -p -r1.44 syscallent.h
--- linux/syscallent.h	24 Jul 2007 01:57:11 -0000	1.44
+++ linux/syscallent.h	24 Jul 2007 04:05:37 -0000
@@ -353,7 +353,7 @@
 	{ 4,	TD|TF,	sys_utimensat,		"utimensat"	}, /* 320 */
 	{ 3,	TD|TS,	sys_signalfd,		"signalfd"	}, /* 321 */
 	{ 4,	TD,	sys_timerfd,		"timerfd"	}, /* 322 */
-	{ 5,	0,	printargs,		"SYS_323"	}, /* 323 */
+	{ 1,	TD,	sys_eventfd,		"eventfd"	}, /* 323 */
 	{ 5,	0,	printargs,		"SYS_324"	}, /* 324 */
 	{ 5,	0,	printargs,		"SYS_325"	}, /* 325 */
 	{ 5,	0,	printargs,		"SYS_326"	}, /* 326 */
Index: linux/x86_64/syscallent.h
===================================================================
RCS file: /cvsroot/strace/strace/linux/x86_64/syscallent.h,v
retrieving revision 1.23
diff -u -p -r1.23 syscallent.h
--- linux/x86_64/syscallent.h	24 Jul 2007 01:57:11 -0000	1.23
+++ linux/x86_64/syscallent.h	24 Jul 2007 04:05:37 -0000
@@ -282,3 +282,4 @@
 	{ 5,	TD,	sys_epoll_pwait,	"epoll_pwait"	}, /* 281 */
 	{ 3,	TD|TS,	sys_signalfd,		"signalfd"	}, /* 282 */
 	{ 4,	TD,	sys_timerfd,		"timerfd"	}, /* 283 */
+	{ 1,	TD,	sys_eventfd,		"eventfd"	}, /* 284 */
