Lines Matching refs:pid

79 			  machine->pid) < 0)
85 int machine__init(struct machine *machine, const char *root_dir, pid_t pid)
99 machine->pid = pid;
114 if (pid != HOST_KERNEL_ID) {
116 pid);
122 snprintf(comm, sizeof(comm), "[guest/%d]", pid);
266 struct machine *machines__add(struct machines *machines, pid_t pid,
277 if (machine__init(machine, root_dir, pid) != 0) {
285 if (pid < pos->pid)
312 struct machine *machines__find(struct machines *machines, pid_t pid)
319 if (pid == HOST_KERNEL_ID)
325 if (pid < machine->pid)
327 else if (pid > machine->pid)
331 if (!machine->pid)
338 struct machine *machines__findnew(struct machines *machines, pid_t pid)
342 struct machine *machine = machines__find(machines, pid);
344 if (machine && (machine->pid == pid))
347 if ((pid != HOST_KERNEL_ID) &&
348 (pid != DEFAULT_GUEST_KERNEL_ID) &&
350 sprintf(path, "%s/%d", symbol_conf.guestmount, pid);
367 machine = machines__add(machines, pid, root_dir);
400 struct thread *th, pid_t pid)
404 if (pid == th->pid_ || pid == -1 || th->pid_ != -1)
407 th->pid_ = pid;
427 * Maps are created from MMAP events which provide the pid and
429 * with an unknown pid. Just print an error if there are.
453 int pid, int tid)
460 machine__update_thread_pid(machine, th, pid);
472 int pid, int tid)
477 th = __threads__get_last_match(threads, machine, pid, tid);
501 pid_t pid, pid_t tid,
509 th = threads__get_last_match(threads, machine, pid, tid);
519 machine__update_thread_pid(machine, th, pid);
534 th = thread__new(pid, tid);
563 struct thread *__machine__findnew_thread(struct machine *machine, pid_t pid, pid_t tid)
565 return ____machine__findnew_thread(machine, machine__threads(machine, tid), pid, tid, true);
568 struct thread *machine__findnew_thread(struct machine *machine, pid_t pid,
575 th = __machine__findnew_thread(machine, pid, tid);
580 struct thread *machine__find_thread(struct machine *machine, pid_t pid,
587 th = ____machine__findnew_thread(machine, threads, pid, tid, false);
605 event->comm.pid,
632 event->namespaces.pid,
1208 pid_t pid;
1226 pid = (pid_t)strtol(namelist[i]->d_name, &endp, 10);
1242 machines__create_kernel_maps(machines, pid);
1266 int machines__create_kernel_maps(struct machines *machines, pid_t pid)
1268 struct machine *machine = machines__findnew(machines, pid);
1538 "continuing anyway...\n", machine->pid);
1744 thread = machine__findnew_thread(machine, event->mmap2.pid,
1794 thread = machine__findnew_thread(machine, event->mmap.pid,
1868 event->fork.pid,
1900 thread = machine__findnew_thread(machine, event->fork.pid,
1934 event->fork.pid,
2987 int machine__set_current_tid(struct machine *machine, int cpu, pid_t pid,
3014 thread = machine__findnew_thread(machine, pid, tid);