/linux-4.4.14/fs/proc/ |
D | self.c | 13 pid_t tgid = task_tgid_nr_ns(current, ns); in proc_self_readlink() local 15 if (!tgid) in proc_self_readlink() 17 sprintf(tmp, "%d", tgid); in proc_self_readlink() 24 pid_t tgid = task_tgid_nr_ns(current, ns); in proc_self_follow_link() local 27 if (!tgid) in proc_self_follow_link() 33 sprintf(name, "%d", tgid); in proc_self_follow_link()
|
D | thread_self.c | 13 pid_t tgid = task_tgid_nr_ns(current, ns); in proc_thread_self_readlink() local 18 sprintf(tmp, "%d/task/%d", tgid, pid); in proc_thread_self_readlink() 25 pid_t tgid = task_tgid_nr_ns(current, ns); in proc_thread_self_follow_link() local 34 sprintf(name, "%d/task/%d", tgid, pid); in proc_thread_self_follow_link()
|
D | base.c | 2852 static void proc_flush_task_mnt(struct vfsmount *mnt, pid_t pid, pid_t tgid) in proc_flush_task_mnt() argument 2867 if (pid == tgid) in proc_flush_task_mnt() 2871 name.len = snprintf(buf, sizeof(buf), "%d", tgid); in proc_flush_task_mnt() 2925 struct pid *pid, *tgid; in proc_flush_task() local 2929 tgid = task_tgid(task); in proc_flush_task() 2934 tgid->numbers[i].nr); in proc_flush_task() 2970 unsigned tgid; in proc_pid_lookup() local 2973 tgid = name_to_int(&dentry->d_name); in proc_pid_lookup() 2974 if (tgid == ~0U) in proc_pid_lookup() 2979 task = find_task_by_pid_ns(tgid, ns); in proc_pid_lookup() [all …]
|
D | array.c | 150 pid_t ppid, tpid = 0, tgid, ngid; in task_state() local 161 tgid = task_tgid_nr_ns(p, ns); in task_state() 182 tgid, ngid, pid_nr_ns(pid, ns), ppid, tpid, in task_state()
|
/linux-4.4.14/arch/powerpc/kvm/ |
D | trace_hv.h | 396 __field(pid_t, tgid) 403 __entry->tgid = current->tgid; 408 __entry->runner_vcpu, __entry->n_runnable, __entry->tgid) 420 __field(pid_t, tgid) 427 __entry->tgid = current->tgid; 432 __entry->runner_vcpu, __entry->n_runnable, __entry->tgid) 442 __field(pid_t, tgid) 447 __entry->tgid = current->tgid; 450 TP_printk("VCPU %d: tgid=%d", __entry->vcpu_id, __entry->tgid)
|
/linux-4.4.14/Documentation/accounting/ |
D | taskstats.txt | 21 "tgid", "process" and "thread group" are used interchangeably and refer to the 23 use of tgid, there is no special treatment for the task that is thread group 30 socket (NETLINK_GENERIC family) and sends commands specifying a pid or a tgid. 32 statistics for all tasks of the process (if tgid is specified). 42 an additional record containing the per-tgid stats is also sent to userspace. 48 send commands and process responses, listen for per-tid/tgid exit data, 62 per-tgid data. It is versioned and can be extended by each accounting subsystem 78 a pid/tgid consist of one attribute, of type TASKSTATS_CMD_ATTR_PID/TGID, 79 containing a u32 pid or tgid in the attribute payload. The pid/tgid denotes 96 a pid/tgid will be followed by some stats. [all …]
|
D | delay-accounting.txt | 39 generic data structure to userspace corresponding to per-pid and per-tgid 54 task of a thread group, the per-tgid statistics are also sent. More details 76 seen by a given task or a task group (tgid). 83 getdelays [-t tgid] [-p pid] [-c cmd...] 90 Get sum of delays, since system boot, for all pids with tgid 5
|
/linux-4.4.14/tools/perf/util/ |
D | event.c | 65 pid_t *tgid, pid_t *ppid) in perf_event__get_comm_ids() argument 74 *tgid = -1; in perf_event__get_comm_ids() 119 *tgid = atoi(tgids); in perf_event__get_comm_ids() 136 pid_t *tgid, pid_t *ppid) in perf_event__prepare_comm() argument 147 tgid, ppid) != 0) { in perf_event__prepare_comm() 151 *tgid = machine->pid; in perf_event__prepare_comm() 154 if (*tgid < 0) in perf_event__prepare_comm() 157 event->comm.pid = *tgid; in perf_event__prepare_comm() 176 pid_t tgid, ppid; in perf_event__synthesize_comm() local 178 if (perf_event__prepare_comm(event, pid, machine, &tgid, &ppid) != 0) in perf_event__synthesize_comm() [all …]
|
D | event.h | 489 pid_t pid, pid_t tgid,
|
/linux-4.4.14/drivers/connector/ |
D | cn_proc.c | 86 ev->event_data.fork.parent_tgid = parent->tgid; in proc_fork_connector() 89 ev->event_data.fork.child_tgid = task->tgid; in proc_fork_connector() 115 ev->event_data.exec.process_tgid = task->tgid; in proc_exec_connector() 139 ev->event_data.id.process_tgid = task->tgid; in proc_id_connector() 179 ev->event_data.sid.process_tgid = task->tgid; in proc_sid_connector() 204 ev->event_data.ptrace.process_tgid = task->tgid; in proc_ptrace_connector() 207 ev->event_data.ptrace.tracer_tgid = current->tgid; in proc_ptrace_connector() 237 ev->event_data.comm.process_tgid = task->tgid; in proc_comm_connector() 263 ev->event_data.coredump.process_tgid = task->tgid; in proc_coredump_connector() 288 ev->event_data.exit.process_tgid = task->tgid; in proc_exit_connector()
|
/linux-4.4.14/tools/testing/selftests/ptrace/ |
D | peeksiginfo.c | 14 static int sys_rt_sigqueueinfo(pid_t tgid, int sig, siginfo_t *uinfo) in sys_rt_sigqueueinfo() argument 16 return syscall(SYS_rt_sigqueueinfo, tgid, sig, uinfo); in sys_rt_sigqueueinfo() 19 static int sys_rt_tgsigqueueinfo(pid_t tgid, pid_t tid, in sys_rt_tgsigqueueinfo() argument 22 return syscall(SYS_rt_tgsigqueueinfo, tgid, tid, sig, uinfo); in sys_rt_tgsigqueueinfo()
|
/linux-4.4.14/fs/cifs/ |
D | smb2file.c | 145 if (current->tgid != li->pid) in smb2_unlock_range() 169 current->tgid, num, buf); in smb2_unlock_range() 192 cfile->fid.volatile_fid, current->tgid, in smb2_unlock_range() 226 current->tgid, num, buf); in smb2_push_mand_fdlocks() 238 current->tgid, num, buf); in smb2_push_mand_fdlocks()
|
D | link.c | 357 io_parms.pid = current->tgid; in cifs_query_mf_symlink() 397 io_parms.pid = current->tgid; in cifs_create_mf_symlink() 458 io_parms.pid = current->tgid; in smb3_query_mf_symlink() 511 io_parms.pid = current->tgid; in smb3_create_mf_symlink()
|
D | file.c | 82 current->comm, current->tgid); in cifs_posix_convert_flags() 300 cfile->pid = current->tgid; in cifs_new_fileinfo() 817 lock->pid = current->tgid; in cifs_lock_init() 851 if (rw_check != CIFS_LOCK_OP && current->tgid == li->pid && in cifs_find_fid_lock_conflict() 860 current->tgid == li->pid) || type == li->type)) in cifs_find_fid_lock_conflict() 1308 rc = CIFSSMBPosixLock(xid, tcon, netfid, current->tgid, in cifs_getlk() 1414 if (current->tgid != li->pid) in cifs_unlock_range() 1508 current->tgid, flock->fl_start, length, in cifs_setlk() 1784 if (!any_available && open_file->pid != current->tgid) in find_writable_file() 2208 pid = current->tgid; in cifs_write_end() [all …]
|
D | misc.c | 261 buffer->Pid = cpu_to_le16((__u16)current->tgid); in header_assemble() 262 buffer->PidHigh = cpu_to_le16((__u16)(current->tgid >> 16)); in header_assemble()
|
D | smb2inode.c | 97 fid.volatile_fid, current->tgid, in smb2_open_op_close()
|
D | smb1ops.c | 822 netpid = current->tgid; in smb_set_file_info() 875 return CIFSSMBLock(0, tcon, fid->netfid, current->tgid, 0, 0, 0, 0, in cifs_oplock_response() 917 current->tgid, length, offset, unlock, lock, in cifs_mand_lock()
|
D | dir.c | 363 current->tgid); in cifs_do_create() 675 io_parms.pid = current->tgid; in cifs_mknod()
|
D | smb2pdu.c | 107 hdr->ProcessId = cpu_to_le32((__u16)current->tgid); in smb2_hdr_assemble() 2573 current->tgid, FILE_RENAME_INFORMATION, 2, data, in SMB2_rename() 2591 current->tgid, FILE_DISPOSITION_INFORMATION, 1, &data, in SMB2_rmdir() 2621 current->tgid, FILE_LINK_INFORMATION, 2, data, size); in SMB2_set_hardlink() 2654 current->tgid, FILE_BASIC_INFORMATION, 1, in SMB2_set_info()
|
D | inode.c | 483 io_parms.pid = current->tgid; 1147 current->tgid); 1168 current->tgid); 1205 current->tgid))
|
D | smb2ops.c | 1021 current->tgid, length, offset, type, wait); in smb2_mand_lock()
|
/linux-4.4.14/fs/notify/fanotify/ |
D | fanotify.c | 23 if (old_fsn->inode == new_fsn->inode && old->tgid == new->tgid && in should_merge() 176 event->tgid = get_pid(task_tgid(current)); in fanotify_alloc_event() 255 put_pid(event->tgid); in fanotify_free_event()
|
D | fanotify.h | 20 struct pid *tgid; member
|
D | fanotify_user.c | 132 metadata->pid = pid_vnr(event->tgid); in fill_event_metadata()
|
/linux-4.4.14/fs/autofs4/ |
D | waitq.c | 162 packet->tgid = wq->tgid; in autofs4_notify_daemon() 351 pid_t tgid; in autofs4_wait() local 363 tgid = task_tgid_nr_ns(current, ns_of_pid(sbi->oz_pgrp)); in autofs4_wait() 364 if (pid == 0 || tgid == 0) in autofs4_wait() 433 wq->tgid = tgid; in autofs4_wait()
|
D | autofs_i.h | 99 pid_t tgid; member
|
/linux-4.4.14/kernel/ |
D | taskstats.c | 209 static int fill_stats_for_tgid(pid_t tgid, struct taskstats *stats) in fill_stats_for_tgid() argument 220 first = find_task_by_vpid(tgid); in fill_stats_for_tgid() 544 u32 tgid; in cmd_attr_tgid() local 554 tgid = nla_get_u32(info->attrs[TASKSTATS_CMD_ATTR_TGID]); in cmd_attr_tgid() 555 stats = mk_reply(rep_skb, TASKSTATS_TYPE_TGID, tgid); in cmd_attr_tgid() 559 rc = fill_stats_for_tgid(tgid, stats); in cmd_attr_tgid()
|
D | signal.c | 2861 do_send_specific(pid_t tgid, pid_t pid, int sig, struct siginfo *info) in do_send_specific() argument 2868 if (p && (tgid <= 0 || task_tgid_vnr(p) == tgid)) { in do_send_specific() 2890 static int do_tkill(pid_t tgid, pid_t pid, int sig) in do_tkill() argument 2900 return do_send_specific(tgid, pid, sig, &info); in do_tkill() 2913 SYSCALL_DEFINE3(tgkill, pid_t, tgid, pid_t, pid, int, sig) in SYSCALL_DEFINE3() argument 2916 if (pid <= 0 || tgid <= 0) in SYSCALL_DEFINE3() 2919 return do_tkill(tgid, pid, sig); in SYSCALL_DEFINE3() 2982 static int do_rt_tgsigqueueinfo(pid_t tgid, pid_t pid, int sig, siginfo_t *info) in do_rt_tgsigqueueinfo() argument 2985 if (pid <= 0 || tgid <= 0) in do_rt_tgsigqueueinfo() 2997 return do_send_specific(tgid, pid, sig, info); in do_rt_tgsigqueueinfo() [all …]
|
D | audit.h | 334 if (unlikely((audit_pid && t->tgid == audit_pid) || in audit_signal_info()
|
D | fork.c | 1506 p->tgid = current->tgid; in copy_process() 1513 p->tgid = p->pid; in copy_process()
|
D | auditsc.c | 755 if (audit_pid && tsk->tgid == audit_pid) in audit_filter_syscall() 809 if (audit_pid && tsk->tgid == audit_pid) in audit_filter_inodes() 2242 if (audit_pid && t->tgid == audit_pid) { in __audit_signal_info()
|
/linux-4.4.14/arch/ia64/include/uapi/asm/ |
D | perfmon_default_smpl.h | 72 int tgid; /* thread group id (for NPTL, this is getpid()) */ member
|
/linux-4.4.14/arch/alpha/kernel/ |
D | asm-offsets.c | 25 DEFINE(TASK_TGID, offsetof(struct task_struct, tgid)); in foo()
|
/linux-4.4.14/arch/ia64/kernel/ |
D | perfmon_default_smpl.c | 171 ent->tgid = current->tgid; in default_handler()
|
D | asm-offsets.c | 61 DEFINE(IA64_TASK_TGID_OFFSET, offsetof (struct task_struct, tgid)); in foo()
|
/linux-4.4.14/include/uapi/linux/ |
D | auto_fs4.h | 138 __u32 tgid; member
|
/linux-4.4.14/arch/arc/kernel/ |
D | asm-offsets.c | 39 DEFINE(TASK_TGID, offsetof(struct task_struct, tgid)); in main()
|
/linux-4.4.14/drivers/infiniband/core/ |
D | umem_odp.c | 256 if (context->tgid != our_pid) { in ib_umem_odp_get() 385 owning_process = get_pid_task(context->tgid, in ib_umem_odp_release() 547 owning_process = get_pid_task(umem->context->tgid, PIDTYPE_PID); in ib_umem_odp_map_dma_pages()
|
D | uverbs_main.c | 308 put_pid(context->tgid); in ib_uverbs_cleanup_ucontext()
|
D | uverbs_cmd.c | 335 ucontext->tgid = get_task_pid(current->group_leader, PIDTYPE_PID); in ib_uverbs_get_context() 388 put_pid(ucontext->tgid); in ib_uverbs_get_context()
|
/linux-4.4.14/include/trace/events/ |
D | sched.h | 466 __field( pid_t, tgid ) 476 __entry->tgid = task_tgid_nr(tsk); 485 __entry->pid, __entry->tgid, __entry->ngid,
|
/linux-4.4.14/kernel/bpf/ |
D | helpers.c | 132 return (u64) task->tgid << 32 | task->pid; in bpf_get_current_pid_tgid()
|
/linux-4.4.14/kernel/trace/ |
D | trace_entries.h | 199 __field( unsigned int, tgid )
|
D | trace_output.c | 1058 task = find_task_by_vpid(field->tgid); in trace_user_stack_print()
|
D | trace.c | 1954 entry->tgid = current->tgid; in ftrace_trace_userstack()
|
/linux-4.4.14/arch/powerpc/platforms/cell/spufs/ |
D | sched.c | 242 spu->tgid = current->tgid; in spu_bind_context() 468 spu->tgid = 0; in spu_unbind_context()
|
/linux-4.4.14/fs/ |
D | locks.c | 388 fl->fl_pid = current->tgid; in flock_make_lock() 448 fl->fl_pid = current->tgid; in flock64_to_posix_lock() 513 fl->fl_pid = current->tgid; in lease_init() 1250 fl.fl_pid = current->tgid; in locks_mandatory_area() 2414 lock.fl_pid = current->tgid; in locks_remove_posix() 2433 .fl_pid = current->tgid, in locks_remove_flock()
|
/linux-4.4.14/drivers/oprofile/ |
D | buffer_sync.c | 311 add_event_entry(task->tgid); in add_user_ctx_switch()
|
/linux-4.4.14/arch/powerpc/oprofile/cell/ |
D | spu_task_sync.c | 402 spu_buff_add(spu->tgid, spu->number); in process_context_switch()
|
/linux-4.4.14/mm/ |
D | oom_kill.c | 376 task->tgid, task->mm->total_vm, get_mm_rss(task->mm), in dump_tasks()
|
/linux-4.4.14/fs/ocfs2/cluster/ |
D | netdebug.c | 160 (unsigned long)nst->st_task->tgid, in nst_seq_show()
|
/linux-4.4.14/drivers/scsi/cxlflash/ |
D | superpipe.c | 153 pid_t pid = current->tgid, ctxpid = 0; in get_context() 161 pid = current->parent->tgid; in get_context() 789 ctxi->pid = current->tgid; /* tgid = pid */ in create_context()
|
/linux-4.4.14/arch/powerpc/include/asm/ |
D | spu.h | 146 pid_t tgid; member
|
/linux-4.4.14/fs/nfsd/ |
D | nfs4layouts.c | 171 fl->fl_pid = current->tgid; in nfsd4_layout_setlease()
|
D | nfs4state.c | 4032 fl->fl_pid = current->tgid; in nfs4_alloc_init_lease() 5636 file_lock->fl_pid = current->tgid; in nfsd4_lock() 5770 file_lock->fl_pid = current->tgid; in nfsd4_lockt() 5831 file_lock->fl_pid = current->tgid; in nfsd4_locku()
|
/linux-4.4.14/drivers/misc/sgi-gru/ |
D | grufault.c | 891 gts->ts_tgid_owner = current->tgid; in gru_set_context_option()
|
D | grumain.c | 742 if (!gru || gts->ts_tgid_owner != current->tgid) in gru_check_context_placement()
|
/linux-4.4.14/include/linux/ |
D | syscalls.h | 372 asmlinkage long sys_rt_tgsigqueueinfo(pid_t tgid, pid_t pid, int sig, 375 asmlinkage long sys_tgkill(int tgid, int pid, int sig);
|
D | sched.h | 1484 pid_t tgid; member 1934 return tsk->tgid; in task_tgid_nr()
|
D | compat.h | 387 long compat_sys_rt_tgsigqueueinfo(compat_pid_t tgid, compat_pid_t pid, int sig,
|
/linux-4.4.14/net/sunrpc/ |
D | sched.c | 907 task->tk_owner = current->tgid; in rpc_init_task()
|
/linux-4.4.14/fs/nfs/ |
D | inode.c | 700 l_ctx->lockowner.l_pid = current->tgid; in nfs_init_lock_context() 713 if (pos->lockowner.l_pid != current->tgid) in __nfs_find_lock_context()
|
D | write.c | 1138 || l_ctx->lockowner.l_pid != current->tgid; in nfs_flush_incompatible()
|
D | nfs4proc.c | 2693 .l_pid = current->tgid, in _nfs4_do_setattr()
|
/linux-4.4.14/drivers/infiniband/hw/mlx4/ |
D | main.c | 1012 owning_process = get_pid_task(ibcontext->tgid, PIDTYPE_PID); in mlx4_ib_disassociate_ucontext() 1026 owning_process = get_pid_task(ibcontext->tgid, in mlx4_ib_disassociate_ucontext()
|
/linux-4.4.14/kernel/events/ |
D | uprobes.c | 1556 current->pid, current->tgid); in prepare_uretprobe()
|
/linux-4.4.14/include/rdma/ |
D | ib_verbs.h | 1247 struct pid *tgid; member
|
/linux-4.4.14/Documentation/sysctl/ |
D | vm.txt | 571 pid, uid, tgid, vm size, rss, nr_ptes, nr_pmds, swapents, oom_score_adj
|
/linux-4.4.14/fs/fuse/ |
D | file.c | 2147 pid_t pid = fl->fl_type != F_UNLCK ? current->tgid : 0; in fuse_setlk()
|
/linux-4.4.14/Documentation/filesystems/cifs/ |
D | CHANGES | 696 and on revalidate errors. Fix cases where pid is now tgid. Fix return code
|