LLDB mainline
Functions
IntelPTCollector.cpp File Reference
#include "IntelPTCollector.h"
#include "Perf.h"
#include "Plugins/Process/POSIX/ProcessPOSIXLog.h"
#include "Procfs.h"
#include "lldb/Host/linux/Support.h"
#include "lldb/Utility/StreamString.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/MathExtras.h"
#include <algorithm>
#include <cstddef>
#include <fcntl.h>
#include <fstream>
#include <linux/perf_event.h>
#include <optional>
#include <sstream>
#include <sys/ioctl.h>
#include <sys/syscall.h>

Go to the source code of this file.

Functions

static std::optional< int > GetCGroupFileDescriptor (lldb::pid_t pid)
 

Function Documentation

◆ GetCGroupFileDescriptor()

static std::optional< int > GetCGroupFileDescriptor ( lldb::pid_t  pid)
static
Returns
some file descriptor in /sys/fs/ associated with the cgroup of the given pid, or std::nullopt if the pid is not part of a cgroup.

Definition at line 69 of file IntelPTCollector.cpp.

Referenced by lldb_private::process_linux::IntelPTCollector::TraceStart().