git: kernel - Add lock debugging
Matthew Dillon
dillon at crater.dragonflybsd.org
Wed Oct 18 09:49:25 PDT 2017
commit 291b863628c74dfa05d3a3ff80137e1e26937517
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Tue Oct 17 23:31:59 2017 -0700
kernel - Add lock debugging
* Refactor debug.lock_test_mode to allow dumping of stack backtraces
when lockmgr locks or spinlocks are contested.
* Make some adjustments to the indefinite code (w/ heads up from mjg).
Do not start recording the TSC until we've contested for 15 loops,
and do not record the end time or duration unless we have contested
for more than 15 loops.
Summary of changes:
sys/kern/kern_lock.c | 6 ++++++
sys/sys/indefinite.h | 5 +++++
sys/sys/indefinite2.h | 22 ++++++++++++++++------
3 files changed, 27 insertions(+), 6 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/291b863628c74dfa05d3a3ff80137e1e26937517
--
DragonFly BSD source repository
More information about the Commits
mailing list