LLDB mainline
|
#include "IntelPTSingleBufferTrace.h"
#include "Plugins/Process/POSIX/ProcessPOSIXLog.h"
#include "lldb/Utility/Status.h"
#include "lldb/Utility/StreamString.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/TargetParser/Host.h"
#include <linux/perf_event.h>
#include <sstream>
#include <sys/syscall.h>
#include <unistd.h>
Go to the source code of this file.
Enumerations | |
enum | IntelPTConfigFileType { Hex = 0 , ZeroOne , Decimal , BitOffset } |
Functions | |
static Expected< uint32_t > | ReadIntelPTConfigFile (const char *file, IntelPTConfigFileType type) |
static Error | CheckPsbPeriod (size_t psb_period) |
Variables | |
const char | kOSEventIntelPTTypeFile [] |
const char | kPSBPeriodCapFile [] |
const char | kPSBPeriodValidValuesFile [] |
const char | kPSBPeriodBitOffsetFile [] |
const char | kTSCBitOffsetFile [] |
Enumerator | |
---|---|
Hex | |
ZeroOne | |
Decimal | |
BitOffset |
Definition at line 40 of file IntelPTSingleBufferTrace.cpp.
|
static |
Definition at line 112 of file IntelPTSingleBufferTrace.cpp.
References error(), Hex, kPSBPeriodCapFile, kPSBPeriodValidValuesFile, ReadIntelPTConfigFile(), and ZeroOne.
|
static |
Definition at line 51 of file IntelPTSingleBufferTrace.cpp.
References BitOffset, Decimal, Hex, and ZeroOne.
Referenced by CheckPsbPeriod(), and lldb_private::process_linux::GetIntelPTOSEventType().
const char kOSEventIntelPTTypeFile[] |
Definition at line 25 of file IntelPTSingleBufferTrace.cpp.
Referenced by lldb_private::process_linux::GetIntelPTOSEventType().
const char kPSBPeriodBitOffsetFile[] |
Definition at line 34 of file IntelPTSingleBufferTrace.cpp.
const char kPSBPeriodCapFile[] |
Definition at line 28 of file IntelPTSingleBufferTrace.cpp.
Referenced by CheckPsbPeriod().
const char kPSBPeriodValidValuesFile[] |
Definition at line 31 of file IntelPTSingleBufferTrace.cpp.
Referenced by CheckPsbPeriod().
const char kTSCBitOffsetFile[] |
Definition at line 37 of file IntelPTSingleBufferTrace.cpp.