[PATCH] tests/times: use libc times instead of raw syscall on s390
Sven Schnelle
svens at linux.ibm.com
Mon Jul 31 07:17:45 UTC 2023
The libc implementation of times(2) has additional handling
for error codes compared to the raw syscall. Therefore
use the libc implementation on s390 like it is already done
for MIPS.
Signed-off-by: Sven Schnelle <svens at linux.ibm.com>
---
tests/times.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/times.c b/tests/times.c
index d22f0e50a94f..6089aa149314 100644
--- a/tests/times.c
+++ b/tests/times.c
@@ -69,7 +69,7 @@ main(void)
: "memory", "cc", "r11", "cx");
if (llres > 0xfffffffffffff000)
return 77;
-#elif defined LINUX_MIPSN32
+#elif defined __s390__ || defined LINUX_MIPSN32
clock_t res = times(&tbuf);
if ((clock_t) -1 == res)
--
2.41.0
More information about the Strace-devel
mailing list