aboutsummaryrefslogtreecommitdiff
path: root/sys/sys
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2019-08-21 23:43:58 +0000
committerMark Johnston <markj@FreeBSD.org>2019-08-21 23:43:58 +0000
commit5b699f1614221b8b158ea47562ab84a6dce34c72 (patch)
tree28914c3796c5288b5a71cc791d34b1a5ee928746 /sys/sys
parent81f666e79dfde97ef26a61863b08c9e59eeb32c1 (diff)
downloadsrc-5b699f1614221b8b158ea47562ab84a6dce34c72.tar.gz
src-5b699f1614221b8b158ea47562ab84a6dce34c72.zip
Add lockmgr(9) probes to the lockstat DTrace provider.
They follow the conventions set by rw and sx lock probes. There is an additional lockstat:::lockmgr-disown probe. Update lockstat(1) to report on contention and hold events for lockmgr locks. Document the new probes in dtrace_lockstat.4, and deduplicate some of the existing probe descriptions. Reviewed by: mjg MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D21355
Notes
Notes: svn path=/head/; revision=351361
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/lockstat.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/sys/lockstat.h b/sys/sys/lockstat.h
index 9a6674fa2f64..0526f4fbd94c 100644
--- a/sys/sys/lockstat.h
+++ b/sys/sys/lockstat.h
@@ -65,6 +65,13 @@ SDT_PROBE_DECLARE(lockstat, , , sx__spin);
SDT_PROBE_DECLARE(lockstat, , , sx__upgrade);
SDT_PROBE_DECLARE(lockstat, , , sx__downgrade);
+SDT_PROBE_DECLARE(lockstat, , , lockmgr__acquire);
+SDT_PROBE_DECLARE(lockstat, , , lockmgr__release);
+SDT_PROBE_DECLARE(lockstat, , , lockmgr__disown);
+SDT_PROBE_DECLARE(lockstat, , , lockmgr__block);
+SDT_PROBE_DECLARE(lockstat, , , lockmgr__upgrade);
+SDT_PROBE_DECLARE(lockstat, , , lockmgr__downgrade);
+
SDT_PROBE_DECLARE(lockstat, , , thread__spin);
#define LOCKSTAT_WRITER 0