Lines Matching refs:tgid
73 pid_t *tgid, pid_t *ppid) in perf_event__get_comm_ids() argument
81 *tgid = -1; in perf_event__get_comm_ids()
124 *tgid = atoi(tgids); in perf_event__get_comm_ids()
141 pid_t *tgid, pid_t *ppid) in perf_event__prepare_comm() argument
152 tgid, ppid) != 0) { in perf_event__prepare_comm()
156 *tgid = machine->pid; in perf_event__prepare_comm()
159 if (*tgid < 0) in perf_event__prepare_comm()
162 event->comm.pid = *tgid; in perf_event__prepare_comm()
181 pid_t tgid, ppid; in perf_event__synthesize_comm() local
183 if (perf_event__prepare_comm(event, pid, machine, &tgid, &ppid) != 0) in perf_event__synthesize_comm()
189 return tgid; in perf_event__synthesize_comm()
207 pid_t pid, pid_t tgid, in perf_event__synthesize_namespaces() argument
221 event->namespaces.pid = tgid; in perf_event__synthesize_namespaces()
246 pid_t pid, pid_t tgid, pid_t ppid, in perf_event__synthesize_fork() argument
257 if (tgid == pid) { in perf_event__synthesize_fork()
261 event->fork.ppid = tgid; in perf_event__synthesize_fork()
262 event->fork.ptid = tgid; in perf_event__synthesize_fork()
264 event->fork.pid = tgid; in perf_event__synthesize_fork()
352 pid_t pid, pid_t tgid, in perf_event__synthesize_mmap_events() argument
454 event->mmap2.pid = tgid; in perf_event__synthesize_mmap_events()
657 pid_t tgid, ppid; in __event__synthesize_thread() local
662 tgid = perf_event__synthesize_comm(tool, comm_event, pid, in __event__synthesize_thread()
665 if (tgid == -1) in __event__synthesize_thread()
669 tgid, process, machine) < 0) in __event__synthesize_thread()
676 if (pid == tgid && in __event__synthesize_thread()
677 perf_event__synthesize_mmap_events(tool, mmap_event, pid, tgid, in __event__synthesize_thread()
706 &tgid, &ppid) != 0) in __event__synthesize_thread()
709 if (perf_event__synthesize_fork(tool, fork_event, _pid, tgid, in __event__synthesize_thread()
714 tgid, process, machine) < 0) in __event__synthesize_thread()
726 rc = perf_event__synthesize_mmap_events(tool, mmap_event, pid, tgid, in __event__synthesize_thread()