Lines Matching refs:pid
21 const std::string ProcessNames::ReadCmdline(uint64_t pid) { in ReadCmdline() argument
22 const std::string path = std::string("/proc/") + std::to_string(pid) + "/cmdline"; in ReadCmdline()
36 const std::string ProcessNames::ReadComm(uint64_t pid) { in ReadComm() argument
37 const std::string path = std::string("/proc/") + std::to_string(pid) + "/comm"; in ReadComm()
46 const std::string ProcessNames::Resolve(uint64_t pid) { in Resolve() argument
47 std::string name = ReadCmdline(pid); in Resolve()
59 name = ReadComm(pid); in Resolve()
67 std::string ProcessNames::Get(uint64_t pid) { in Get() argument
69 const std::string& cached = cache.get(pid); in Get()
75 std::string name = Resolve(pid); in Get()
76 cache.put(pid, name); in Get()