]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
drd.h: Add macro DRD_STOP_TRACE_VAR(). To do: update manual
authorBart Van Assche <bvanassche@acm.org>
Mon, 12 Dec 2011 19:04:28 +0000 (19:04 +0000)
committerBart Van Assche <bvanassche@acm.org>
Mon, 12 Dec 2011 19:04:28 +0000 (19:04 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12296

drd/drd.h

index 6301a31e9054d2bc050e2290251449add5bed21e..a497ebf893aca10f9bd5f6551d53d12a1976af03 100644 (file)
--- a/drd/drd.h
+++ b/drd/drd.h
                                    &(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)                                             \
    VALGRIND_DO_CLIENT_REQUEST_STMT(VG_USERREQ__DRD_START_TRACE_ADDR, \
                                    &(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.
  *