Lines Matching defs:pid
254 uint32_t pid = tc->getCpuPtr()->getPid();
255 if (pid != BaseCPU::invldPid) {
256 mapPid(tc, pid);
257 tc->getCpuPtr()->taskId(taskMap[pid]);
264 LinuxArmSystem::mapPid(ThreadContext *tc, uint32_t pid)
266 // Create a new unique identifier for this pid
267 std::map<uint32_t, uint32_t>::iterator itr = taskMap.find(pid);
272 taskMap[pid] = ContextSwitchTaskId::Unknown;
274 taskMap[pid] = map_size;
294 DumpStatsPCEvent::getTaskDetails(ThreadContext *tc, uint32_t &pid,
299 pid = ti.curTaskPID(task_descriptor);
303 // Streamline treats pid == -1 as the kernel process.
304 // Also pid == 0 implies idle process (except during Linux boot)
316 DumpStatsPCEvent64::getTaskDetails(ThreadContext *tc, uint32_t &pid,
321 pid = ti.curTaskPIDFromTaskStruct(task_struct);
325 // Streamline treats pid == -1 as the kernel process.
326 // Also pid == 0 implies idle process (except during Linux boot)
336 uint32_t pid = 0;
341 getTaskDetails(tc, pid, tgid, next_task_str, mm);
344 if (is_kernel && (pid != 0)) {
345 pid = -1;
356 // Create a new unique identifier for this pid
357 sys->mapPid(tc, pid);
360 tc->getCpuPtr()->taskId(taskMap[pid]);
361 tc->getCpuPtr()->setPid(pid);
369 curTick(), taskMap[pid], tc->cpuId(), (int) pid, (int) tgid,