aboutsummaryrefslogtreecommitdiff
path: root/cddl/contrib/opensolaris/cmd
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2019-08-21 23:13:00 +0000
committerMark Johnston <markj@FreeBSD.org>2019-08-21 23:13:00 +0000
commit6ad06a5e50a1e1ea91e25346e15656d2259b3ed8 (patch)
tree7fd0e556917c0049ed63461794b61729e44e02f4 /cddl/contrib/opensolaris/cmd
parent51c5de5f25d99b44a6ec978a40f9edeeef111459 (diff)
downloadsrc-6ad06a5e50a1e1ea91e25346e15656d2259b3ed8.tar.gz
src-6ad06a5e50a1e1ea91e25346e15656d2259b3ed8.zip
Fix inverted predicates for sx lock hold events in lockstat(1).
This caused shared sx holds to be reported as exclusive, and vice versa. Reviewed by: mjg MFC after: 3 days Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=351359
Diffstat (limited to 'cddl/contrib/opensolaris/cmd')
-rw-r--r--cddl/contrib/opensolaris/cmd/lockstat/lockstat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cddl/contrib/opensolaris/cmd/lockstat/lockstat.c b/cddl/contrib/opensolaris/cmd/lockstat/lockstat.c
index 38bf681325e6..36a86b08377e 100644
--- a/cddl/contrib/opensolaris/cmd/lockstat/lockstat.c
+++ b/cddl/contrib/opensolaris/cmd/lockstat/lockstat.c
@@ -206,10 +206,10 @@ static ls_event_info_t g_event_info[LS_MAX_EVENTS] = {
"lockstat:::rw-release", "arg1 == 1",
"lockstat:::rw-acquire" },
{ 'H', "Lock", "SX shared hold", "nsec",
- "lockstat:::sx-release", "arg1 == 0",
+ "lockstat:::sx-release", "arg1 == 1",
"lockstat:::sx-acquire" },
{ 'H', "Lock", "SX exclusive hold", "nsec",
- "lockstat:::sx-release", "arg1 == 1",
+ "lockstat:::sx-release", "arg1 == 0",
"lockstat:::sx-acquire" },
{ 'H', "Lock", "Unknown event (type 38)", "units" },
{ 'H', "Lock", "Unknown event (type 39)", "units" },