kern_timeout.c (c84c5e00ac28c8e00a56019031d1eaec74428b54) | kern_timeout.c (8965b3033ea1750f2e064a130cf2f2158c6fc795) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-3-Clause 3 * 4 * Copyright (c) 1982, 1986, 1991, 1993 5 * The Regents of the University of California. All rights reserved. 6 * (c) UNIX System Laboratories, Inc. 7 * All or some portions of this file are derived from material licensed 8 * to the University of California by American Telephone and Telegraph --- 714 unchanged lines hidden (view full) --- 723 THREAD_SLEEPING_OK(); 724#if defined(DIAGNOSTIC) || defined(CALLOUT_PROFILING) 725 sbt2 = sbinuptime(); 726 sbt2 -= sbt1; 727 if (sbt2 > maxdt) { 728 if (lastfunc != c_func || sbt2 > maxdt * 2) { 729 ts2 = sbttots(sbt2); 730 printf( | 1/*- 2 * SPDX-License-Identifier: BSD-3-Clause 3 * 4 * Copyright (c) 1982, 1986, 1991, 1993 5 * The Regents of the University of California. All rights reserved. 6 * (c) UNIX System Laboratories, Inc. 7 * All or some portions of this file are derived from material licensed 8 * to the University of California by American Telephone and Telegraph --- 714 unchanged lines hidden (view full) --- 723 THREAD_SLEEPING_OK(); 724#if defined(DIAGNOSTIC) || defined(CALLOUT_PROFILING) 725 sbt2 = sbinuptime(); 726 sbt2 -= sbt1; 727 if (sbt2 > maxdt) { 728 if (lastfunc != c_func || sbt2 > maxdt * 2) { 729 ts2 = sbttots(sbt2); 730 printf( |
731 "Expensive timeout(9) function: %p(%p) %jd.%09ld s\n", | 731 "Expensive callout(9) function: %p(%p) %jd.%09ld s\n", |
732 c_func, c_arg, (intmax_t)ts2.tv_sec, ts2.tv_nsec); 733 } 734 maxdt = sbt2; 735 lastfunc = c_func; 736 } 737#endif 738 KTR_STATE0(KTR_SCHED, "callout", cc->cc_ktr_event_name, "idle"); 739 CTR1(KTR_CALLOUT, "callout %p finished", c); --- 815 unchanged lines hidden --- | 732 c_func, c_arg, (intmax_t)ts2.tv_sec, ts2.tv_nsec); 733 } 734 maxdt = sbt2; 735 lastfunc = c_func; 736 } 737#endif 738 KTR_STATE0(KTR_SCHED, "callout", cc->cc_ktr_event_name, "idle"); 739 CTR1(KTR_CALLOUT, "callout %p finished", c); --- 815 unchanged lines hidden --- |