summaryrefslogtreecommitdiff
path: root/usr/src/lib/libdtrace/common/dt_impl.h
diff options
context:
space:
mode:
authorRoger A. Faulkner <Roger.Faulkner@Sun.COM>2010-01-11 17:42:13 -0800
committerRoger A. Faulkner <Roger.Faulkner@Sun.COM>2010-01-11 17:42:13 -0800
commit53f3aea0943e36e5fed2615ad5f9fd1f17de51d2 (patch)
tree388c0dbc3a451ff7ecf86b8263f9206f730c06e8 /usr/src/lib/libdtrace/common/dt_impl.h
parent86a9c507121ec77a92601d8844a5ca82373cd4aa (diff)
downloadillumos-gate-53f3aea0943e36e5fed2615ad5f9fd1f17de51d2.tar.gz
6915578 MUTEX_HELD() and RW_LOCK_HELD() macros should be available to Posix threads
Diffstat (limited to 'usr/src/lib/libdtrace/common/dt_impl.h')
-rw-r--r--usr/src/lib/libdtrace/common/dt_impl.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/usr/src/lib/libdtrace/common/dt_impl.h b/usr/src/lib/libdtrace/common/dt_impl.h
index adf0f74094..1937ce0647 100644
--- a/usr/src/lib/libdtrace/common/dt_impl.h
+++ b/usr/src/lib/libdtrace/common/dt_impl.h
@@ -20,7 +20,7 @@
*/
/*
- * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -33,6 +33,7 @@
#include <libctf.h>
#include <dtrace.h>
#include <gelf.h>
+#include <synch.h>
#ifdef __cplusplus
extern "C" {
@@ -567,17 +568,8 @@ extern int dt_buffered_flush(dtrace_hdl_t *, dtrace_probedata_t *,
extern void dt_buffered_disable(dtrace_hdl_t *);
extern void dt_buffered_destroy(dtrace_hdl_t *);
-extern int dt_rw_read_held(pthread_rwlock_t *);
-extern int dt_rw_write_held(pthread_rwlock_t *);
-extern int dt_mutex_held(pthread_mutex_t *);
-
extern uint64_t dt_stddev(uint64_t *, uint64_t);
-#define DT_RW_READ_HELD(x) dt_rw_read_held(x)
-#define DT_RW_WRITE_HELD(x) dt_rw_write_held(x)
-#define DT_RW_LOCK_HELD(x) (DT_RW_READ_HELD(x) || DT_RW_WRITE_HELD(x))
-#define DT_MUTEX_HELD(x) dt_mutex_held(x)
-
extern int dt_options_load(dtrace_hdl_t *);
extern void dt_dprintf(const char *, ...);