]> Git Repo - qemu.git/commitdiff
linux-user/strace: Improve settimeofday()
authorPhilippe Mathieu-Daudé <[email protected]>
Mon, 21 Oct 2019 11:48:51 +0000 (13:48 +0200)
committerLaurent Vivier <[email protected]>
Mon, 21 Oct 2019 13:25:20 +0000 (15:25 +0200)
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Tested-By: Guido Günther <[email protected]>
Reviewed-by: Laurent Vivier <[email protected]>
Message-Id: <20191021114857[email protected]>
Signed-off-by: Laurent Vivier <[email protected]>
linux-user/strace.c
linux-user/strace.list

index 2cd6687cd99b6f1fd0339b6f1bb32787401858e4..fd5596a64074cced5a9dca91c4e8e7628ed4c45f 100644 (file)
@@ -1583,6 +1583,19 @@ print_futimesat(const struct syscallname *name,
 }
 #endif
 
+#ifdef TARGET_NR_settimeofday
+static void
+print_settimeofday(const struct syscallname *name,
+                abi_long arg0, abi_long arg1, abi_long arg2,
+                abi_long arg3, abi_long arg4, abi_long arg5)
+{
+    print_syscall_prologue(name);
+    print_timeval(arg0, 0);
+    print_timezone(arg1, 1);
+    print_syscall_epilogue(name);
+}
+#endif
+
 #ifdef TARGET_NR_link
 static void
 print_link(const struct syscallname *name,
index 863283418ef91eb985d898e0d61943f22a9d42d7..6f95466dc59d1c8038385ef2641208622780ab4d 100644 (file)
 { TARGET_NR_set_tid_address, "set_tid_address" , NULL, NULL, NULL },
 #endif
 #ifdef TARGET_NR_settimeofday
-{ TARGET_NR_settimeofday, "settimeofday" , NULL, NULL, NULL },
+{ TARGET_NR_settimeofday, "settimeofday" , NULL, print_settimeofday, NULL },
 #endif
 #ifdef TARGET_NR_setuid
 { TARGET_NR_setuid, "setuid" , NULL, NULL, NULL },
This page took 0.031192 seconds and 4 git commands to generate.