summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-02-01 10:06:40 +0000
committerphk <phk@FreeBSD.org>2003-02-01 10:06:40 +0000
commit2f5b4a19f3d32cf00ab39a28772484008afb06f0 (patch)
treebbe1d953352d53548bab0671db770e7b33185d25 /sys
parent095827745e3e45ebf90cbc80df0e05090f128a42 (diff)
downloadFreeBSD-src-2f5b4a19f3d32cf00ab39a28772484008afb06f0.zip
FreeBSD-src-2f5b4a19f3d32cf00ab39a28772484008afb06f0.tar.gz
Under DIAGNOSTIC, only report expensive timeouts if they are more expensive
than the last on we reported.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_timeout.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_timeout.c b/sys/kern/kern_timeout.c
index 11dc514..34b6d8c 100644
--- a/sys/kern/kern_timeout.c
+++ b/sys/kern/kern_timeout.c
@@ -197,9 +197,10 @@ softclock(void *dummy)
binuptime(&bt2);
bintime_sub(&bt2, &bt1);
if (bt2.frac > maxdt) {
+ maxdt = bt2.frac;
bintime2timespec(&bt2, &ts2);
printf(
- "Expensive timeout(9) function: %p(%p) %d.%09ld\n",
+ "Expensive timeout(9) function: %p(%p) %d.%09ld s\n",
c_func, c_arg,
ts2.tv_sec, ts2.tv_nsec);
}
OpenPOWER on IntegriCloud