aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/lock.h
diff options
context:
space:
mode:
authorStacey Son <sson@FreeBSD.org>2009-05-26 20:28:22 +0000
committerStacey Son <sson@FreeBSD.org>2009-05-26 20:28:22 +0000
commita5aedd68b4eb5bb0cafdc51eb8f325c32543ad9a (patch)
treeb7873baadff878509f8c7b930ddeeaa84074e546 /sys/sys/lock.h
parente8cdb7739f0b50ae5650edc6207d6617770442f7 (diff)
downloadsrc-a5aedd68b4eb5bb0cafdc51eb8f325c32543ad9a.tar.gz
src-a5aedd68b4eb5bb0cafdc51eb8f325c32543ad9a.zip
Add the OpenSolaris dtrace lockstat provider. The lockstat provider
adds probes for mutexes, reader/writer and shared/exclusive locks to gather contention statistics and other locking information for dtrace scripts, the lockstat(1M) command and other potential consumers. Reviewed by: attilio jhb jb Approved by: gnn (mentor)
Notes
Notes: svn path=/head/; revision=192853
Diffstat (limited to 'sys/sys/lock.h')
-rw-r--r--sys/sys/lock.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/lock.h b/sys/sys/lock.h
index 8eb85a3f4cd6..19d38548cb59 100644
--- a/sys/sys/lock.h
+++ b/sys/sys/lock.h
@@ -61,6 +61,7 @@ struct lock_class {
void (*lc_assert)(struct lock_object *lock, int what);
void (*lc_ddb_show)(struct lock_object *lock);
void (*lc_lock)(struct lock_object *lock, int how);
+ int (*lc_owner)(struct lock_object *lock, struct thread **owner);
int (*lc_unlock)(struct lock_object *lock);
};