Lines Matching refs:tgid
73 pid_t *tgid, pid_t *ppid, bool *kernel) in perf_event__get_comm_ids() argument
81 *tgid = -1; in perf_event__get_comm_ids()
133 *tgid = atoi(tgids); in perf_event__get_comm_ids()
155 pid_t *tgid, pid_t *ppid, bool *kernel) in perf_event__prepare_comm() argument
166 tgid, ppid, kernel) != 0) { in perf_event__prepare_comm()
170 *tgid = machine->pid; in perf_event__prepare_comm()
173 if (*tgid < 0) in perf_event__prepare_comm()
176 event->comm.pid = *tgid; in perf_event__prepare_comm()
195 pid_t tgid, ppid; in perf_event__synthesize_comm() local
198 if (perf_event__prepare_comm(event, 0, pid, machine, &tgid, &ppid, in perf_event__synthesize_comm()
205 return tgid; in perf_event__synthesize_comm()
223 pid_t pid, pid_t tgid, in perf_event__synthesize_namespaces() argument
237 event->namespaces.pid = tgid; in perf_event__synthesize_namespaces()
262 pid_t pid, pid_t tgid, pid_t ppid, in perf_event__synthesize_fork() argument
273 if (tgid == pid) { in perf_event__synthesize_fork()
277 event->fork.ppid = tgid; in perf_event__synthesize_fork()
278 event->fork.ptid = tgid; in perf_event__synthesize_fork()
280 event->fork.pid = tgid; in perf_event__synthesize_fork()
423 pid_t pid, pid_t tgid, in perf_event__synthesize_mmap_events() argument
525 event->mmap2.pid = tgid; in perf_event__synthesize_mmap_events()
755 pid_t tgid, ppid; in __event__synthesize_thread() local
761 tgid = perf_event__synthesize_comm(tool, comm_event, pid, in __event__synthesize_thread()
764 if (tgid == -1) in __event__synthesize_thread()
768 tgid, process, machine) < 0) in __event__synthesize_thread()
775 if (pid == tgid && needs_mmap && in __event__synthesize_thread()
776 perf_event__synthesize_mmap_events(tool, mmap_event, pid, tgid, in __event__synthesize_thread()
804 &tgid, &ppid, &kernel_thread) != 0) in __event__synthesize_thread()
808 if (perf_event__synthesize_fork(tool, fork_event, _pid, tgid, in __event__synthesize_thread()
813 tgid, process, machine) < 0) in __event__synthesize_thread()
825 rc = perf_event__synthesize_mmap_events(tool, mmap_event, pid, tgid, in __event__synthesize_thread()