/Linux-v5.4/tools/testing/selftests/bpf/progs/ |
D | test_core_reloc_kernel.c | 17 int tgid; member 25 int pid, tgid; in test_core_kernel() local 28 BPF_CORE_READ(&tgid, &task->tgid)) in test_core_kernel() 32 data.out[0] = (((uint64_t)pid << 32) | tgid) == pid_tgid; in test_core_kernel()
|
/Linux-v5.4/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 …]
|
/Linux-v5.4/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::
|
/Linux-v5.4/drivers/connector/ |
D | cn_proc.c | 80 ev->event_data.fork.parent_tgid = parent->tgid; in proc_fork_connector() 83 ev->event_data.fork.child_tgid = task->tgid; in proc_fork_connector() 107 ev->event_data.exec.process_tgid = task->tgid; in proc_exec_connector() 131 ev->event_data.id.process_tgid = task->tgid; in proc_id_connector() 169 ev->event_data.sid.process_tgid = task->tgid; in proc_sid_connector() 193 ev->event_data.ptrace.process_tgid = task->tgid; in proc_ptrace_connector() 196 ev->event_data.ptrace.tracer_tgid = current->tgid; in proc_ptrace_connector() 225 ev->event_data.comm.process_tgid = task->tgid; in proc_comm_connector() 251 ev->event_data.coredump.process_tgid = task->tgid; in proc_coredump_connector() 257 ev->event_data.coredump.parent_tgid = parent->tgid; in proc_coredump_connector() [all …]
|
/Linux-v5.4/fs/proc/ |
D | self.c | 16 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()
|
D | thread_self.c | 16 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()
|
D | base.c | 3136 static void proc_flush_task_mnt(struct vfsmount *mnt, pid_t pid, pid_t tgid) in proc_flush_task_mnt() argument 3151 if (pid == tgid) in proc_flush_task_mnt() 3155 name.len = snprintf(buf, sizeof(buf), "%u", tgid); in proc_flush_task_mnt() 3209 struct pid *pid, *tgid; in proc_flush_task() local 3213 tgid = task_tgid(task); in proc_flush_task() 3218 tgid->numbers[i].nr); in proc_flush_task() 3245 unsigned tgid; in proc_pid_lookup() local 3249 tgid = name_to_int(&dentry->d_name); in proc_pid_lookup() 3250 if (tgid == ~0U) in proc_pid_lookup() 3255 task = find_task_by_pid_ns(tgid, ns); in proc_pid_lookup() [all …]
|
/Linux-v5.4/tools/perf/util/ |
D | synthetic-events.c | 71 pid_t *tgid, pid_t *ppid) in perf_event__get_comm_ids() argument 80 *tgid = -1; in perf_event__get_comm_ids() 123 *tgid = atoi(tgids); in perf_event__get_comm_ids() 140 pid_t *tgid, pid_t *ppid) in perf_event__prepare_comm() argument 151 tgid, ppid) != 0) { in perf_event__prepare_comm() 155 *tgid = machine->pid; in perf_event__prepare_comm() 158 if (*tgid < 0) in perf_event__prepare_comm() 161 event->comm.pid = *tgid; in perf_event__prepare_comm() 180 pid_t tgid, ppid; in perf_event__synthesize_comm() local 182 if (perf_event__prepare_comm(event, pid, machine, &tgid, &ppid) != 0) in perf_event__synthesize_comm() [all …]
|
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.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 | namespaces.h | 33 pid_t tgid; member
|
/Linux-v5.4/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()
|
/Linux-v5.4/fs/cifs/ |
D | smb2file.c | 154 if (current->tgid != li->pid) in smb2_unlock_range() 178 current->tgid, num, buf); in smb2_unlock_range() 201 cfile->fid.volatile_fid, current->tgid, in smb2_unlock_range() 235 current->tgid, num, buf); in smb2_push_mand_fdlocks() 247 current->tgid, num, buf); in smb2_push_mand_fdlocks()
|
D | smb2inode.c | 176 COMPOUND_FID, current->tgid, in smb2_compound_op() 194 COMPOUND_FID, current->tgid, in smb2_compound_op() 215 cfile->fid.volatile_fid, current->tgid, in smb2_compound_op() 221 COMPOUND_FID, current->tgid, in smb2_compound_op() 257 current->tgid, FILE_RENAME_INFORMATION, in smb2_compound_op() 262 current->tgid, FILE_RENAME_INFORMATION, in smb2_compound_op() 292 COMPOUND_FID, current->tgid, in smb2_compound_op()
|
D | link.c | 335 io_parms.pid = current->tgid; in cifs_query_mf_symlink() 375 io_parms.pid = current->tgid; in cifs_create_mf_symlink() 436 io_parms.pid = current->tgid; in smb3_query_mf_symlink() 490 io_parms.pid = current->tgid; in smb3_create_mf_symlink()
|
/Linux-v5.4/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()
|
/Linux-v5.4/drivers/misc/ |
D | fastrpc.c | 153 int tgid; member 200 int tgid; member 452 ctx->tgid = user->tgid; in fastrpc_context_alloc() 891 msg->pid = fl->tgid; in fastrpc_invoke_send() 1003 inbuf.pgid = fl->tgid; in fastrpc_init_create_process() 1114 int tgid = 0; in fastrpc_release_current_dsp_process() local 1117 tgid = fl->tgid; in fastrpc_release_current_dsp_process() 1118 args[0].ptr = (u64)(uintptr_t) &tgid; in fastrpc_release_current_dsp_process() 1119 args[0].length = sizeof(tgid); in fastrpc_release_current_dsp_process() 1184 fl->tgid = current->tgid; in fastrpc_device_open() [all …]
|
/Linux-v5.4/kernel/ |
D | taskstats.c | 195 static int fill_stats_for_tgid(pid_t tgid, struct taskstats *stats) in fill_stats_for_tgid() argument 208 first = find_task_by_vpid(tgid); in fill_stats_for_tgid() 516 u32 tgid; in cmd_attr_tgid() local 526 tgid = nla_get_u32(info->attrs[TASKSTATS_CMD_ATTR_TGID]); in cmd_attr_tgid() 527 stats = mk_reply(rep_skb, TASKSTATS_TYPE_TGID, tgid); in cmd_attr_tgid() 531 rc = fill_stats_for_tgid(tgid, stats); in cmd_attr_tgid()
|
/Linux-v5.4/arch/ia64/include/uapi/asm/ |
D | perfmon_default_smpl.h | 73 int tgid; /* thread group id (for NPTL, this is getpid()) */ member
|
/Linux-v5.4/arch/ia64/kernel/ |
D | perfmon_default_smpl.c | 172 ent->tgid = current->tgid; in default_handler()
|
/Linux-v5.4/arch/alpha/kernel/ |
D | asm-offsets.c | 26 DEFINE(TASK_TGID, offsetof(struct task_struct, tgid)); in foo()
|
/Linux-v5.4/fs/orangefs/ |
D | waitqueue.c | 74 op->upcall.tgid = current->tgid; in service_operation()
|
/Linux-v5.4/include/rdma/ |
D | ib_umem_odp.h | 126 struct pid *tgid; member
|
/Linux-v5.4/arch/arc/kernel/ |
D | asm-offsets.c | 36 DEFINE(TASK_TGID, offsetof(struct task_struct, tgid)); in main()
|