Home
last modified time | relevance | path

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

/linux-4.4.14/fs/proc/
Dself.c13 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()
Dthread_self.c13 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()
Dbase.c2852 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 …]
Darray.c150 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/
Dtrace_hv.h396 __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/
Dtaskstats.txt21 "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 …]
Ddelay-accounting.txt39 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/
Devent.c65 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 …]
Devent.h489 pid_t pid, pid_t tgid,
/linux-4.4.14/drivers/connector/
Dcn_proc.c86 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/
Dpeeksiginfo.c14 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/
Dsmb2file.c145 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()
Dlink.c357 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()
Dfile.c82 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 …]
Dmisc.c261 buffer->Pid = cpu_to_le16((__u16)current->tgid); in header_assemble()
262 buffer->PidHigh = cpu_to_le16((__u16)(current->tgid >> 16)); in header_assemble()
Dsmb2inode.c97 fid.volatile_fid, current->tgid, in smb2_open_op_close()
Dsmb1ops.c822 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()
Ddir.c363 current->tgid); in cifs_do_create()
675 io_parms.pid = current->tgid; in cifs_mknod()
Dsmb2pdu.c107 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()
Dinode.c483 io_parms.pid = current->tgid;
1147 current->tgid);
1168 current->tgid);
1205 current->tgid))
Dsmb2ops.c1021 current->tgid, length, offset, type, wait); in smb2_mand_lock()
/linux-4.4.14/fs/notify/fanotify/
Dfanotify.c23 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()
Dfanotify.h20 struct pid *tgid; member
Dfanotify_user.c132 metadata->pid = pid_vnr(event->tgid); in fill_event_metadata()
/linux-4.4.14/fs/autofs4/
Dwaitq.c162 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()
Dautofs_i.h99 pid_t tgid; member
/linux-4.4.14/kernel/
Dtaskstats.c209 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()
Dsignal.c2861 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 …]
Daudit.h334 if (unlikely((audit_pid && t->tgid == audit_pid) || in audit_signal_info()
Dfork.c1506 p->tgid = current->tgid; in copy_process()
1513 p->tgid = p->pid; in copy_process()
Dauditsc.c755 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/
Dperfmon_default_smpl.h72 int tgid; /* thread group id (for NPTL, this is getpid()) */ member
/linux-4.4.14/arch/alpha/kernel/
Dasm-offsets.c25 DEFINE(TASK_TGID, offsetof(struct task_struct, tgid)); in foo()
/linux-4.4.14/arch/ia64/kernel/
Dperfmon_default_smpl.c171 ent->tgid = current->tgid; in default_handler()
Dasm-offsets.c61 DEFINE(IA64_TASK_TGID_OFFSET, offsetof (struct task_struct, tgid)); in foo()
/linux-4.4.14/include/uapi/linux/
Dauto_fs4.h138 __u32 tgid; member
/linux-4.4.14/arch/arc/kernel/
Dasm-offsets.c39 DEFINE(TASK_TGID, offsetof(struct task_struct, tgid)); in main()
/linux-4.4.14/drivers/infiniband/core/
Dumem_odp.c256 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()
Duverbs_main.c308 put_pid(context->tgid); in ib_uverbs_cleanup_ucontext()
Duverbs_cmd.c335 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/
Dsched.h466 __field( pid_t, tgid )
476 __entry->tgid = task_tgid_nr(tsk);
485 __entry->pid, __entry->tgid, __entry->ngid,
/linux-4.4.14/kernel/bpf/
Dhelpers.c132 return (u64) task->tgid << 32 | task->pid; in bpf_get_current_pid_tgid()
/linux-4.4.14/kernel/trace/
Dtrace_entries.h199 __field( unsigned int, tgid )
Dtrace_output.c1058 task = find_task_by_vpid(field->tgid); in trace_user_stack_print()
Dtrace.c1954 entry->tgid = current->tgid; in ftrace_trace_userstack()
/linux-4.4.14/arch/powerpc/platforms/cell/spufs/
Dsched.c242 spu->tgid = current->tgid; in spu_bind_context()
468 spu->tgid = 0; in spu_unbind_context()
/linux-4.4.14/fs/
Dlocks.c388 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/
Dbuffer_sync.c311 add_event_entry(task->tgid); in add_user_ctx_switch()
/linux-4.4.14/arch/powerpc/oprofile/cell/
Dspu_task_sync.c402 spu_buff_add(spu->tgid, spu->number); in process_context_switch()
/linux-4.4.14/mm/
Doom_kill.c376 task->tgid, task->mm->total_vm, get_mm_rss(task->mm), in dump_tasks()
/linux-4.4.14/fs/ocfs2/cluster/
Dnetdebug.c160 (unsigned long)nst->st_task->tgid, in nst_seq_show()
/linux-4.4.14/drivers/scsi/cxlflash/
Dsuperpipe.c153 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/
Dspu.h146 pid_t tgid; member
/linux-4.4.14/fs/nfsd/
Dnfs4layouts.c171 fl->fl_pid = current->tgid; in nfsd4_layout_setlease()
Dnfs4state.c4032 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/
Dgrufault.c891 gts->ts_tgid_owner = current->tgid; in gru_set_context_option()
Dgrumain.c742 if (!gru || gts->ts_tgid_owner != current->tgid) in gru_check_context_placement()
/linux-4.4.14/include/linux/
Dsyscalls.h372 asmlinkage long sys_rt_tgsigqueueinfo(pid_t tgid, pid_t pid, int sig,
375 asmlinkage long sys_tgkill(int tgid, int pid, int sig);
Dsched.h1484 pid_t tgid; member
1934 return tsk->tgid; in task_tgid_nr()
Dcompat.h387 long compat_sys_rt_tgsigqueueinfo(compat_pid_t tgid, compat_pid_t pid, int sig,
/linux-4.4.14/net/sunrpc/
Dsched.c907 task->tk_owner = current->tgid; in rpc_init_task()
/linux-4.4.14/fs/nfs/
Dinode.c700 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()
Dwrite.c1138 || l_ctx->lockowner.l_pid != current->tgid; in nfs_flush_incompatible()
Dnfs4proc.c2693 .l_pid = current->tgid, in _nfs4_do_setattr()
/linux-4.4.14/drivers/infiniband/hw/mlx4/
Dmain.c1012 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/
Duprobes.c1556 current->pid, current->tgid); in prepare_uretprobe()
/linux-4.4.14/include/rdma/
Dib_verbs.h1247 struct pid *tgid; member
/linux-4.4.14/Documentation/sysctl/
Dvm.txt571 pid, uid, tgid, vm size, rss, nr_ptes, nr_pmds, swapents, oom_score_adj
/linux-4.4.14/fs/fuse/
Dfile.c2147 pid_t pid = fl->fl_type != F_UNLCK ? current->tgid : 0; in fuse_setlk()
/linux-4.4.14/Documentation/filesystems/cifs/
DCHANGES696 and on revalidate errors. Fix cases where pid is now tgid. Fix return code