Home
last modified time | relevance | path

Searched refs:tgid (Results 1 – 21 of 21) sorted by relevance

/tools/testing/selftests/bpf/progs/
Dtest_core_reloc_kernel.c28 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 …]
Dbpf_iter_test_kern3.c13 int tgid; in dump_task() local
15 tgid = task->tgid; in dump_task()
16 bpf_seq_write(seq, &tgid, sizeof(tgid)); in dump_task()
Dbpf_iter_task_file.c10 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()
Dtest_core_retro.c8 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()
Dbpf_iter_task.c24 BPF_SEQ_PRINTF(seq, "%8d %8d\n", task->tgid, task->pid); in dump_task()
Dtest_skb_helpers.c25 bpf_probe_read_kernel(&tpid , sizeof(tpid), &task->tgid); in test_skb_helpers()
Dtest_ns_current_pid_tgid.c26 ns_pid_tgid = (__u64)nsdata.tgid << 32 | nsdata.pid; in trace()
Dtest_skmsg_load_helpers.c40 bpf_probe_read_kernel(&tpid , sizeof(tpid), &task->tgid); in prog_msg_verdict()
Dtest_subprogs.c44 return BPF_CORE_READ((struct task_struct *)(void *)t, tgid); in get_task_tgid()
Dprofiler.inc.h149 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/
Drunqslower.bpf.c28 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/
Dnamespaces.c109 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()
Dsynthetic-events.c73 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 …]
Dnamespaces.h33 pid_t tgid; member
Dsynthetic-events.h45 …_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…
Dsymbol.c1761 snprintf(filebuf, bufsz, "/tmp/perf-%d.map", nnsi->tgid); in dso__find_perf_map()
/tools/testing/selftests/ptrace/
Dpeeksiginfo.c15 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/
Dpid_iter.bpf.c72 e.pid = task->tgid; in iter()
/tools/perf/
Dbuiltin-record.c1798 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/
Dbpf_iter.c152 skel->bss->tgid = getpid(); in test_task_file()
/tools/include/uapi/linux/
Dbpf.h5010 __u32 tgid; member