Lines Matching refs:pid
62 unsigned long pid; member
449 unsigned long pid, const char *comm) in register_pid() argument
459 if (pid >= (unsigned long)pid_max) { in register_pid()
460 BUG_ON((sched->pid_to_task = realloc(sched->pid_to_task, (pid + 1) * in register_pid()
462 while (pid >= (unsigned long)pid_max) in register_pid()
466 task = sched->pid_to_task[pid]; in register_pid()
472 task->pid = pid; in register_pid()
481 sched->pid_to_task[pid] = task; in register_pid()
488 printf("registered task #%ld, PID %ld (%s)\n", sched->nr_tasks, pid, comm); in register_pid()
502 task->nr, task->comm, task->pid, task->nr_events); in print_task_traces()
838 const u32 pid = evsel__intval(evsel, sample, "pid"); in replay_wakeup_event() local
844 printf(" ... pid %d woke up %s/%d\n", sample->tid, comm, pid); in replay_wakeup_event()
848 wakee = register_pid(sched, pid, comm); in replay_wakeup_event()
906 child = machine__findnew_thread(machine, event->fork.pid, in replay_fork_event()
1203 const u32 pid = evsel__intval(evsel, sample, "pid"); in latency_runtime_event() local
1205 struct thread *thread = machine__findnew_thread(machine, -1, pid); in latency_runtime_event()
1238 const u32 pid = evsel__intval(evsel, sample, "pid"); in latency_wakeup_event() local
1245 wakee = machine__findnew_thread(machine, -1, pid); in latency_wakeup_event()
1299 const u32 pid = evsel__intval(evsel, sample, "pid"); in latency_migrate_task_event() local
1312 migrant = machine__findnew_thread(machine, -1, pid); in latency_migrate_task_event()
1549 map__findnew_thread(struct perf_sched *sched, struct machine *machine, pid_t pid, pid_t tid) in map__findnew_thread() argument
1551 struct thread *thread = machine__findnew_thread(machine, pid, tid); in map__findnew_thread()
1814 thread = machine__find_thread(machine, sample->pid, sample->tid); in perf_sched__process_comm()
1959 pid_t pid = thread__pid(thread); in timehist_get_commstr() local
1962 if (pid == 0) in timehist_get_commstr()
1965 else if (tid != pid) in timehist_get_commstr()
1966 n = scnprintf(str, sizeof(str), "%s[%d/%d]", comm, tid, pid); in timehist_get_commstr()
2191 return sample->pid == 0; in is_idle_sample()
2203 thread = machine__findnew_thread(machine, sample->pid, sample->pid); in save_task_callchain()
2205 pr_debug("Failed to get thread for pid %d.\n", sample->pid); in save_task_callchain()
2369 thread = machine__findnew_thread(machine, sample->pid, in timehist_get_thread()
2370 sample->tid ?: sample->pid); in timehist_get_thread()
2434 thread = machine__findnew_thread(machine, sample->pid, sample->tid); in timehist_print_wakeup_event()
2478 const u32 pid = evsel__intval(evsel, sample, "pid"); in timehist_sched_wakeup_event() local
2480 thread = machine__findnew_thread(machine, 0, pid); in timehist_sched_wakeup_event()
2517 thread = machine__findnew_thread(machine, sample->pid, sample->tid); in timehist_print_migration_event()
2562 const u32 pid = evsel__intval(evsel, sample, "pid"); in timehist_migrate_task_event() local
2564 thread = machine__findnew_thread(machine, 0, pid); in timehist_migrate_task_event()