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 bd11e253a9)
This commit is contained in:
Colin Percival 2021-09-05 12:50:15 -07:00
parent 45156a9468
commit f388ad85c2

View File

@ -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);
}