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