Home
last modified time | relevance | path

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

/linux-4.1.27/fs/proc/
Dself.c14 pid_t tgid = task_tgid_nr_ns(current, ns); in proc_self_readlink() local
16 if (!tgid) in proc_self_readlink()
18 sprintf(tmp, "%d", tgid); in proc_self_readlink()
25 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.c14 pid_t tgid = task_tgid_nr_ns(current, ns); in proc_thread_self_readlink() local
19 sprintf(tmp, "%d/task/%d", tgid, pid); in proc_thread_self_readlink()
26 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.c2668 static void proc_flush_task_mnt(struct vfsmount *mnt, pid_t pid, pid_t tgid) in proc_flush_task_mnt() argument
2683 if (pid == tgid) in proc_flush_task_mnt()
2687 name.len = snprintf(buf, sizeof(buf), "%d", tgid); in proc_flush_task_mnt()
2741 struct pid *pid, *tgid; in proc_flush_task() local
2745 tgid = task_tgid(task); in proc_flush_task()
2750 tgid->numbers[i].nr); in proc_flush_task()
2786 unsigned tgid; in proc_pid_lookup() local
2789 tgid = name_to_int(&dentry->d_name); in proc_pid_lookup()
2790 if (tgid == ~0U) in proc_pid_lookup()
2795 task = find_task_by_pid_ns(tgid, ns); in proc_pid_lookup()
[all …]
Darray.c142 pid_t ppid, tpid = 0, tgid, ngid; in task_state() local
153 tgid = task_tgid_nr_ns(p, ns); in task_state()
174 tgid, ngid, pid_nr_ns(pid, ns), ppid, tpid, in task_state()
/linux-4.1.27/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.1.27/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.1.27/tools/perf/util/
Devent.c57 pid_t *tgid, pid_t *ppid) in perf_event__get_comm_ids() argument
65 *tgid = -1; in perf_event__get_comm_ids()
110 *tgid = atoi(tgids); in perf_event__get_comm_ids()
127 pid_t *tgid, pid_t *ppid) in perf_event__prepare_comm() argument
138 tgid, ppid) != 0) { in perf_event__prepare_comm()
142 *tgid = machine->pid; in perf_event__prepare_comm()
145 if (*tgid < 0) in perf_event__prepare_comm()
148 event->comm.pid = *tgid; in perf_event__prepare_comm()
167 pid_t tgid, ppid; in perf_event__synthesize_comm() local
169 if (perf_event__prepare_comm(event, pid, machine, &tgid, &ppid) != 0) in perf_event__synthesize_comm()
[all …]
Devent.h381 pid_t pid, pid_t tgid,
/linux-4.1.27/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.1.27/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.1.27/fs/cifs/
Dsmb2file.c126 if (current->tgid != li->pid) in smb2_unlock_range()
150 current->tgid, num, buf); in smb2_unlock_range()
173 cfile->fid.volatile_fid, current->tgid, in smb2_unlock_range()
207 current->tgid, num, buf); in smb2_push_mand_fdlocks()
219 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()
2380 current->tgid, FILE_RENAME_INFORMATION, 2, data, in SMB2_rename()
2398 current->tgid, FILE_DISPOSITION_INFORMATION, 1, &data, in SMB2_rmdir()
2428 current->tgid, FILE_LINK_INFORMATION, 2, data, size); in SMB2_set_hardlink()
2461 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.c955 current->tgid, length, offset, type, wait); in smb2_mand_lock()
/linux-4.1.27/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.1.27/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.1.27/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.c2915 do_send_specific(pid_t tgid, pid_t pid, int sig, struct siginfo *info) in do_send_specific() argument
2922 if (p && (tgid <= 0 || task_tgid_vnr(p) == tgid)) { in do_send_specific()
2944 static int do_tkill(pid_t tgid, pid_t pid, int sig) in do_tkill() argument
2954 return do_send_specific(tgid, pid, sig, &info); in do_tkill()
2967 SYSCALL_DEFINE3(tgkill, pid_t, tgid, pid_t, pid, int, sig) in SYSCALL_DEFINE3() argument
2970 if (pid <= 0 || tgid <= 0) in SYSCALL_DEFINE3()
2973 return do_tkill(tgid, pid, sig); in SYSCALL_DEFINE3()
3036 static int do_rt_tgsigqueueinfo(pid_t tgid, pid_t pid, int sig, siginfo_t *info) in do_rt_tgsigqueueinfo() argument
3039 if (pid <= 0 || tgid <= 0) in do_rt_tgsigqueueinfo()
3051 return do_send_specific(tgid, pid, sig, info); in do_rt_tgsigqueueinfo()
[all …]
Daudit.h316 if (unlikely((audit_pid && t->tgid == audit_pid) || in audit_signal_info()
Dfork.c1500 p->tgid = current->tgid; in copy_process()
1507 p->tgid = p->pid; in copy_process()
Dauditsc.c754 if (audit_pid && tsk->tgid == audit_pid) in audit_filter_syscall()
808 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.1.27/arch/ia64/include/uapi/asm/
Dperfmon_default_smpl.h72 int tgid; /* thread group id (for NPTL, this is getpid()) */ member
/linux-4.1.27/arch/alpha/kernel/
Dasm-offsets.c25 DEFINE(TASK_TGID, offsetof(struct task_struct, tgid)); in foo()
/linux-4.1.27/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.1.27/arch/arc/kernel/
Dasm-offsets.c39 DEFINE(TASK_TGID, offsetof(struct task_struct, tgid)); in main()
/linux-4.1.27/include/uapi/linux/
Dauto_fs4.h138 __u32 tgid; member
/linux-4.1.27/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.c306 put_pid(context->tgid); in ib_uverbs_cleanup_ucontext()
Duverbs_cmd.c333 ucontext->tgid = get_task_pid(current->group_leader, PIDTYPE_PID); in ib_uverbs_get_context()
395 put_pid(ucontext->tgid); in ib_uverbs_get_context()
/linux-4.1.27/include/trace/events/
Dsched.h457 __field( pid_t, tgid )
467 __entry->tgid = task_tgid_nr(tsk);
476 __entry->pid, __entry->tgid, __entry->ngid,
/linux-4.1.27/kernel/trace/
Dtrace_entries.h199 __field( unsigned int, tgid )
Dtrace_output.c371 task = find_task_by_vpid(entry->tgid); in seq_print_userip_objs()
Dtrace.c1957 entry->tgid = current->tgid; in ftrace_trace_userstack()
/linux-4.1.27/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.1.27/fs/
Dlocks.c384 fl->fl_pid = current->tgid; in flock_make_lock()
444 fl->fl_pid = current->tgid; in flock64_to_posix_lock()
509 fl->fl_pid = current->tgid; in lease_init()
1248 fl.fl_pid = current->tgid; in locks_mandatory_area()
2385 lock.fl_pid = current->tgid; in locks_remove_posix()
2404 .fl_pid = current->tgid, in locks_remove_flock()
/linux-4.1.27/drivers/oprofile/
Dbuffer_sync.c311 add_event_entry(task->tgid); in add_user_ctx_switch()
/linux-4.1.27/arch/powerpc/oprofile/cell/
Dspu_task_sync.c402 spu_buff_add(spu->tgid, spu->number); in process_context_switch()
/linux-4.1.27/fs/ocfs2/cluster/
Dnetdebug.c160 (unsigned long)nst->st_task->tgid, in nst_seq_show()
/linux-4.1.27/kernel/events/
Duprobes.c1535 current->pid, current->tgid); in prepare_uretprobe()
1560 current->pid, current->tgid); in prepare_uretprobe()
1832 current->pid, current->tgid); in handle_swbp()
/linux-4.1.27/arch/tile/kernel/
Dstack.c392 kbt->task->pid, kbt->task->tgid, kbt->task->comm, in tile_show_stack()
/linux-4.1.27/mm/
Doom_kill.c372 task->tgid, task->mm->total_vm, get_mm_rss(task->mm), in dump_tasks()
/linux-4.1.27/arch/powerpc/include/asm/
Dspu.h146 pid_t tgid; member
/linux-4.1.27/arch/s390/kernel/
Dcompat_wrapper.c203 COMPAT_SYSCALL_WRAP3(tgkill, int, tgid, int, pid, int, sig);
/linux-4.1.27/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.1.27/fs/nfsd/
Dnfs4layouts.c171 fl->fl_pid = current->tgid; in nfsd4_layout_setlease()
Dnfs4state.c3992 fl->fl_pid = current->tgid; in nfs4_alloc_init_lease()
5554 file_lock->fl_pid = current->tgid; in nfsd4_lock()
5691 file_lock->fl_pid = current->tgid; in nfsd4_lockt()
5752 file_lock->fl_pid = current->tgid; in nfsd4_locku()
/linux-4.1.27/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.h1395 pid_t tgid; member
1830 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.1.27/net/sunrpc/
Dsched.c907 task->tk_owner = current->tgid; in rpc_init_task()
/linux-4.1.27/fs/nfs/
Dinode.c692 l_ctx->lockowner.l_pid = current->tgid; in nfs_init_lock_context()
705 if (pos->lockowner.l_pid != current->tgid) in __nfs_find_lock_context()
Dwrite.c1118 || l_ctx->lockowner.l_pid != current->tgid; in nfs_flush_incompatible()
Dnfs4proc.c2563 .l_pid = current->tgid, in _nfs4_do_setattr()
/linux-4.1.27/include/rdma/
Dib_verbs.h1158 struct pid *tgid; member
/linux-4.1.27/Documentation/sysctl/
Dvm.txt571 pid, uid, tgid, vm size, rss, nr_ptes, nr_pmds, swapents, oom_score_adj
/linux-4.1.27/fs/fuse/
Dfile.c2147 pid_t pid = fl->fl_type != F_UNLCK ? current->tgid : 0; in fuse_setlk()
/linux-4.1.27/Documentation/filesystems/cifs/
DCHANGES696 and on revalidate errors. Fix cases where pid is now tgid. Fix return code