/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/kernel/bpf/preload/ |
D | bpf_preload_kern.c | 54 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()
|
/kernel/linux/linux-5.10/net/bpfilter/ |
D | bpfilter_kern.c | 19 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()
|
/kernel/linux/linux-5.10/net/ipv4/bpfilter/ |
D | sockopt.c | 19 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()
|
/kernel/linux/linux-5.10/arch/powerpc/kvm/ |
D | trace_hv.h | 395 __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 …]
|
/kernel/linux/linux-5.10/drivers/staging/hungtask/ |
D | hungtask_base.c | 52 bool hashlist_find(struct hlist_head *head, int count, pid_t tgid) in hashlist_find() argument 58 if (hlist_empty(&head[tgid % count])) in hashlist_find() 60 hlist_for_each_entry(hnode, &head[tgid % count], list) { in hashlist_find() 61 if (hnode->pid == tgid) in hashlist_find() 84 bool hashlist_insert(struct hlist_head *head, int count, pid_t tgid) in hashlist_insert() argument 88 if (hashlist_find(head, count, tgid)) in hashlist_insert() 94 hnode->pid = tgid; in hashlist_insert() 95 hlist_add_head(&hnode->list, &head[tgid % count]); in hashlist_insert() 141 pid = t->tgid; in get_pid_by_name() 151 static unsigned int get_task_type(pid_t pid, pid_t tgid, struct task_struct *parent) in get_task_type() argument [all …]
|
D | hungtask_user.c | 155 if ((task->tgid == task->pid) && (!htuser_list_remove(task->tgid))) in htuser_process_notifier() 156 pr_err("remove success due to process %d die\n", task->tgid); in htuser_process_notifier() 227 int pid = current->tgid; in htuser_list_store()
|
/kernel/linux/linux-5.10/Documentation/accounting/ |
D | taskstats.rst | 22 "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). 43 an additional record containing the per-tgid stats is also sent to userspace. 49 send commands and process responses, listen for per-tid/tgid exit data, 63 per-tgid data. It is versioned and can be extended by each accounting subsystem 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. [all …]
|
D | delay-accounting.rst | 40 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 82 seen by a given task or a task group (tgid). 89 getdelays [-t tgid] [-p pid] [-c cmd...] 97 Get sum of delays, since system boot, for all pids with tgid 5::
|
/kernel/linux/linux-5.10/drivers/connector/ |
D | cn_proc.c | 87 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() 264 ev->event_data.coredump.parent_tgid = parent->tgid; in proc_coredump_connector() [all …]
|
/kernel/linux/linux-5.10/include/dfx/ |
D | hungtask_base.h | 66 pid_t tgid; member 90 pid_t tgid; member 107 bool hashlist_find(struct hlist_head *head, int count, pid_t tgid); 109 bool hashlist_insert(struct hlist_head *head, int count, pid_t tgid);
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/infiniband/core/ |
D | umem_odp.c | 138 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() 378 owning_process = get_pid_task(umem_odp->tgid, PIDTYPE_PID); in ib_umem_odp_map_dma_and_lock()
|
/kernel/linux/linux-5.10/fs/proc/ |
D | self.c | 16 pid_t tgid = task_tgid_nr_ns(current, ns); in proc_self_get_link() local 26 if (!tgid) in proc_self_get_link() 32 sprintf(name, "%u", tgid); in proc_self_get_link()
|
D | thread_self.c | 16 pid_t tgid = task_tgid_nr_ns(current, ns); in proc_thread_self_get_link() local 32 sprintf(name, "%u/task/%u", tgid, pid); in proc_thread_self_get_link()
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/kernel/ |
D | usermode_driver.c | 133 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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/fs/cifs/ |
D | smb2file.c | 154 if (current->tgid != li->pid) in smb2_unlock_range() 183 current->tgid, num, buf); in smb2_unlock_range() 206 cfile->fid.volatile_fid, current->tgid, in smb2_unlock_range() 240 current->tgid, num, buf); in smb2_push_mand_fdlocks() 252 current->tgid, num, buf); in smb2_push_mand_fdlocks()
|
/kernel/linux/linux-5.10/fs/autofs/ |
D | waitq.c | 150 packet->tgid = wq->tgid; in autofs_notify_daemon() 356 pid_t tgid; in autofs_wait() local 368 tgid = task_tgid_nr_ns(current, ns_of_pid(sbi->oz_pgrp)); in autofs_wait() 369 if (pid == 0 || tgid == 0) in autofs_wait() 438 wq->tgid = tgid; in autofs_wait()
|
/kernel/linux/linux-5.10/drivers/misc/ |
D | fastrpc.c | 181 int tgid; member 229 int tgid; member 483 ctx->tgid = user->tgid; in fastrpc_context_alloc() 920 msg->pid = fl->tgid; in fastrpc_invoke_send() 1049 inbuf.pgid = fl->tgid; in fastrpc_init_create_process() 1160 int tgid = 0; in fastrpc_release_current_dsp_process() local 1163 tgid = fl->tgid; in fastrpc_release_current_dsp_process() 1164 args[0].ptr = (u64)(uintptr_t) &tgid; in fastrpc_release_current_dsp_process() 1165 args[0].length = sizeof(tgid); in fastrpc_release_current_dsp_process() 1237 fl->tgid = current->tgid; in fastrpc_device_open() [all …]
|