LLDB mainline
|
Go to the source code of this file.
Classes | |
struct | perf_event_header |
struct | PerfContextSwitchRecord |
Record found in the perf_event context switch traces. More... | |
struct | ContextSwitchRecord |
Record produced after parsing the raw context switch trace produce by perf_event. More... | |
Macros | |
#define | PERF_RECORD_MISC_SWITCH_OUT (1 << 13) |
Copied from <linux/perf_event.h> to avoid depending on perf_event.h on non-linux platforms. | |
#define | PERF_RECORD_LOST 2 |
#define | PERF_RECORD_THROTTLE 5 |
#define | PERF_RECORD_UNTHROTTLE 6 |
#define | PERF_RECORD_LOST_SAMPLES 13 |
#define | PERF_RECORD_SWITCH_CPU_WIDE 15 |
#define | PERF_RECORD_MAX 19 |
Functions | |
static Error | RecoverExecutionsFromConsecutiveRecords (cpu_id_t cpu_id, const LinuxPerfZeroTscConversion &tsc_conversion, const ContextSwitchRecord ¤t_record, const std::optional< ContextSwitchRecord > &prev_record, std::function< void(const ThreadContinuousExecution &execution)> on_new_execution) |
#define PERF_RECORD_LOST 2 |
Definition at line 21 of file PerfContextSwitchDecoder.cpp.
#define PERF_RECORD_LOST_SAMPLES 13 |
Definition at line 24 of file PerfContextSwitchDecoder.cpp.
#define PERF_RECORD_MAX 19 |
Definition at line 26 of file PerfContextSwitchDecoder.cpp.
#define PERF_RECORD_MISC_SWITCH_OUT (1 << 13) |
Copied from <linux/perf_event.h> to avoid depending on perf_event.h on non-linux platforms.
Definition at line 19 of file PerfContextSwitchDecoder.cpp.
#define PERF_RECORD_SWITCH_CPU_WIDE 15 |
Definition at line 25 of file PerfContextSwitchDecoder.cpp.
#define PERF_RECORD_THROTTLE 5 |
Definition at line 22 of file PerfContextSwitchDecoder.cpp.
#define PERF_RECORD_UNTHROTTLE 6 |
Definition at line 23 of file PerfContextSwitchDecoder.cpp.
|
static |
A complete execution
Definition at line 192 of file PerfContextSwitchDecoder.cpp.
References lldb_private::trace_intel_pt::ThreadContinuousExecution::CreateCompleteExecution(), lldb_private::trace_intel_pt::ThreadContinuousExecution::CreateHintedEndExecution(), lldb_private::trace_intel_pt::ThreadContinuousExecution::CreateHintedStartExecution(), lldb_private::trace_intel_pt::ThreadContinuousExecution::CreateOnlyEndExecution(), ContextSwitchRecord::IsIn(), ContextSwitchRecord::IsOut(), ContextSwitchRecord::pid, ContextSwitchRecord::tid, and ContextSwitchRecord::tsc.