From: Li Wang <liwang@redhat.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] clock_gettime04: print more info to help debugging
Date: Mon, 8 Mar 2021 06:53:29 +0000 [thread overview]
Message-ID: <20210308065329.25824-1-liwang@redhat.com> (raw)
We get some sporadically failures like below, but we don't know which
loop it comes from. So adding more prints to help locate issue.
tst_test.c:1286: TINFO: Timeout per run is 0h 05m 00s
vdso_helpers.c:76: TINFO: Couldn't find vdso_gettime64()
clock_gettime04.c:157: TPASS: CLOCK_REALTIME: Difference between successive readings is reasonable
clock_gettime04.c:150: TFAIL: CLOCK_REALTIME_COARSE: Difference between successive readings greater than 5 ms (1): 8
clock_gettime04.c:157: TPASS: CLOCK_MONOTONIC: Difference between successive readings is reasonable
clock_gettime04.c:150: TFAIL: CLOCK_MONOTONIC_COARSE: Difference between successive readings greater than 5 ms (0): 5
clock_gettime04.c:157: TPASS: CLOCK_MONOTONIC_RAW: Difference between successive readings is reasonable
clock_gettime04.c:157: TPASS: CLOCK_BOOTTIME: Difference between successive readings is reasonable
Btw, it occurs on a x86_64 (not virtualized) with kernel 5.11.0.
Signed-off-by: Li Wang <liwang@redhat.com>
---
testcases/kernel/syscalls/clock_gettime/clock_gettime04.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/testcases/kernel/syscalls/clock_gettime/clock_gettime04.c b/testcases/kernel/syscalls/clock_gettime/clock_gettime04.c
index 5f8264cc6..4dc9093c7 100644
--- a/testcases/kernel/syscalls/clock_gettime/clock_gettime04.c
+++ b/testcases/kernel/syscalls/clock_gettime/clock_gettime04.c
@@ -108,6 +108,9 @@ static void run(unsigned int i)
if (tv->clock_gettime == my_gettimeofday && clks[i] != CLOCK_REALTIME)
continue;
+ if (tv->clock_gettime && count == 10000)
+ tst_res(TINFO, "%s", tv->desc);
+
ret = tv->clock_gettime(clks[i], tst_ts_get(&ts));
if (ret) {
/*
--
2.21.3
next reply other threads:[~2021-03-08 6:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-08 6:53 Li Wang [this message]
2021-03-08 10:17 ` [LTP] [PATCH] clock_gettime04: print more info to help debugging Viresh Kumar
2021-03-08 10:59 ` Li Wang
2021-03-08 11:14 ` Viresh Kumar
2021-03-08 11:24 ` Li Wang
2021-03-08 11:48 ` Viresh Kumar
2021-03-08 12:45 ` Li Wang
2021-03-09 4:05 ` Viresh Kumar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210308065329.25824-1-liwang@redhat.com \
--to=liwang@redhat.com \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.