Lines Matching defs:comm
85 constexpr const int PREFIX_MAX_SIZE = 128; // comm-pid (tgid) [cpu] .... ts.tns: tracing_mark_write:
456 std::string file = "/proc/self/task/" + tidStr + "/comm";
457 char comm[NAME_NORMAL_LEN + 1] = {0};
458 if (!GetProcData(file.c_str(), comm, NAME_NORMAL_LEN)) {
460 WriteOnceLog(LOG_ERROR, "get comm failed", isWriteLog);
463 if (comm[strlen(comm) - 1] == '\n') {
464 comm[strlen(comm) - 1] = '\0';
466 g_appTracePrefix = std::string(comm);