kernel - Add lock debugging
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 18 Oct 2017 06:31:59 +0000 (23:31 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 18 Oct 2017 06:32:56 +0000 (23:32 -0700)
commit291b863628c74dfa05d3a3ff80137e1e26937517
tree694e69f2187871537deb33aeed275ac3bb04687a
parentbc0aa189232f6ec6bb245aef2b91ed26a1a72459
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.
sys/kern/kern_lock.c
sys/sys/indefinite.h
sys/sys/indefinite2.h