LLDB mainline
Classes | Namespaces | Typedefs | Functions
Perf.h File Reference

This file contains a thin wrapper of the perf_event_open API and classes to handle the destruction of file descriptors and mmap pointers. More...

#include "lldb/Utility/TraceIntelPTGDBRemotePackets.h"
#include "lldb/lldb-types.h"
#include "llvm/Support/Error.h"
#include <chrono>
#include <cstdint>
#include <linux/perf_event.h>

Go to the source code of this file.

Classes

class  lldb_private::process_linux::resource_handle::MmapDeleter
 Custom deleter for the pointer returned by mmap. More...
 
class  lldb_private::process_linux::resource_handle::FileDescriptorDeleter
 Custom deleter for a file descriptor. More...
 
class  lldb_private::process_linux::PerfEvent
 Thin wrapper of the perf_event_open API. More...
 

Namespaces

namespace  lldb_private
 A class that represents a running process on the host machine.
 
namespace  lldb_private::process_linux
 
namespace  lldb_private::process_linux::resource_handle
 

Typedefs

using lldb_private::process_linux::resource_handle::FileDescriptorUP = std::unique_ptr< long, resource_handle::FileDescriptorDeleter >
 
using lldb_private::process_linux::resource_handle::MmapUP = std::unique_ptr< void, resource_handle::MmapDeleter >
 

Functions

llvm::Expected< PerfEventlldb_private::process_linux::CreateContextSwitchTracePerfEvent (lldb::cpu_id_t cpu_id, const PerfEvent *parent_perf_event=nullptr)
 Create a perf event that tracks context switches on a cpu.
 
llvm::Expected< LinuxPerfZeroTscConversionlldb_private::process_linux::LoadPerfTscConversionParameters ()
 Load PerfTscConversionParameters from perf_event_mmap_page, if available.
 

Detailed Description

This file contains a thin wrapper of the perf_event_open API and classes to handle the destruction of file descriptors and mmap pointers.

Definition in file Perf.h.