LLDB mainline
Public Member Functions | Public Attributes | List of all members
ContextSwitchRecord Struct Reference

Record produced after parsing the raw context switch trace produce by perf_event. More...

Public Member Functions

bool IsOut () const
 
bool IsIn () const
 

Public Attributes

uint64_t tsc
 
bool is_out
 Whether the switch is in or out.
 
lldb::pid_t pid
 pid = 0 and tid = 0 indicate the swapper or idle process, which normally runs after a context switch out of a normal user thread.
 
lldb::tid_t tid
 

Detailed Description

Record produced after parsing the raw context switch trace produce by perf_event.

A major difference between this struct and PerfContextSwitchRecord is that this one uses tsc instead of nanos.

Definition at line 87 of file PerfContextSwitchDecoder.cpp.

Member Function Documentation

◆ IsIn()

bool ContextSwitchRecord::IsIn ( ) const
inline

Definition at line 98 of file PerfContextSwitchDecoder.cpp.

References is_out.

Referenced by RecoverExecutionsFromConsecutiveRecords().

◆ IsOut()

bool ContextSwitchRecord::IsOut ( ) const
inline

Definition at line 96 of file PerfContextSwitchDecoder.cpp.

References is_out.

Referenced by RecoverExecutionsFromConsecutiveRecords().

Member Data Documentation

◆ is_out

bool ContextSwitchRecord::is_out

Whether the switch is in or out.

Definition at line 90 of file PerfContextSwitchDecoder.cpp.

Referenced by IsIn(), and IsOut().

◆ pid

lldb::pid_t ContextSwitchRecord::pid

pid = 0 and tid = 0 indicate the swapper or idle process, which normally runs after a context switch out of a normal user thread.

Definition at line 93 of file PerfContextSwitchDecoder.cpp.

Referenced by RecoverExecutionsFromConsecutiveRecords().

◆ tid

lldb::tid_t ContextSwitchRecord::tid

◆ tsc

uint64_t ContextSwitchRecord::tsc

The documentation for this struct was generated from the following file: