linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [tip: timers/core] clocksource: Print clocksource name when clocksource is tested unstable
@ 2023-02-13 18:48 tip-bot2 for Yunying Sun
  0 siblings, 0 replies; only message in thread
From: tip-bot2 for Yunying Sun @ 2023-02-13 18:48 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: Yunying Sun, Paul E. McKenney, x86, linux-kernel

The following commit has been merged into the timers/core branch of tip:

Commit-ID:     beaa1ffe551c330d8ea23de158432ecaad6c0410
Gitweb:        https://git.kernel.org/tip/beaa1ffe551c330d8ea23de158432ecaad6c0410
Author:        Yunying Sun <yunying.sun@intel.com>
AuthorDate:    Wed, 16 Nov 2022 16:22:21 +08:00
Committer:     Paul E. McKenney <paulmck@kernel.org>
CommitterDate: Tue, 03 Jan 2023 20:43:45 -08:00

clocksource: Print clocksource name when clocksource is tested unstable

Some "TSC fall back to HPET" messages appear on systems having more than
2 NUMA nodes:

clocksource: timekeeping watchdog on CPU168: hpet read-back delay of 4296200ns, attempt 4, marking unstable

The "hpet" here is misleading the clocksource watchdog is really
doing repeated reads of "hpet" in order to check for unrelated delays.
Therefore, print the name of the clocksource under test, prefixed by
"wd-" and suffixed by "-wd", for example, "wd-tsc-wd".

Signed-off-by: Yunying Sun <yunying.sun@intel.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
---
 kernel/time/clocksource.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c
index 9cf32cc..4a2c3bb 100644
--- a/kernel/time/clocksource.c
+++ b/kernel/time/clocksource.c
@@ -257,8 +257,8 @@ static enum wd_read_status cs_watchdog_read(struct clocksource *cs, u64 *csnow, 
 			goto skip_test;
 	}
 
-	pr_warn("timekeeping watchdog on CPU%d: %s read-back delay of %lldns, attempt %d, marking unstable\n",
-		smp_processor_id(), watchdog->name, wd_delay, nretries);
+	pr_warn("timekeeping watchdog on CPU%d: wd-%s-wd read-back delay of %lldns, attempt %d, marking unstable\n",
+		smp_processor_id(), cs->name, wd_delay, nretries);
 	return WD_READ_UNSTABLE;
 
 skip_test:

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-13 18:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-13 18:48 [tip: timers/core] clocksource: Print clocksource name when clocksource is tested unstable tip-bot2 for Yunying Sun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).