Lines Matching refs:cmdline
66 std::string cmdline = cmdlines[i]; // mutable copy in NormalizeCmdlines() local
68 cmdline.resize(cmdline.size() + 1, '\0'); in NormalizeCmdlines()
69 char* cmdline_cstr = &(cmdline[0]); in NormalizeCmdlines()
70 ssize_t size = NormalizeCmdLine(&cmdline_cstr, cmdline.size()); in NormalizeCmdlines()
91 char cmdline[512]; in GetCmdlineForPID() local
92 const size_t max_read_size = sizeof(cmdline) - 1; in GetCmdlineForPID()
93 ssize_t rd = read(*fd, cmdline, max_read_size); in GetCmdlineForPID()
109 if (rd_u >= max_read_size && memchr(cmdline, '\0', rd_u) == nullptr) { in GetCmdlineForPID()
117 cmdline[rd] = '\0'; in GetCmdlineForPID()
118 char* cmdline_start = cmdline; in GetCmdlineForPID()
149 for (const std::string& cmdline : cmdlines) { in FindPidsForCmdlines() local
150 if (process_cmdline == cmdline) in FindPidsForCmdlines()