Lines Matching refs:comm
303 char comm[TASK_COMM_LEN + 3]; // space for adding '[' and ']' member
310 void setComm(const char* _comm) { strncpy(comm + 1, _comm, sizeof(comm) - 2); } in setComm()
336 memset(comm, '\0', sizeof(comm)); in proc()
341 if (comm[1] == '\0') { // comm Valid? in getComm()
342 strncpy(comm + 1, llkProcGetName(tid, "/comm").c_str(), sizeof(comm) - 2); in getComm()
346 comm[0] = '['; in getComm()
350 size_t len = strlen(comm + 1); in getComm()
351 if (__predict_true(len < (sizeof(comm) - 1))) { in getComm()
352 if (comm[0] == '[') { in getComm()
353 if ((comm[len] != ']') && __predict_true(len < (sizeof(comm) - 2))) { in getComm()
354 comm[++len] = ']'; in getComm()
355 comm[++len] = '\0'; in getComm()
358 if (comm[len] == ']') { in getComm()
359 comm[len] = '\0'; in getComm()
363 return &comm[comm[0] != '[']; in getComm()
391 comm[0] = '\0'; in reset()
436 std::string llkProcGetName(pid_t tid, const char* comm, const char* cmdline) { in llkProcGetName() argument
440 if ((comm != nullptr) && (*comm != '\0')) { in llkProcGetName()
441 return comm; in llkProcGetName()
602 proc* llkTidAlloc(pid_t tid, pid_t pid, pid_t ppid, const char* comm, int time, char state, in llkTidAlloc() argument
604 auto it = tids.emplace(std::make_pair(tid, proc(tid, pid, ppid, comm, time, state, frozen))); in llkTidAlloc()