Skip to main content

Module tsan

Module tsan 

Source

Structs§

TsanReportData
Struct to hold general report data.
TsanReportLoc
Struct to hold location report data.
TsanReportMop
Struct to hold memory operation report data.
TsanReportMutex
Struct to hold mutex report data.
TsanReportThread
Struct to hold thread report data.

Functions§

acquire
Establishes a happens-before relation with a preceding acquire on the same address.
check_no_mutexes_held
Check that the current thread does not hold any mutexes, report a bug otherwise.
create_fiber
Creates a fiber.
destroy_fiber
Destroys a fiber.
external_assign_tag
Assigns a tag to a heap object.
external_read
Annotates a logical read of the object at the specified address.
external_register_header
Registers a header for an external tag.
external_register_tag
Registers a tag with the specified name.
external_write
Annotates a logical write of the object at the specified address.
flush_memory
Release TSan internal memory in a best-effort manner.
get_current_report
Returns the current report.
get_report_data
Returns a report’s description.
get_report_loc
Returns information about locations included in the report.
get_report_mop
Returns information about memory operations included in the report.
get_report_mutex
Returns information about mutexes included in the report.
get_report_stack
Returns information about stack traces included in the report.
get_report_thread
Returns information about threads included in the report.
get_report_unique_tid
Returns information about unique thread IDs included in the report.
mutex_create
Annotate creation of a mutex.
mutex_destroy
Annotate destruction of a mutex.
mutex_post_divert
Annotate end of a region of code where lock/unlock/signal operation diverts to do something else unrelated to the mutex.
mutex_post_lock
Annotate end of lock operation.
mutex_post_signal
Annotate end of notify operation.
mutex_post_unlock
Annotate end of unlock operation.
mutex_pre_divert
Annotate a region of code where lock/unlock/signal operation diverts to do something else unrelated to the mutex.
mutex_pre_lock
Annotate start of lock operation.
mutex_pre_signal
Annotate start of notify operation.
mutex_pre_unlock
Annotate start of unlock operation.
on_finalize
User-provided callback invoked on TSan shutdown.
on_initialize
User-provided callback invoked on TSan initialization.
release
Establishes a happens-before relation with a subsequent release on the same address.
set_fiber_name
Sets a fiber name.
switch_to_fiber
Switches to a fiber.