]> granicus.if.org Git - strace/commitdiff
2007-07-23 Ulrich Drepper <drepper@redhat.com>
authorRoland McGrath <roland@redhat.com>
Thu, 2 Aug 2007 01:32:17 +0000 (01:32 +0000)
committerRoland McGrath <roland@redhat.com>
Thu, 2 Aug 2007 01:32:17 +0000 (01:32 +0000)
* desc.c (sys_eventfd): New function.
* linux/syscall.h: Declare sys_eventfd.
* linux/syscallent.h: Add entry for eventfd.
* linux/x86_64/syscallent.h: Likewise.

desc.c
linux/syscall.h
linux/syscallent.h
linux/x86_64/syscallent.h

diff --git a/desc.c b/desc.c
index 9c26b6334d62882703b82257eedae9e21c0ea1d7..4d82fa8e104e72f443a901a891e791e963332256 100644 (file)
--- a/desc.c
+++ b/desc.c
@@ -916,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 b87b9db374465ddc1113b7f9dd170b9d93b4a2f1..783dad5c1d2856bbf8f263c786d40792f5481045 100644 (file)
@@ -102,7 +102,7 @@ int sys_waitid(), sys_fadvise64(), sys_fadvise64_64();
 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 760819ca350afd2e751ac418b903b209c91e4987..ba9e117837ed342739884eaf010ce7da7b5ebc5e 100644 (file)
        { 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 8605fa9216a2a5f81b50e26f867b634739f17d49..22020579b61917bbda81778397811bb27abc9bfa 100644 (file)
        { 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 */