• Home
  • Raw
  • Download

Lines Matching refs:pid

95                                             const int pid,  in MakeBeginFakeLog()  argument
105 auto taskId = GetTaskId(pid, gid); in MakeBeginFakeLog()
110 …threadName.c_str(), tid, pid, cpuId.c_str(), beginTimeStamp.c_str(), threadName.c_str(), tid, prio, in MakeBeginFakeLog()
116 const int pid, in MakeEndFakeLog() argument
126 auto taskId = GetTaskId(pid, gid); in MakeEndFakeLog()
131 …label.c_str(), taskId.c_str(), pid, cpuId.c_str(), endTimeStamp.c_str(), label.c_str(), taskId.c_s… in MakeEndFakeLog()
140 const int pid, in ReplaceSchedSwitchLog() argument
147 auto taskId = GetTaskId(pid, gid); in ReplaceSchedSwitchLog()
181 const int pid, in ReplaceSchedWakeLog() argument
185 auto taskId = GetTaskId(pid, gid); in ReplaceSchedWakeLog()
198 std::string FfrtConverter::ReplaceSchedBlockLog(std::string& fakeLog, const int pid, const long lon… in ReplaceSchedBlockLog() argument
201 auto taskId = GetTaskId(pid, gid); in ReplaceSchedBlockLog()
210 const int pid, in ReplaceTracingMarkLog() argument
215 auto taskId = GetTaskId(pid, gid); in ReplaceTracingMarkLog()
224 const int pid, in ConvertWorkerLogToTask() argument
231 return ReplaceSchedSwitchLog(fakeLog, mark, pid, label, gid, tid); in ConvertWorkerLogToTask()
234 return ReplaceSchedWakeLog(fakeLog, label, pid, gid); in ConvertWorkerLogToTask()
237 return ReplaceSchedBlockLog(fakeLog, pid, gid); in ConvertWorkerLogToTask()
239 return ReplaceTracingMarkLog(fakeLog, label, pid, gid); in ConvertWorkerLogToTask()
257 auto pid = ExtractProcessId(log); in ClassifySchedSwitchLogs() local
258 if (ffrtPidsMap.find(pid) == ffrtPidsMap.end()) { in ClassifySchedSwitchLogs()
259 ffrtPidsMap[pid] = {}; in ClassifySchedSwitchLogs()
266 if (ffrtPidsMap[pid].find(tid) == ffrtPidsMap[pid].end()) { in ClassifySchedSwitchLogs()
267 ffrtPidsMap[pid][tid].name = log.substr(beginPos, endPos - beginPos); in ClassifySchedSwitchLogs()
323 std::string FfrtConverter::GetTaskId(int pid, long long gid) in GetTaskId() argument
334 while (pid >= max) { in GetTaskId()
335 pid /= scaleFactor_; in GetTaskId()
337 ss << pid << "0" << gid; in GetTaskId()
364 for (auto& [pid, tids] : ffrtPidMap) { in ClassifyLogsForFfrtWorker()
367 ffrtPidMap[pid][tid].line = traceMap[tid]; in ClassifyLogsForFfrtWorker()
422 const int pid, in getNewMissLog() argument
429 …s(result.get(), MAX_LEN, " %s-%d (%7d) [%s] .... %s: %sE|%d\n", threadName.c_str(), tid, pid, in getNewMissLog()
430 cpuId.c_str(), timestamp.c_str(), tracingMarkerKey_.c_str(), pid); in getNewMissLog()
440 const int pid, in DeleteRedundance() argument
470 log = MakeEndFakeLog(mark, pid, label, gid, tid, threadName, prio); in DeleteRedundance()
475 auto fakeLog = ConvertWorkerLogToTask(mark, pid, label, gid, tid); in DeleteRedundance()
480 int pid, in ConvertFfrtThreadToFfrtTaskByLine() argument
501 … missLog = MakeEndFakeLog(mark, pid, taskLabels[pid][gid], gid, tid, threadName, prio); in ConvertFfrtThreadToFfrtTaskByLine()
502 missLog = getNewMissLog(missLog, mark, pid, tid, threadName); in ConvertFfrtThreadToFfrtTaskByLine()
510 if (taskLabels[pid].find(gid) == taskLabels[pid].end()) { in ConvertFfrtThreadToFfrtTaskByLine()
511 taskLabels[pid][gid] = label; in ConvertFfrtThreadToFfrtTaskByLine()
513 … results[line] = MakeBeginFakeLog(mark, pid, taskLabels[pid][gid], gid, tid, threadName, prio); in ConvertFfrtThreadToFfrtTaskByLine()
521 …eRedundance(mark, results[line], switchInFakeLog, switchOutFakeLog, pid, taskLabels[pid][gid], gid, in ConvertFfrtThreadToFfrtTaskByLine()
530 for (auto& [pid, tids] : ffrtPidsMap) { in ConvertFfrtThreadToFfrtTask()
531 taskLabels[pid] = {}; in ConvertFfrtThreadToFfrtTask()
532 for (auto& [tid, info] : ffrtPidsMap[pid]) { in ConvertFfrtThreadToFfrtTask()
533 ConvertFfrtThreadToFfrtTaskByLine(pid, tid, prio, results, info, taskLabels); in ConvertFfrtThreadToFfrtTask()