Home
last modified time | relevance | path

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

12345

/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/kernel/bpf/preload/
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()
/kernel/linux/linux-5.10/net/bpfilter/
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()
/kernel/linux/linux-5.10/net/ipv4/bpfilter/
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()
/kernel/linux/linux-5.10/arch/powerpc/kvm/
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 …]
/kernel/linux/linux-5.10/drivers/staging/hungtask/
Dhungtask_base.c52 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 …]
Dhungtask_user.c155 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/
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).
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 …]
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
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/
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()
264 ev->event_data.coredump.parent_tgid = parent->tgid; in proc_coredump_connector()
[all …]
/kernel/linux/linux-5.10/include/dfx/
Dhungtask_base.h66 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/
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()
/kernel/linux/linux-5.10/drivers/infiniband/core/
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()
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/
Dself.c16 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()
Dthread_self.c16 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/
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 …]
/kernel/linux/linux-5.10/kernel/
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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/fs/cifs/
Dsmb2file.c154 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/
Dwaitq.c150 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/
Dfastrpc.c181 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 …]

12345