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

Public Member Functions

Error SanityCheck () const
bool IsContextSwitchRecord () const
bool IsErrorRecord () const

Public Attributes

uint32_t type
uint16_t misc
uint16_t size

Detailed Description

Definition at line 28 of file PerfContextSwitchDecoder.cpp.

Member Function Documentation

◆ IsContextSwitchRecord()

bool perf_event_header::IsContextSwitchRecord ( ) const

Definition at line 60 of file PerfContextSwitchDecoder.cpp.

References PERF_RECORD_SWITCH_CPU_WIDE, and type.

◆ IsErrorRecord()

bool perf_event_header::IsErrorRecord ( ) const

◆ SanityCheck()

Error perf_event_header::SanityCheck ( ) const
An llvm::Error if the record looks obviously wrong, or llvm::Error::success() otherwise.

Definition at line 36 of file PerfContextSwitchDecoder.cpp.

References PERF_RECORD_MAX, size, and type.

Member Data Documentation

◆ misc

uint16_t perf_event_header::misc

Definition at line 30 of file PerfContextSwitchDecoder.cpp.

Referenced by PerfContextSwitchRecord::IsOut().

◆ size

uint16_t perf_event_header::size

Definition at line 31 of file PerfContextSwitchDecoder.cpp.

Referenced by SanityCheck().

◆ type

uint32_t perf_event_header::type

Definition at line 29 of file PerfContextSwitchDecoder.cpp.

Referenced by IsContextSwitchRecord(), IsErrorRecord(), and SanityCheck().

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