summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2008-05-20 04:56:13 +0000
committerRoland McGrath <roland@redhat.com>2008-05-20 04:56:13 +0000
commitde328e684f86405d85881cdc489b88a27332d256 (patch)
tree5e99953e5bb7843e7098a6382ee14e945483d09c /time.c
parentbc362d4732184d24cb7b7b7bd31c05582f2a9c46 (diff)
downloadstrace-de328e684f86405d85881cdc489b88a27332d256.tar.gz
strace-de328e684f86405d85881cdc489b88a27332d256.tar.bz2
strace-de328e684f86405d85881cdc489b88a27332d256.tar.xz
2008-05-19 Roland McGrath <roland@redhat.com>
* time.c (sys_timerfd_create): New function. (sys_timerfd_settime, sys_timerfd_gettime): New functions. * linux/syscall.h: Declare them. * linux/syscallent.h: Update entries for those syscalls. From Kyle McMartin <kyle@mcmartin.ca>.
Diffstat (limited to 'time.c')
-rw-r--r--time.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/time.c b/time.c
index 676aace..651ec40 100644
--- a/time.c
+++ b/time.c
@@ -989,4 +989,41 @@ struct tcb *tcp;
}
return 0;
}
+
+int
+sys_timerfd_create(struct tcb *tcp)
+{
+ if (entering(tcp)) {
+ printxval(clocknames, tcp->u_arg[0], "CLOCK_???");
+ tprintf(", ");
+ printflags(timerfdflags, tcp->u_arg[1], "TFD_???");
+ }
+ return 0;
+}
+
+int
+sys_timerfd_settime(struct tcb *tcp)
+{
+ if (entering(tcp)) {
+ tprintf("%ld, ", tcp->u_arg[0]);
+ printflags(timerfdflags, tcp->u_arg[1], "TFD_???");
+ tprintf(", ");
+ printitv(tcp, tcp->u_arg[2]);
+ tprintf(", ");
+ printitv(tcp, tcp->u_arg[3]);
+ }
+ return 0;
+}
+
+int
+sys_timerfd_gettime(struct tcb *tcp)
+{
+ if (entering(tcp)) {
+ tprintf("%ld, ", tcp->u_arg[0]);
+ tprintf(", ");
+ printitv(tcp, tcp->u_arg[1]);
+ }
+ return 0;
+}
+
#endif /* LINUX */