Module drd

Source
Available on crate feature client_requests_defs only.
Expand description

All public client requests from the drd.h header file

The client requests which do nothing or are not implemented (as of valgrind version 3.22) are not available.

See also DRD Client Requests

Functions§

annotate_benign_race
Tell DRD that data races at the specified address are expected and must not be reported
annotate_benign_race_sized
Same as annotate_benign_race, but applies to the memory range [addr, addr + size).
annotate_happens_after
See super::helgrind::annotate_happens_before
annotate_happens_before
Create completely arbitrary happens-before edges between threads
annotate_ignore_reads_and_writes_begin
Tell DRD to ignore all memory accesses performed by the current thread.
annotate_ignore_reads_and_writes_end
Tell DRD to no longer ignore the memory accesses performed by the current thread.
annotate_ignore_reads_begin
Tell DRD to ignore all reads performed by the current thread
annotate_ignore_reads_end
Tell DRD to no longer ignore the reads performed by the current thread.
annotate_ignore_writes_begin
Tell DRD to ignore all writes performed by the current thread.
annotate_ignore_writes_end
Tell DRD to no longer ignore the writes performed by the current thread.
annotate_new_memory
Tell DRD that size bytes starting at addr has been allocated by a custom memory allocator
annotate_rwlock_acquired
Report that the lock at address lock has just been acquired
annotate_rwlock_create
Report that a lock has just been created at address lock
annotate_rwlock_destroy
Report that the lock at address lock is about to be destroyed
annotate_rwlock_released
Report that the lock at address lock is about to be released
annotate_thread_name
Tell DRD to assign the specified name to the current thread.
annotate_trace_memory
Ask DRD to report every access to the specified address
get_drd_threadid
Obtain the thread ID assigned by DRD
get_valgrind_threadid
Obtain the thread ID assigned by Valgrind’s core
ignore_var
Tell DRD not to complain about data races for the specified variable
stop_ignoring_var
Tell DRD to no longer ignore data races for the specified variable that was suppressed via ignore_var
stop_tracing_var
Tell DRD to stop tracing memory accesses for the specified variable
trace_var
Tell DRD to trace all memory accesses for the specified variable until the memory that was allocated for the variable is freed.