DebugServer2
Loading...
Searching...
No Matches
ds2::Host::Linux::ProcFS Class Reference

Classes

struct  ELFInfo
 
struct  Stat
 
struct  Uptime
 

Static Public Member Functions

static int OpenFd (const char *what, int mode=O_RDONLY)
 
static int OpenFd (pid_t pid, const char *what, int mode=O_RDONLY)
 
static int OpenFd (pid_t pid, pid_t tid, const char *what, int mode=O_RDONLY)
 
static FILE * OpenFILE (char const *what, char const *mode="r")
 
static FILE * OpenFILE (pid_t pid, char const *what, char const *mode="r")
 
static FILE * OpenFILE (pid_t pid, pid_t tid, const char *what, char const *mode="r")
 
static DIR * OpenDIR (const char *what)
 
static DIR * OpenDIR (pid_t pid, const char *what)
 
static DIR * OpenDIR (pid_t pid, pid_t tid, const char *what)
 
static bool ReadLink (pid_t pid, char const *what, char *buf, size_t bufsiz)
 
static bool ReadLink (pid_t pid, pid_t tid, char const *what, char *buf, size_t bufsiz)
 
static void ParseKeyValue (FILE *fp, size_t maxsize, char sep, std::function< bool(char const *, char const *)> const &cb)
 
static void ParseValues (FILE *fp, size_t maxsize, char sep, bool includeSep, std::function< bool(size_t, char const *)> const &cb)
 
static bool ReadUptime (Uptime &uptime)
 
static bool ReadStat (pid_t pid, Stat &stat)
 
static bool ReadStat (pid_t pid, pid_t tid, Stat &stat)
 
static bool ReadProcessIds (pid_t pid, pid_t &ppid, uid_t &uid, uid_t &euid, gid_t &gid, gid_t &egid)
 
static bool GetProcessELFInfo (pid_t pid, ELFInfo &info)
 
static int32_t GetProcessELFMachineType (pid_t pid, bool *is64Bit=nullptr)
 
static CPUType GetProcessCPUType (pid_t pid)
 
static bool ReadProcessInfo (pid_t pid, ProcessInfo &info)
 
static std::string GetProcessName (pid_t pid)
 
static pid_t GetProcessParentPid (pid_t pid)
 
static std::string GetThreadName (pid_t pid, pid_t tid)
 
static std::string GetProcessExecutableName (pid_t pid)
 
static std::string GetProcessExecutablePath (pid_t pid)
 
static bool GetProcessArguments (pid_t pid, ds2::StringCollection &args)
 
static std::string GetProcessArgumentsAsString (pid_t pid, bool arg0=false)
 
static bool EnumerateProcesses (bool allUsers, uid_t uid, std::function< void(pid_t, uid_t)> const &cb)
 
static bool EnumerateThreads (pid_t pid, std::function< void(pid_t)> const &cb)
 

The documentation for this class was generated from the following files: