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:
parent
bad42df9bf
commit
bd11e253a9
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user