path: root/cddl/contrib/opensolaris/cmd/lockstat/lockstat.1
diff options
authorMark Johnston <markj@FreeBSD.org>2015-09-30 05:46:56 +0000
committerMark Johnston <markj@FreeBSD.org>2015-09-30 05:46:56 +0000
commit3142b37664aacab88dc8df5420ed4527807e8b60 (patch)
tree729bcc4069ad5e5c942c0b90142c5fec64dadc29 /cddl/contrib/opensolaris/cmd/lockstat/lockstat.1
parentb22ef02080104899c98f4219095f06c5c5378b0f (diff)
Have lockstat(1) trace locks by name rather than by address.
Previously, lockstat(1) would use a lock's address as its identifier when consuming data describing lock contention and hold events. After collecting the requested data, it would use ksyms(4) to resolve lock addresses to names. Of course, this doesn't work too well for locks contained in dynamically-allocated memory. This change modifies lockstat(1) to trace the lock names obtained from the base struct lock_object instead, leading to output that is generally much more useful. This change also removes the -c option, which is used to coalesce data for locks in an array. It's not possible to support this option without also tracing lock addresses, and since lock arrays in which the lock names are distinct are not very common in FreeBSD, it's simpler to just remove the option. Reviewed by: avg (earlier revision) Differential Revision: https://reviews.freebsd.org/D3661
Notes: svn path=/head/; revision=288417
Diffstat (limited to 'cddl/contrib/opensolaris/cmd/lockstat/lockstat.1')
1 files changed, 2 insertions, 4 deletions
diff --git a/cddl/contrib/opensolaris/cmd/lockstat/lockstat.1 b/cddl/contrib/opensolaris/cmd/lockstat/lockstat.1
index 1aa73cc114ea..552496840d3b 100644
--- a/cddl/contrib/opensolaris/cmd/lockstat/lockstat.1
+++ b/cddl/contrib/opensolaris/cmd/lockstat/lockstat.1
@@ -21,7 +21,7 @@
.\" $FreeBSD$
-.Dd May 24, 2015
+.Dd September 29, 2015
@@ -38,7 +38,7 @@
.Op Fl d Ar duration
.Op Fl f Ar function Oo Ns , Ns Ar size Oc
.Op Fl T
-.Op Fl ckgwWRpP
+.Op Fl kgwWRpP
.Op Fl D Ar count
.Op Fl o filename
.Op Fl x Ar opt Oo Ns = Ns Ar val Oc
@@ -172,8 +172,6 @@ This is off by default.
.Ss Data Reporting
.Bl -tag -width indent
-.It Fl c
-Coalesce lock data for lock arrays.
.It Fl D Ar count
Only display the top
.Ar count