Home
last modified time | relevance | path

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

12345

/linux/tools/testing/selftests/bpf/progs/
A 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()
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()
77 tgid) == real_tgid; in test_core_kernel()
[all …]
A 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()
A Dbpf_iter_task_file.c9 int tgid = 0; variable
27 if (tgid == task->tgid && task->tgid != task->pid) in dump_task_file()
30 BPF_SEQ_PRINTF(seq, "%8d %8d %8d %lx\n", task->tgid, task->pid, fd, in dump_task_file()
A 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()
A Dtest_core_reloc_module.c52 if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) in BPF_PROG()
86 if (task->pid != real_pid || task->tgid != real_tgid) in BPF_PROG()
/linux/kernel/bpf/preload/
A Dbpf_preload_kern.c54 struct pid *tgid; in finish() local
64 tgid = umd_ops.info.tgid; in finish()
65 if (tgid) { in finish()
66 wait_event(tgid->wait_pidfd, thread_group_exited(tgid)); in finish()
86 struct pid *tgid; in fini_umd() local
91 tgid = umd_ops.info.tgid; in fini_umd()
92 if (tgid) { in fini_umd()
93 kill_pid(tgid, SIGKILL, 1); in fini_umd()
95 wait_event(tgid->wait_pidfd, thread_group_exited(tgid)); in fini_umd()
/linux/net/bpfilter/
A Dbpfilter_kern.c19 struct pid *tgid = info->tgid; in shutdown_umh() local
21 if (tgid) { in shutdown_umh()
22 kill_pid(tgid, SIGKILL, 1); in shutdown_umh()
23 wait_event(tgid->wait_pidfd, thread_group_exited(tgid)); in shutdown_umh()
40 if (!bpfilter_ops.info.tgid) in bpfilter_send_req()
89 pr_info("Loaded bpfilter_umh pid %d\n", pid_nr(bpfilter_ops.info.tgid)); in start_umh()
/linux/arch/powerpc/kvm/
A Dtrace_hv.h395 __field(pid_t, tgid)
402 __entry->tgid = current->tgid;
407 __entry->runner_vcpu, __entry->n_runnable, __entry->tgid)
419 __field(pid_t, tgid)
426 __entry->tgid = current->tgid;
431 __entry->runner_vcpu, __entry->n_runnable, __entry->tgid)
442 __field(pid_t, tgid)
448 __entry->tgid = current->tgid;
453 __entry->ns, __entry->tgid)
463 __field(pid_t, tgid)
[all …]
/linux/net/ipv4/bpfilter/
A Dsockopt.c19 put_pid(info->tgid); in bpfilter_umh_cleanup()
20 info->tgid = NULL; in bpfilter_umh_cleanup()
39 if (bpfilter_ops.info.tgid && in bpfilter_mbox_request()
40 thread_group_exited(bpfilter_ops.info.tgid)) in bpfilter_mbox_request()
43 if (!bpfilter_ops.info.tgid) { in bpfilter_mbox_request()
75 bpfilter_ops.info.tgid = NULL; in bpfilter_sockopt_init()
/linux/Documentation/accounting/
A Dtaskstats.rst22 "tgid", "process" and "thread group" are used interchangeably and refer to the
24 use of tgid, there is no special treatment for the task that is thread group
31 socket (NETLINK_GENERIC family) and sends commands specifying a pid or a tgid.
33 statistics for all tasks of the process (if tgid is specified).
49 send commands and process responses, listen for per-tid/tgid exit data,
79 a pid/tgid consist of one attribute, of type TASKSTATS_CMD_ATTR_PID/TGID,
80 containing a u32 pid or tgid in the attribute payload. The pid/tgid denotes
97 a pid/tgid will be followed by some stats.
103 same structure is used for both per-pid and per-tgid stats.
112 e) TASKSTATS_TYPE_TGID: contains tgid of process to which task belongs
[all …]
A Ddelay-accounting.rst40 generic data structure to userspace corresponding to per-pid and per-tgid
57 task of a thread group, the per-tgid statistics are also sent. More details
84 seen by a given task or a task group (tgid).
91 getdelays [-t tgid] [-p pid] [-c cmd...]
99 Get sum of delays, since system boot, for all pids with tgid 5::
/linux/drivers/connector/
A Dcn_proc.c87 ev->event_data.fork.parent_tgid = parent->tgid; in proc_fork_connector()
90 ev->event_data.fork.child_tgid = task->tgid; in proc_fork_connector()
114 ev->event_data.exec.process_tgid = task->tgid; in proc_exec_connector()
138 ev->event_data.id.process_tgid = task->tgid; in proc_id_connector()
176 ev->event_data.sid.process_tgid = task->tgid; in proc_sid_connector()
200 ev->event_data.ptrace.process_tgid = task->tgid; in proc_ptrace_connector()
203 ev->event_data.ptrace.tracer_tgid = current->tgid; in proc_ptrace_connector()
232 ev->event_data.comm.process_tgid = task->tgid; in proc_comm_connector()
258 ev->event_data.coredump.process_tgid = task->tgid; in proc_coredump_connector()
291 ev->event_data.exit.process_tgid = task->tgid; in proc_exit_connector()
[all …]
/linux/drivers/infiniband/core/
A Dumem_odp.c138 umem_odp->tgid = get_task_pid(current->group_leader, PIDTYPE_PID); in ib_umem_odp_alloc_implicit()
141 put_pid(umem_odp->tgid); in ib_umem_odp_alloc_implicit()
196 odp_data->tgid = get_pid(root->tgid); in ib_umem_odp_alloc_child()
204 put_pid(odp_data->tgid); in ib_umem_odp_alloc_child()
253 umem_odp->tgid = get_task_pid(current->group_leader, PIDTYPE_PID); in ib_umem_odp_get()
260 put_pid(umem_odp->tgid); in ib_umem_odp_get()
283 put_pid(umem_odp->tgid); in ib_umem_odp_release()
375 owning_process = get_pid_task(umem_odp->tgid, PIDTYPE_PID); in ib_umem_odp_map_dma_and_lock()
/linux/tools/testing/selftests/bpf/prog_tests/
A Dns_current_pid_tgid.c24 pid_t tgid, pid; in test_current_pid_tgid() local
32 tgid = getpid(); in test_current_pid_tgid()
51 ASSERT_EQ(bss->user_tgid, tgid, "tgid"); in test_current_pid_tgid()
/linux/tools/perf/util/
A Dnamespaces.c110 nsi->tgid = (pid_t)strtol(strrchr(statln, '\t'), in nsinfo__init()
112 nsi->nstgid = nsi->tgid; in nsinfo__init()
145 nsi->tgid = pid; in nsinfo__new()
172 nnsi->tgid = nsi->tgid; in nsinfo__copy()
A Dsynthetic-events.c81 *tgid = -1; in perf_event__get_comm_ids()
133 *tgid = atoi(tgids); in perf_event__get_comm_ids()
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
205 return tgid; in perf_event__synthesize_comm()
273 if (tgid == pid) { in perf_event__synthesize_fork()
280 event->fork.pid = tgid; in perf_event__synthesize_fork()
723 pid_t tgid, ppid; in __event__synthesize_thread() local
[all …]
/linux/fs/proc/
A Dself.c16 pid_t tgid = task_tgid_nr_ns(current, ns); in proc_self_get_link() local
19 if (!tgid) in proc_self_get_link()
25 sprintf(name, "%u", tgid); in proc_self_get_link()
A Dthread_self.c16 pid_t tgid = task_tgid_nr_ns(current, ns); in proc_thread_self_get_link() local
25 sprintf(name, "%u/task/%u", tgid, pid); in proc_thread_self_get_link()
/linux/kernel/
A Dusermode_driver.c133 umd_info->tgid = get_pid(task_tgid(current)); in umd_setup()
154 put_pid(info->tgid); in umd_cleanup_helper()
155 info->tgid = NULL; in umd_cleanup_helper()
175 if (WARN_ON_ONCE(info->tgid)) in fork_usermode_driver()
A Dtaskstats.c191 static int fill_stats_for_tgid(pid_t tgid, struct taskstats *stats) in fill_stats_for_tgid() argument
204 first = find_task_by_vpid(tgid); in fill_stats_for_tgid()
512 u32 tgid; in cmd_attr_tgid() local
522 tgid = nla_get_u32(info->attrs[TASKSTATS_CMD_ATTR_TGID]); in cmd_attr_tgid()
523 stats = mk_reply(rep_skb, TASKSTATS_TYPE_TGID, tgid); in cmd_attr_tgid()
527 rc = fill_stats_for_tgid(tgid, stats); in cmd_attr_tgid()
/linux/tools/testing/selftests/ptrace/
A 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()
/linux/fs/cifs/
A Dsmb2file.c141 if (current->tgid != li->pid) in smb2_unlock_range()
170 current->tgid, num, buf); in smb2_unlock_range()
193 cfile->fid.volatile_fid, current->tgid, in smb2_unlock_range()
227 current->tgid, num, buf); in smb2_push_mand_fdlocks()
239 current->tgid, num, buf); in smb2_push_mand_fdlocks()
A Dsmb2inode.c214 COMPOUND_FID, current->tgid, in smb2_compound_op()
232 COMPOUND_FID, current->tgid, in smb2_compound_op()
253 cfile->fid.volatile_fid, current->tgid, in smb2_compound_op()
260 COMPOUND_FID, current->tgid, in smb2_compound_op()
296 current->tgid, FILE_RENAME_INFORMATION, in smb2_compound_op()
302 current->tgid, FILE_RENAME_INFORMATION, in smb2_compound_op()
332 COMPOUND_FID, current->tgid, in smb2_compound_op()
/linux/fs/autofs/
A Dwaitq.c150 packet->tgid = wq->tgid; in autofs_notify_daemon()
312 pid_t tgid; in autofs_wait() local
324 tgid = task_tgid_nr_ns(current, ns_of_pid(sbi->oz_pgrp)); in autofs_wait()
325 if (pid == 0 || tgid == 0) in autofs_wait()
398 wq->tgid = tgid; in autofs_wait()
/linux/drivers/misc/
A Dfastrpc.c181 int tgid; member
229 int tgid; member
483 ctx->tgid = user->tgid; in fastrpc_context_alloc()
924 msg->pid = fl->tgid; in fastrpc_invoke_send()
1053 inbuf.pgid = fl->tgid; in fastrpc_init_create_process()
1164 int tgid = 0; in fastrpc_release_current_dsp_process() local
1167 tgid = fl->tgid; in fastrpc_release_current_dsp_process()
1241 fl->tgid = current->tgid; in fastrpc_device_open()
1301 int tgid = fl->tgid; in fastrpc_init_attach() local
1368 req_msg.pgid = fl->tgid; in fastrpc_req_munmap_impl()
[all …]

Completed in 32 milliseconds

12345