|
From: <sv...@va...> - 2011-12-12 19:09:08
|
Author: bart
Date: 2011-12-12 19:04:28 +0000 (Mon, 12 Dec 2011)
New Revision: 12296
Log:
drd.h: Add macro DRD_STOP_TRACE_VAR(). To do: update manual
Modified:
trunk/drd/drd.h
Modified: trunk/drd/drd.h
===================================================================
--- trunk/drd/drd.h 2011-12-12 19:02:34 UTC (rev 12295)
+++ trunk/drd/drd.h 2011-12-12 19:04:28 UTC (rev 12296)
@@ -85,7 +85,7 @@
&(x), sizeof(x), 0, 0, 0)
/**
- * Tell DRD to trace all memory accesses on the specified variable.
+ * Tell DRD to trace all memory accesses for the specified variable
* until the memory that was allocated for the variable is freed.
*/
#define DRD_TRACE_VAR(x) \
@@ -93,6 +93,13 @@
&(x), sizeof(x), 0, 0, 0)
/**
+ * Tell DRD to stop tracing memory accesses for the specified variable.
+ */
+#define DRD_STOP_TRACE_VAR(x) \
+ VALGRIND_DO_CLIENT_REQUEST_STMT(VG_USERREQ__DRD_STOP_TRACE_ADDR, \
+ &(x), sizeof(x), 0, 0, 0)
+
+/**
* @defgroup RaceDetectionAnnotations Data race detection annotations.
*
* @see See also the source file <a href="http://code.google.com/p/data-race-test/source/browse/trunk/dynamic_annotations/dynamic_annotations.h</a>
|