Lines Matching refs:gid

98                                             const long long gid,
105 auto taskId = GetTaskId(threadInfo.pid, gid);
111 threadInfo.name.c_str(), threadInfo.tid, prio, taskLabels_[threadInfo.pid][gid].c_str(), taskId.c_str(), prio);
116 const long long gid,
123 auto taskId = GetTaskId(threadInfo.pid, gid);
128 taskLabels_[threadInfo.pid][gid].c_str(), taskId.c_str(), threadInfo.pid, cpuId.c_str(), endTimeStamp.c_str(),
129 taskLabels_[threadInfo.pid][gid].c_str(), taskId.c_str(), prio, threadInfo.name.c_str(), threadInfo.tid, prio);
138 const long long gid,
143 auto taskId = GetTaskId(pid, gid);
148 (void)sprintf_s(result.get(), MAX_LEN, " %s-%s ", taskLabels_[pid][gid].c_str(), taskId.c_str());
153 (void)sprintf_s(result.get(), MAX_LEN, "prev_comm=%s ", taskLabels_[pid][gid].c_str());
164 (void)sprintf_s(result.get(), MAX_LEN, "next_comm=%s ", taskLabels_[pid][gid].c_str());
180 const long long gid)
183 auto taskId = GetTaskId(pid, gid);
200 std::string FfrtConverter::ReplaceSchedBlockLog(std::string &fakeLog, const int pid, const long long gid)
203 auto taskId = GetTaskId(pid, gid);
215 const long long gid)
219 auto taskId = GetTaskId(pid, gid);
229 const long long gid,
234 return ReplaceSchedSwitchLog(fakeLog, mark, pid, gid, tid);
237 return ReplaceSchedWakeLog(fakeLog, taskLabels_[pid][gid], pid, gid);
240 return ReplaceSchedBlockLog(fakeLog, pid, gid);
242 return ReplaceTracingMarkLog(fakeLog, taskLabels_[pid][gid], pid, gid);
317 std::string FfrtConverter::GetTaskId(int pid, long long gid)
320 ss << pid << "0" << gid;
374 auto gid = WAKE_EVENT_DEFAULT_VALUE;
379 if (!ProcessMarkWithFFRT(index, prio, gid, threadInfo)) {
385 if (gid != WAKE_EVENT_DEFAULT_VALUE) {
393 context_[index] = MakeEndFakeLog(context_[index], gid, prio, threadInfo);
394 gid = WAKE_EVENT_DEFAULT_VALUE;
398 context_[index] = ConvertWorkerLogToTask(context_[index], pid, gid, tid);
464 bool FfrtConverter::ProcessMarkWithFFRT(const int index, int &prio, int32_t &gid, const ThreadInfo &threadInfo)
472 if (gid != WAKE_EVENT_DEFAULT_VALUE) {
473 missLog = MakeEndFakeLog(line, gid, prio, threadInfo);
487 gid = stoll(line.substr(beginPos + 1));
488 if (taskLabels_[threadInfo.pid].count(gid) == 0) {
489 taskLabels_[threadInfo.pid][gid] = label;
491 context_[index] = MakeBeginFakeLog(line, gid, prio, threadInfo);