|
From: <sv...@va...> - 2009-07-26 15:47:01
|
Author: bart
Date: 2009-07-26 16:46:47 +0100 (Sun, 26 Jul 2009)
New Revision: 10615
Log:
Added the macro DRD_STOP_IGNORING_VAR().
Modified:
trunk/drd/drd.h
Modified: trunk/drd/drd.h
===================================================================
--- trunk/drd/drd.h 2009-07-26 15:43:39 UTC (rev 10614)
+++ trunk/drd/drd.h 2009-07-26 15:46:47 UTC (rev 10615)
@@ -78,6 +78,9 @@
/** Tell DRD not to complain about data races for the specified variable. */
#define DRD_IGNORE_VAR(x) DRDCL_(ignore_range)(&(x), sizeof(x))
+/** Tell DRD to no longer ignore data races for the specified variable. */
+#define DRD_STOP_IGNORING_VAR(x) DRDCL_(ignore_range)(&(x), sizeof(x))
+
/**
* Tell DRD to trace all memory accesses on the specified variable.
* until the memory that was allocated for the variable is freed.
@@ -372,6 +375,14 @@
}
static __inline__
+void DRDCL_(stop_ignoring_range)(const void* const addr, const int size)
+{
+ int res;
+ VALGRIND_DO_CLIENT_REQUEST(res, 0, VG_USERREQ__DRD_FINISH_SUPPRESSION,
+ addr, size, 0, 0, 0);
+}
+
+static __inline__
void DRDCL_(trace_range)(const void* const addr, const int size)
{
int res;
|