Add _sleep to TSLOG

Most of the nvme initialization time in my tests is being spent here
(via pause_sbt).
This commit is contained in:
Colin Percival 2021-09-05 12:50:15 -07:00
parent bad42df9bf
commit bd11e253a9

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))
@ -233,6 +234,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);
}