Added support for detecting locks that have been held too long.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8079 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/exp-drd/drd_error.h b/exp-drd/drd_error.h
index c9fa953..fbff475 100644
--- a/exp-drd/drd_error.h
+++ b/exp-drd/drd_error.h
@@ -53,8 +53,10 @@
BarrierErr = 7,
#define STR_RwlockErr "RwlockErr"
RwlockErr = 8,
+#define STR_HoldtimeErr "HoldtimeErr"
+ HoldtimeErr = 9,
#define STR_GenericErr "GenericErr"
- GenericErr = 9,
+ GenericErr = 10,
} DrdErrorKind;
/* The classification of a faulting address. */
@@ -127,6 +129,13 @@
} RwlockErrInfo;
typedef struct {
+ Addr synchronization_object;
+ ExeContext* acquired_at;
+ UInt hold_time_ms;
+ UInt threshold_ms;
+} HoldtimeErrInfo;
+
+typedef struct {
} GenericErrInfo;