LLDB mainline
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | List of all members
lldb_private::InstrumentationRuntimeTSan Class Reference

#include <InstrumentationRuntimeTSan.h>

Inheritance diagram for lldb_private::InstrumentationRuntimeTSan:
Inheritance graph
[legend]

Public Member Functions

 ~InstrumentationRuntimeTSan () override
 
llvm::StringRef GetPluginName () override
 
virtual lldb::InstrumentationRuntimeType GetType ()
 
lldb::ThreadCollectionSP GetBacktracesFromExtendedStopInfo (StructuredData::ObjectSP info) override
 
- Public Member Functions inherited from lldb_private::InstrumentationRuntime
void ModulesDidLoad (lldb_private::ModuleList &module_list)
 Look for the instrumentation runtime in module_list.
 
bool IsActive () const
 
virtual lldb::ThreadCollectionSP GetBacktracesFromExtendedStopInfo (StructuredData::ObjectSP info)
 
- Public Member Functions inherited from lldb_private::PluginInterface
 PluginInterface ()=default
 
virtual ~PluginInterface ()=default
 
virtual llvm::StringRef GetPluginName ()=0
 
 PluginInterface (const PluginInterface &)=delete
 
PluginInterfaceoperator= (const PluginInterface &)=delete
 

Static Public Member Functions

static lldb::InstrumentationRuntimeSP CreateInstance (const lldb::ProcessSP &process_sp)
 
static void Initialize ()
 
static void Terminate ()
 
static llvm::StringRef GetPluginNameStatic ()
 
static lldb::InstrumentationRuntimeType GetTypeStatic ()
 
- Static Public Member Functions inherited from lldb_private::InstrumentationRuntime
static void ModulesDidLoad (lldb_private::ModuleList &module_list, Process *process, InstrumentationRuntimeCollection &runtimes)
 

Private Member Functions

 InstrumentationRuntimeTSan (const lldb::ProcessSP &process_sp)
 
const RegularExpressionGetPatternForRuntimeLibrary () override
 Return a regular expression which can be used to identify a valid version of the runtime library.
 
bool CheckIfRuntimeIsValid (const lldb::ModuleSP module_sp) override
 Check whether module_sp corresponds to a valid runtime library.
 
void Activate () override
 Register a breakpoint in the runtime library and perform any other necessary initialization.
 
void Deactivate ()
 
StructuredData::ObjectSP RetrieveReportData (ExecutionContextRef exe_ctx_ref)
 
std::string FormatDescription (StructuredData::ObjectSP report)
 
std::string GenerateSummary (StructuredData::ObjectSP report)
 
lldb::addr_t GetMainRacyAddress (StructuredData::ObjectSP report)
 
std::string GetLocationDescription (StructuredData::ObjectSP report, lldb::addr_t &global_addr, std::string &global_name, std::string &filename, uint32_t &line)
 
lldb::addr_t GetFirstNonInternalFramePc (StructuredData::ObjectSP trace, bool skip_one_frame=false)
 

Static Private Member Functions

static bool NotifyBreakpointHit (void *baton, StoppointCallbackContext *context, lldb::user_id_t break_id, lldb::user_id_t break_loc_id)
 

Additional Inherited Members

- Protected Member Functions inherited from lldb_private::InstrumentationRuntime
 InstrumentationRuntime (const lldb::ProcessSP &process_sp)
 
lldb::ProcessSP GetProcessSP ()
 
lldb::ModuleSP GetRuntimeModuleSP ()
 
void SetRuntimeModuleSP (lldb::ModuleSP module_sp)
 
lldb::user_id_t GetBreakpointID () const
 
void SetBreakpointID (lldb::user_id_t ID)
 
void SetActive (bool IsActive)
 
virtual const RegularExpressionGetPatternForRuntimeLibrary ()=0
 Return a regular expression which can be used to identify a valid version of the runtime library.
 
virtual bool CheckIfRuntimeIsValid (const lldb::ModuleSP module_sp)=0
 Check whether module_sp corresponds to a valid runtime library.
 
virtual void Activate ()=0
 Register a breakpoint in the runtime library and perform any other necessary initialization.
 

Detailed Description

Definition at line 19 of file InstrumentationRuntimeTSan.h.

Constructor & Destructor Documentation

◆ ~InstrumentationRuntimeTSan()

InstrumentationRuntimeTSan::~InstrumentationRuntimeTSan ( )
override

Definition at line 61 of file InstrumentationRuntimeTSan.cpp.

References Deactivate().

◆ InstrumentationRuntimeTSan()

lldb_private::InstrumentationRuntimeTSan::InstrumentationRuntimeTSan ( const lldb::ProcessSP process_sp)
inlineprivate

Definition at line 42 of file InstrumentationRuntimeTSan.h.

Member Function Documentation

◆ Activate()

void InstrumentationRuntimeTSan::Activate ( )
overrideprivatevirtual

◆ CheckIfRuntimeIsValid()

bool InstrumentationRuntimeTSan::CheckIfRuntimeIsValid ( const lldb::ModuleSP  module_sp)
overrideprivatevirtual

Check whether module_sp corresponds to a valid runtime library.

Implements lldb_private::InstrumentationRuntime.

Definition at line 886 of file InstrumentationRuntimeTSan.cpp.

References lldb::eSymbolTypeAny.

◆ CreateInstance()

lldb::InstrumentationRuntimeSP InstrumentationRuntimeTSan::CreateInstance ( const lldb::ProcessSP process_sp)
static

Definition at line 43 of file InstrumentationRuntimeTSan.cpp.

Referenced by Initialize(), and Terminate().

◆ Deactivate()

void InstrumentationRuntimeTSan::Deactivate ( )
private

◆ FormatDescription()

std::string InstrumentationRuntimeTSan::FormatDescription ( StructuredData::ObjectSP  report)
private

Definition at line 494 of file InstrumentationRuntimeTSan.cpp.

Referenced by NotifyBreakpointHit().

◆ GenerateSummary()

std::string InstrumentationRuntimeTSan::GenerateSummary ( StructuredData::ObjectSP  report)
private

◆ GetBacktracesFromExtendedStopInfo()

lldb::ThreadCollectionSP InstrumentationRuntimeTSan::GetBacktracesFromExtendedStopInfo ( StructuredData::ObjectSP  info)
overridevirtual

◆ GetFirstNonInternalFramePc()

addr_t InstrumentationRuntimeTSan::GetFirstNonInternalFramePc ( StructuredData::ObjectSP  trace,
bool  skip_one_frame = false 
)
private

◆ GetLocationDescription()

std::string InstrumentationRuntimeTSan::GetLocationDescription ( StructuredData::ObjectSP  report,
lldb::addr_t global_addr,
std::string &  global_name,
std::string &  filename,
uint32_t &  line 
)
private

◆ GetMainRacyAddress()

addr_t InstrumentationRuntimeTSan::GetMainRacyAddress ( StructuredData::ObjectSP  report)
private

◆ GetPatternForRuntimeLibrary()

const RegularExpression & InstrumentationRuntimeTSan::GetPatternForRuntimeLibrary ( )
overrideprivatevirtual

Return a regular expression which can be used to identify a valid version of the runtime library.

Implements lldb_private::InstrumentationRuntime.

Definition at line 881 of file InstrumentationRuntimeTSan.cpp.

◆ GetPluginName()

llvm::StringRef lldb_private::InstrumentationRuntimeTSan::GetPluginName ( )
inlineoverridevirtual

Implements lldb_private::PluginInterface.

Definition at line 34 of file InstrumentationRuntimeTSan.h.

References GetPluginNameStatic().

◆ GetPluginNameStatic()

static llvm::StringRef lldb_private::InstrumentationRuntimeTSan::GetPluginNameStatic ( )
inlinestatic

Definition at line 30 of file InstrumentationRuntimeTSan.h.

Referenced by GetPluginName(), and Initialize().

◆ GetType()

virtual lldb::InstrumentationRuntimeType lldb_private::InstrumentationRuntimeTSan::GetType ( )
inlinevirtual

Definition at line 36 of file InstrumentationRuntimeTSan.h.

References GetTypeStatic().

◆ GetTypeStatic()

lldb::InstrumentationRuntimeType InstrumentationRuntimeTSan::GetTypeStatic ( )
static

◆ Initialize()

void InstrumentationRuntimeTSan::Initialize ( )
static

◆ NotifyBreakpointHit()

bool InstrumentationRuntimeTSan::NotifyBreakpointHit ( void *  baton,
StoppointCallbackContext context,
lldb::user_id_t  break_id,
lldb::user_id_t  break_loc_id 
)
staticprivate

◆ RetrieveReportData()

StructuredData::ObjectSP InstrumentationRuntimeTSan::RetrieveReportData ( ExecutionContextRef  exe_ctx_ref)
private

◆ Terminate()

void InstrumentationRuntimeTSan::Terminate ( )
static

The documentation for this class was generated from the following files: