LLDB  mainline
Classes | Public Member Functions | Static Public Member Functions | List of all members
lldb_private::process_linux::ProcessorTraceMonitor Class Reference

#include <ProcessorTrace.h>

Public Member Functions

Status ReadPerfTraceAux (llvm::MutableArrayRef< uint8_t > &buffer, size_t offset=0)
 
Status ReadPerfTraceData (llvm::MutableArrayRef< uint8_t > &buffer, size_t offset=0)
 
 ~ProcessorTraceMonitor ()=default
 
lldb::tid_t GetThreadID () const
 
lldb::user_id_t GetTraceID () const
 
Status GetTraceConfig (TraceOptions &config) const
 

Static Public Member Functions

static Status GetCPUType (TraceOptions &config)
 
static llvm::Expected< ProcessorTraceMonitorUPCreate (lldb::pid_t pid, lldb::tid_t tid, const TraceOptions &config, bool useProcessSettings)
 
static void ReadCyclicBuffer (llvm::MutableArrayRef< uint8_t > &dst, llvm::MutableArrayRef< uint8_t > src, size_t src_cyc_index, size_t offset)
 Read data from a cyclic buffer. More...
 

Detailed Description

Definition at line 42 of file ProcessorTrace.h.

Constructor & Destructor Documentation

◆ ~ProcessorTraceMonitor()

lldb_private::process_linux::ProcessorTraceMonitor::~ProcessorTraceMonitor ( )
default

Member Function Documentation

◆ Create()

llvm::Expected< ProcessorTraceMonitorUP > ProcessorTraceMonitor::Create ( lldb::pid_t  pid,
lldb::tid_t  tid,
const TraceOptions config,
bool  useProcessSettings 
)
static

◆ GetCPUType()

Status ProcessorTraceMonitor::GetCPUType ( TraceOptions config)
static

◆ GetThreadID()

lldb::tid_t lldb_private::process_linux::ProcessorTraceMonitor::GetThreadID ( ) const
inline

Definition at line 110 of file ProcessorTrace.h.

◆ GetTraceConfig()

Status ProcessorTraceMonitor::GetTraceConfig ( TraceOptions config) const

◆ GetTraceID()

lldb::user_id_t lldb_private::process_linux::ProcessorTraceMonitor::GetTraceID ( ) const
inline

Definition at line 112 of file ProcessorTrace.h.

References GetTraceConfig(), and ReadCyclicBuffer().

◆ ReadCyclicBuffer()

void ProcessorTraceMonitor::ReadCyclicBuffer ( llvm::MutableArrayRef< uint8_t > &  dst,
llvm::MutableArrayRef< uint8_t >  src,
size_t  src_cyc_index,
size_t  offset 
)
static

Read data from a cyclic buffer.

Parameters
[in][out]buf Destination buffer, the buffer will be truncated to written size.
[in]srcSource buffer which must be a cyclic buffer.
[in]src_cyc_indexThe index pointer (start of the valid data in the cyclic buffer).
[in]offsetThe offset to begin reading the data in the cyclic buffer.

Definition at line 348 of file ProcessorTrace.cpp.

References lldb_private::GetLogIfAllCategoriesSet(), LLDB_LOG, and POSIX_LOG_PTRACE.

Referenced by GetTraceID().

◆ ReadPerfTraceAux()

Status ProcessorTraceMonitor::ReadPerfTraceAux ( llvm::MutableArrayRef< uint8_t > &  buffer,
size_t  offset = 0 
)

◆ ReadPerfTraceData()

Status ProcessorTraceMonitor::ReadPerfTraceData ( llvm::MutableArrayRef< uint8_t > &  buffer,
size_t  offset = 0 
)

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