git: f388ad85c2aa - stable/13 - Add _sleep to TSLOG
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 29 Dec 2021 23:06:26 UTC
The branch stable/13 has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=f388ad85c2aa579ed9ef8090a36f8945b0fafc7b commit f388ad85c2aa579ed9ef8090a36f8945b0fafc7b Author: Colin Percival <cperciva@FreeBSD.org> AuthorDate: 2021-09-05 19:50:15 +0000 Commit: Colin Percival <cperciva@FreeBSD.org> CommitDate: 2021-12-29 22:53:19 +0000 Add _sleep to TSLOG Most of the nvme initialization time in my tests is being spent here (via pause_sbt). Sponsored by: https://www.patreon.com/cperciva (cherry picked from commit bd11e253a9a459c9a7b69ebb1c68f0162eb6119f) --- sys/kern/kern_synch.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c index 3d51af2740fc..46d14a35d1ea 100644 --- a/sys/kern/kern_synch.c +++ b/sys/kern/kern_synch.c @@ -141,6 +141,7 @@ _sleep(const void *ident, struct lock_object *lock, int priority, int catch, pri, rval, sleepq_flags; WITNESS_SAVE_DECL(lock_witness); + TSENTER(); td = curthread; #ifdef KTRACE if (KTRPOINT(td, KTR_CSW)) @@ -232,6 +233,7 @@ _sleep(const void *ident, struct lock_object *lock, int priority, class->lc_lock(lock, lock_state); WITNESS_RESTORE(lock, lock_witness); } + TSEXIT(); return (rval); }