/tools/testing/selftests/bpf/progs/ |
D | test_core_reloc_kernel.c | 28 int tgid; member 42 int pid, tgid; in test_core_kernel() local 48 CORE_READ(&tgid, &task->tgid)) in test_core_kernel() 52 out->valid[0] = (((uint64_t)pid << 32) | tgid) == pid_tgid; in test_core_kernel() 56 tgid) == real_tgid; in test_core_kernel() 59 tgid) == real_tgid; in test_core_kernel() 62 tgid) == real_tgid; in test_core_kernel() 65 tgid) == real_tgid; in test_core_kernel() 69 tgid) == real_tgid; in test_core_kernel() 73 tgid) == real_tgid; in test_core_kernel() [all …]
|
D | bpf_iter_test_kern3.c | 13 int tgid; in dump_task() local 15 tgid = task->tgid; in dump_task() 16 bpf_seq_write(seq, &tgid, sizeof(tgid)); in dump_task()
|
D | bpf_iter_task_file.c | 10 int tgid = 0; variable 28 if (tgid == task->tgid && task->tgid != task->pid) in dump_task_file() 31 BPF_SEQ_PRINTF(seq, "%8d %8d %8d %lx\n", task->tgid, task->pid, fd, in dump_task_file()
|
D | test_core_retro.c | 8 int tgid; member 29 int tgid = BPF_CORE_READ(task, tgid); in handle_sys_enter() local 38 bpf_map_update_elem(&results, &zero, &tgid, 0); in handle_sys_enter()
|
D | bpf_iter_task.c | 24 BPF_SEQ_PRINTF(seq, "%8d %8d\n", task->tgid, task->pid); in dump_task()
|
D | test_skb_helpers.c | 25 bpf_probe_read_kernel(&tpid , sizeof(tpid), &task->tgid); in test_skb_helpers()
|
D | test_ns_current_pid_tgid.c | 26 ns_pid_tgid = (__u64)nsdata.tgid << 32 | nsdata.pid; in trace()
|
D | test_skmsg_load_helpers.c | 40 bpf_probe_read_kernel(&tpid , sizeof(tpid), &task->tgid); in prog_msg_verdict()
|
D | test_subprogs.c | 44 return BPF_CORE_READ((struct task_struct *)(void *)t, tgid); in get_task_tgid()
|
D | profiler.inc.h | 149 static INLINE bool is_init_process(u32 tgid) in is_init_process() argument 151 return tgid == 1 || tgid == 0; in is_init_process() 194 ppid = BPF_CORE_READ(parent, tgid); in populate_ancestors() 715 proc_exec_data->parent_pid = BPF_CORE_READ(parent_task, tgid); in raw_tracepoint__sched_process_exec()
|
/tools/bpf/runqslower/ |
D | runqslower.bpf.c | 28 static int trace_enqueue(u32 tgid, u32 pid) in trace_enqueue() argument 46 return trace_enqueue(p->tgid, p->pid); in handle__sched_wakeup() 55 return trace_enqueue(p->tgid, p->pid); in handle__sched_wakeup_new() 73 trace_enqueue(prev->tgid, prev->pid); in handle__sched_switch()
|
/tools/perf/util/ |
D | namespaces.c | 109 nsi->tgid = (pid_t)strtol(strrchr(statln, '\t'), in nsinfo__init() 111 nsi->nstgid = nsi->tgid; in nsinfo__init() 140 nsi->tgid = pid; in nsinfo__new() 166 nnsi->tgid = nsi->tgid; in nsinfo__copy()
|
D | synthetic-events.c | 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() [all …]
|
D | namespaces.h | 33 pid_t tgid; member
|
D | synthetic-events.h | 45 …_events(struct perf_tool *tool, union perf_event *event, pid_t pid, pid_t tgid, perf_event__handle… 47 …espaces(struct perf_tool *tool, union perf_event *event, pid_t pid, pid_t tgid, perf_event__handle…
|
D | symbol.c | 1761 snprintf(filebuf, bufsz, "/tmp/perf-%d.map", nnsi->tgid); in dso__find_perf_map()
|
/tools/testing/selftests/ptrace/ |
D | peeksiginfo.c | 15 static int sys_rt_sigqueueinfo(pid_t tgid, int sig, siginfo_t *uinfo) in sys_rt_sigqueueinfo() argument 17 return syscall(SYS_rt_sigqueueinfo, tgid, sig, uinfo); in sys_rt_sigqueueinfo() 20 static int sys_rt_tgsigqueueinfo(pid_t tgid, pid_t tid, in sys_rt_tgsigqueueinfo() argument 23 return syscall(SYS_rt_tgsigqueueinfo, tgid, tid, sig, uinfo); in sys_rt_tgsigqueueinfo()
|
/tools/bpf/bpftool/skeleton/ |
D | pid_iter.bpf.c | 72 e.pid = task->tgid; in iter()
|
/tools/perf/ |
D | builtin-record.c | 1798 pid_t tgid; in __cmd_record() local 1812 tgid = perf_event__synthesize_comm(tool, event, in __cmd_record() 1818 if (tgid == -1) in __cmd_record() 1834 tgid, process_synthesized_event, in __cmd_record()
|
/tools/testing/selftests/bpf/prog_tests/ |
D | bpf_iter.c | 152 skel->bss->tgid = getpid(); in test_task_file()
|
/tools/include/uapi/linux/ |
D | bpf.h | 5010 __u32 tgid; member
|