Searched refs:tgid (Results 1 - 72 of 72) sorted by relevance

/linux-4.1.27/fs/proc/
H A Dself.c14 pid_t tgid = task_tgid_nr_ns(current, ns); proc_self_readlink() local
16 if (!tgid) proc_self_readlink()
18 sprintf(tmp, "%d", tgid); proc_self_readlink()
25 pid_t tgid = task_tgid_nr_ns(current, ns); proc_self_follow_link() local
27 if (tgid) { proc_self_follow_link()
33 sprintf(name, "%d", tgid); proc_self_follow_link()
H A Dthread_self.c14 pid_t tgid = task_tgid_nr_ns(current, ns); proc_thread_self_readlink() local
19 sprintf(tmp, "%d/task/%d", tgid, pid); proc_thread_self_readlink()
26 pid_t tgid = task_tgid_nr_ns(current, ns); proc_thread_self_follow_link() local
34 sprintf(name, "%d/task/%d", tgid, pid); proc_thread_self_follow_link()
H A Dbase.c2098 * new entries into /proc/<tgid>/ without very good reasons. proc_pident_lookup()
2668 static void proc_flush_task_mnt(struct vfsmount *mnt, pid_t pid, pid_t tgid) proc_flush_task_mnt() argument
2683 if (pid == tgid) proc_flush_task_mnt()
2687 name.len = snprintf(buf, sizeof(buf), "%d", tgid); proc_flush_task_mnt()
2723 * /proc/@tgid/task/@pid
2741 struct pid *pid, *tgid; proc_flush_task() local
2745 tgid = task_tgid(task); proc_flush_task()
2750 tgid->numbers[i].nr); proc_flush_task()
2786 unsigned tgid; proc_pid_lookup() local
2789 tgid = name_to_int(&dentry->d_name); proc_pid_lookup()
2790 if (tgid == ~0U) proc_pid_lookup()
2795 task = find_task_by_pid_ns(tgid, ns); proc_pid_lookup()
2809 * Find the first task with tgid >= tgid
2813 unsigned int tgid; member in struct:tgid_iter
2825 pid = find_ge_pid(iter.tgid, ns); next_tgid()
2827 iter.tgid = pid_nr_ns(pid, ns); next_tgid()
2842 iter.tgid += 1; next_tgid()
2875 iter.tgid = pos - TGID_OFFSET; proc_pid_readdir()
2879 iter.tgid += 1, iter = next_tgid(ns, iter)) { proc_pid_readdir()
2885 len = snprintf(name, sizeof(name), "%d", iter.tgid); proc_pid_readdir()
2886 ctx->pos = iter.tgid + TGID_OFFSET; proc_pid_readdir()
3161 /* f_version caches the tgid value that the last readdir call couldn't proc_task_readdir()
3176 /* returning this tgid failed, save it as the first proc_task_readdir()
H A Darray.c142 pid_t ppid, tpid = 0, tgid, ngid; task_state() local
153 tgid = task_tgid_nr_ns(p, ns); task_state()
174 tgid, ngid, pid_nr_ns(pid, ns), ppid, tpid, task_state()
/linux-4.1.27/arch/powerpc/kvm/
H A Dtrace_hv.h396 __field(pid_t, tgid)
403 __entry->tgid = current->tgid;
406 TP_printk("%s runner_vcpu==%d runnable=%d tgid=%d",
408 __entry->runner_vcpu, __entry->n_runnable, __entry->tgid)
420 __field(pid_t, tgid)
427 __entry->tgid = current->tgid;
430 TP_printk("%s runner_vcpu=%d runnable=%d tgid=%d",
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/tools/perf/util/
H A Devent.c54 * the comm, tgid and ppid.
57 pid_t *tgid, pid_t *ppid) perf_event__get_comm_ids()
65 *tgid = -1; perf_event__get_comm_ids()
110 *tgid = atoi(tgids); perf_event__get_comm_ids()
127 pid_t *tgid, pid_t *ppid) perf_event__prepare_comm()
138 tgid, ppid) != 0) { perf_event__prepare_comm()
142 *tgid = machine->pid; perf_event__prepare_comm()
145 if (*tgid < 0) perf_event__prepare_comm()
148 event->comm.pid = *tgid; perf_event__prepare_comm()
167 pid_t tgid, ppid; perf_event__synthesize_comm() local
169 if (perf_event__prepare_comm(event, pid, machine, &tgid, &ppid) != 0) perf_event__synthesize_comm()
175 return tgid; perf_event__synthesize_comm()
180 pid_t pid, pid_t tgid, pid_t ppid, perf_event__synthesize_fork()
191 if (tgid == pid) { perf_event__synthesize_fork()
195 event->fork.ppid = tgid; perf_event__synthesize_fork()
196 event->fork.ptid = tgid; perf_event__synthesize_fork()
198 event->fork.pid = tgid; perf_event__synthesize_fork()
212 pid_t pid, pid_t tgid, perf_event__synthesize_mmap_events()
309 event->mmap2.pid = tgid; perf_event__synthesize_mmap_events()
389 pid_t tgid, ppid; __event__synthesize_thread() local
394 tgid = perf_event__synthesize_comm(tool, comm_event, pid, __event__synthesize_thread()
397 if (tgid == -1) __event__synthesize_thread()
400 return perf_event__synthesize_mmap_events(tool, mmap_event, pid, tgid, __event__synthesize_thread()
426 &tgid, &ppid) != 0) __event__synthesize_thread()
429 if (perf_event__synthesize_fork(tool, fork_event, _pid, tgid, __event__synthesize_thread()
441 rc = perf_event__synthesize_mmap_events(tool, mmap_event, pid, tgid, __event__synthesize_thread()
56 perf_event__get_comm_ids(pid_t pid, char *comm, size_t len, pid_t *tgid, pid_t *ppid) perf_event__get_comm_ids() argument
125 perf_event__prepare_comm(union perf_event *event, pid_t pid, struct machine *machine, pid_t *tgid, pid_t *ppid) perf_event__prepare_comm() argument
178 perf_event__synthesize_fork(struct perf_tool *tool, union perf_event *event, pid_t pid, pid_t tgid, pid_t ppid, perf_event__handler_t process, struct machine *machine) perf_event__synthesize_fork() argument
210 perf_event__synthesize_mmap_events(struct perf_tool *tool, union perf_event *event, pid_t pid, pid_t tgid, perf_event__handler_t process, struct machine *machine, bool mmap_data) perf_event__synthesize_mmap_events() argument
H A Devent.h381 pid_t pid, pid_t tgid,
/linux-4.1.27/drivers/connector/
H A Dcn_proc.c86 ev->event_data.fork.parent_tgid = parent->tgid; proc_fork_connector()
89 ev->event_data.fork.child_tgid = task->tgid; proc_fork_connector()
115 ev->event_data.exec.process_tgid = task->tgid; proc_exec_connector()
139 ev->event_data.id.process_tgid = task->tgid; proc_id_connector()
179 ev->event_data.sid.process_tgid = task->tgid; proc_sid_connector()
204 ev->event_data.ptrace.process_tgid = task->tgid; proc_ptrace_connector()
207 ev->event_data.ptrace.tracer_tgid = current->tgid; proc_ptrace_connector()
237 ev->event_data.comm.process_tgid = task->tgid; proc_comm_connector()
263 ev->event_data.coredump.process_tgid = task->tgid; proc_coredump_connector()
288 ev->event_data.exit.process_tgid = task->tgid; proc_exit_connector()
/linux-4.1.27/arch/alpha/kernel/
H A Dasm-offsets.c25 DEFINE(TASK_TGID, offsetof(struct task_struct, tgid)); foo()
/linux-4.1.27/tools/testing/selftests/ptrace/
H A Dpeeksiginfo.c14 static int sys_rt_sigqueueinfo(pid_t tgid, int sig, siginfo_t *uinfo) sys_rt_sigqueueinfo() argument
16 return syscall(SYS_rt_sigqueueinfo, tgid, sig, uinfo); sys_rt_sigqueueinfo()
19 static int sys_rt_tgsigqueueinfo(pid_t tgid, pid_t tid, sys_rt_tgsigqueueinfo() argument
22 return syscall(SYS_rt_tgsigqueueinfo, tgid, tid, sig, uinfo); sys_rt_tgsigqueueinfo()
/linux-4.1.27/fs/cifs/
H A Dsmb2file.c126 if (current->tgid != li->pid) smb2_unlock_range()
150 current->tgid, num, buf); smb2_unlock_range()
173 cfile->fid.volatile_fid, current->tgid, smb2_unlock_range()
207 current->tgid, num, buf); smb2_push_mand_fdlocks()
219 current->tgid, num, buf); smb2_push_mand_fdlocks()
H A Dlink.c357 io_parms.pid = current->tgid; cifs_query_mf_symlink()
397 io_parms.pid = current->tgid; cifs_create_mf_symlink()
458 io_parms.pid = current->tgid; smb3_query_mf_symlink()
511 io_parms.pid = current->tgid; smb3_create_mf_symlink()
H A Dsmb2inode.c97 fid.volatile_fid, current->tgid, smb2_open_op_close()
H A Dfile.c82 current->comm, current->tgid); cifs_posix_convert_flags()
300 cfile->pid = current->tgid; cifs_new_fileinfo()
817 lock->pid = current->tgid; cifs_lock_init()
851 if (rw_check != CIFS_LOCK_OP && current->tgid == li->pid && cifs_find_fid_lock_conflict()
860 current->tgid == li->pid) || type == li->type)) cifs_find_fid_lock_conflict()
1308 rc = CIFSSMBPosixLock(xid, tcon, netfid, current->tgid, cifs_getlk()
1414 if (current->tgid != li->pid) cifs_unlock_range()
1508 current->tgid, flock->fl_start, length, cifs_setlk()
1784 if (!any_available && open_file->pid != current->tgid) find_writable_file()
2208 pid = current->tgid; cifs_write_end()
2481 pid = current->tgid; cifs_write_from_iter()
2917 pid = current->tgid; cifs_send_async_read()
3156 pid = current->tgid; cifs_read()
3459 pid = current->tgid; cifs_readpages()
H A Dmisc.c261 buffer->Pid = cpu_to_le16((__u16)current->tgid); header_assemble()
262 buffer->PidHigh = cpu_to_le16((__u16)(current->tgid >> 16)); header_assemble()
H A Dsmb1ops.c822 netpid = current->tgid; smb_set_file_info()
875 return CIFSSMBLock(0, tcon, fid->netfid, current->tgid, 0, 0, 0, 0, cifs_oplock_response()
917 current->tgid, length, offset, unlock, lock, cifs_mand_lock()
H A Dinode.c483 io_parms.pid = current->tgid; cifs_sfu_type()
1147 current->tgid); cifs_rename_pending_delete()
1168 current->tgid); cifs_rename_pending_delete()
1205 current->tgid)) cifs_rename_pending_delete()
H A Ddir.c363 current->tgid); cifs_do_create()
675 io_parms.pid = current->tgid; cifs_mknod()
H A Dsmb2pdu.c107 hdr->ProcessId = cpu_to_le32((__u16)current->tgid); smb2_hdr_assemble()
2380 current->tgid, FILE_RENAME_INFORMATION, 2, data, SMB2_rename()
2398 current->tgid, FILE_DISPOSITION_INFORMATION, 1, &data, SMB2_rmdir()
2428 current->tgid, FILE_LINK_INFORMATION, 2, data, size); SMB2_set_hardlink()
2461 current->tgid, FILE_BASIC_INFORMATION, 1, SMB2_set_info()
H A Dsmb2ops.c955 current->tgid, length, offset, type, wait); smb2_mand_lock()
/linux-4.1.27/include/uapi/linux/
H A Dcn_proc.h39 * parent process ID = parent->tgid
41 * child process ID = child->tgid
H A Dauto_fs4.h138 __u32 tgid; member in struct:autofs_v5_packet
H A Dtaskstats.h190 TASKSTATS_TYPE_AGGR_TGID, /* contains tgid + stats */
H A Dfuse.h184 uint32_t pid; /* tgid */
/linux-4.1.27/fs/notify/fanotify/
H A Dfanotify.c23 if (old_fsn->inode == new_fsn->inode && old->tgid == new->tgid && should_merge()
176 event->tgid = get_pid(task_tgid(current)); fanotify_alloc_event()
255 put_pid(event->tgid); fanotify_free_event()
H A Dfanotify.h20 struct pid *tgid; member in struct:fanotify_event_info
H A Dfanotify_user.c132 metadata->pid = pid_vnr(event->tgid); fill_event_metadata()
/linux-4.1.27/arch/arc/kernel/
H A Dasm-offsets.c39 DEFINE(TASK_TGID, offsetof(struct task_struct, tgid)); main()
/linux-4.1.27/fs/autofs4/
H A Dwaitq.c162 packet->tgid = wq->tgid; autofs4_notify_daemon()
351 pid_t tgid; autofs4_wait() local
363 tgid = task_tgid_nr_ns(current, ns_of_pid(sbi->oz_pgrp)); autofs4_wait()
364 if (pid == 0 || tgid == 0) autofs4_wait()
433 wq->tgid = tgid; autofs4_wait()
H A Dautofs_i.h99 pid_t tgid; member in struct:autofs_wait_queue
/linux-4.1.27/kernel/
H A Dtaskstats.c209 static int fill_stats_for_tgid(pid_t tgid, struct taskstats *stats) fill_stats_for_tgid() argument
220 first = find_task_by_vpid(tgid); fill_stats_for_tgid()
269 * accumalate its per-task stats for tsk, into the per-tgid structure fill_tgid_exit()
544 u32 tgid; cmd_attr_tgid() local
554 tgid = nla_get_u32(info->attrs[TASKSTATS_CMD_ATTR_TGID]); cmd_attr_tgid()
555 stats = mk_reply(rep_skb, TASKSTATS_TYPE_TGID, tgid); cmd_attr_tgid()
559 rc = fill_stats_for_tgid(tgid, stats); cmd_attr_tgid()
H A Dsignal.c2915 do_send_specific(pid_t tgid, pid_t pid, int sig, struct siginfo *info) do_send_specific() argument
2922 if (p && (tgid <= 0 || task_tgid_vnr(p) == tgid)) { do_send_specific()
2944 static int do_tkill(pid_t tgid, pid_t pid, int sig) do_tkill() argument
2954 return do_send_specific(tgid, pid, sig, &info); do_tkill()
2959 * @tgid: the thread group ID of the thread
2963 * This syscall also checks the @tgid and returns -ESRCH even if the PID
2967 SYSCALL_DEFINE3(tgkill, pid_t, tgid, pid_t, pid, int, sig) SYSCALL_DEFINE3()
2970 if (pid <= 0 || tgid <= 0) SYSCALL_DEFINE3()
2973 return do_tkill(tgid, pid, sig); SYSCALL_DEFINE3()
3036 static int do_rt_tgsigqueueinfo(pid_t tgid, pid_t pid, int sig, siginfo_t *info) do_rt_tgsigqueueinfo() argument
3039 if (pid <= 0 || tgid <= 0) do_rt_tgsigqueueinfo()
3051 return do_send_specific(tgid, pid, sig, info); do_rt_tgsigqueueinfo()
3054 SYSCALL_DEFINE4(rt_tgsigqueueinfo, pid_t, tgid, pid_t, pid, int, sig, SYSCALL_DEFINE4()
3062 return do_rt_tgsigqueueinfo(tgid, pid, sig, &info); SYSCALL_DEFINE4()
3067 compat_pid_t, tgid, COMPAT_SYSCALL_DEFINE4()
3076 return do_rt_tgsigqueueinfo(tgid, pid, sig, &info); COMPAT_SYSCALL_DEFINE4()
H A Daudit.h316 if (unlikely((audit_pid && t->tgid == audit_pid) || audit_signal_info()
H A Dfork.c1500 p->tgid = current->tgid; copy_process()
1507 p->tgid = p->pid; copy_process()
H A Dsys.c824 * Note, despite the name, this returns the tgid not the pid. The tgid and
826 * which case the tgid is the same in all threads of the same group.
828 * This is SMP safe as current->tgid does not change.
H A Dauditsc.c754 if (audit_pid && tsk->tgid == audit_pid) audit_filter_syscall()
808 if (audit_pid && tsk->tgid == audit_pid) audit_filter_inodes()
2242 if (audit_pid && t->tgid == audit_pid) { __audit_signal_info()
H A Dcgroup.c4002 /* get tgid or pid for procs or tasks file respectively */ pidlist_array_load()
/linux-4.1.27/include/trace/events/
H A Dsched.h457 __field( pid_t, tgid )
467 __entry->tgid = task_tgid_nr(tsk);
475 TP_printk("pid=%d tgid=%d ngid=%d src_cpu=%d src_nid=%d dst_cpu=%d dst_nid=%d",
476 __entry->pid, __entry->tgid, __entry->ngid,
/linux-4.1.27/Documentation/accounting/
H A Dgetdelays.c3 * Utility to get per-pid and per-tgid delay accounting statistics
77 "[-m cpumask] [-t tgid] [-p pid]\n"); usage()
324 err(1, "Invalid tgid\n"); main()
418 PRINTF("Sent pid/tgid, retval %d\n", rc); main()
420 fprintf(stderr, "error sending tid/tgid cmd\n"); main()
/linux-4.1.27/arch/ia64/include/uapi/asm/
H A Dperfmon_default_smpl.h72 int tgid; /* thread group id (for NPTL, this is getpid()) */ member in struct:__anon1692
/linux-4.1.27/arch/ia64/kernel/
H A Dperfmon_default_smpl.c171 ent->tgid = current->tgid; default_handler()
H A Dasm-offsets.c61 DEFINE(IA64_TASK_TGID_OFFSET, offsetof (struct task_struct, tgid)); foo()
/linux-4.1.27/drivers/infiniband/core/
H A Dumem_odp.c256 if (context->tgid != our_pid) { ib_umem_odp_get()
385 owning_process = get_pid_task(context->tgid, ib_umem_odp_release()
547 owning_process = get_pid_task(umem->context->tgid, PIDTYPE_PID); ib_umem_odp_map_dma_pages()
H A Duverbs_main.c306 put_pid(context->tgid); ib_uverbs_cleanup_ucontext()
H A Duverbs_cmd.c333 ucontext->tgid = get_task_pid(current->group_leader, PIDTYPE_PID); ib_uverbs_get_context()
395 put_pid(ucontext->tgid); ib_uverbs_get_context()
/linux-4.1.27/fs/ocfs2/cluster/
H A Dnetdebug.c149 " tgid: %lu\n" nst_seq_show()
160 (unsigned long)nst->st_task->tgid, nst_seq_show()
/linux-4.1.27/kernel/trace/
H A Dtrace_entries.h199 __field( unsigned int, tgid )
H A Dtrace_output.c371 task = find_task_by_vpid(entry->tgid); seq_print_userip_objs()
H A Dtrace.c1957 entry->tgid = current->tgid; ftrace_trace_userstack()
/linux-4.1.27/kernel/events/
H A Duprobes.c1534 " nestedness limit pid/tgid=%d/%d\n", prepare_uretprobe()
1535 current->pid, current->tgid); prepare_uretprobe()
1559 pr_warn("uprobe: unable to set uretprobe pid/tgid=%d/%d\n", prepare_uretprobe()
1560 current->pid, current->tgid); prepare_uretprobe()
1831 pr_warn("uprobe: unable to handle uretprobe pid/tgid=%d/%d\n", handle_swbp()
1832 current->pid, current->tgid); handle_swbp()
/linux-4.1.27/arch/powerpc/platforms/cell/spufs/
H A Dsched.c242 spu->tgid = current->tgid; spu_bind_context()
468 spu->tgid = 0; spu_unbind_context()
/linux-4.1.27/mm/
H A Doom_kill.c346 * State information includes task's pid, uid, tgid, vm size, rss, nr_ptes,
354 pr_info("[ pid ] uid tgid total_vm rss nr_ptes nr_pmds swapents oom_score_adj name\n"); dump_tasks()
372 task->tgid, task->mm->total_vm, get_mm_rss(task->mm), for_each_process()
/linux-4.1.27/fs/
H A Dlocks.c384 fl->fl_pid = current->tgid; flock_make_lock()
444 fl->fl_pid = current->tgid; flock64_to_posix_lock()
509 fl->fl_pid = current->tgid; lease_init()
1248 fl.fl_pid = current->tgid; locks_mandatory_area()
2385 lock.fl_pid = current->tgid; locks_remove_posix()
2404 .fl_pid = current->tgid, locks_remove_flock()
/linux-4.1.27/drivers/oprofile/
H A Dbuffer_sync.c311 add_event_entry(task->tgid); add_user_ctx_switch()
/linux-4.1.27/arch/tile/kernel/
H A Dstack.c392 kbt->task->pid, kbt->task->tgid, kbt->task->comm, tile_show_stack()
/linux-4.1.27/fs/nfsd/
H A Dnfs4layouts.c171 fl->fl_pid = current->tgid; nfsd4_layout_setlease()
H A Dnfs4state.c3992 fl->fl_pid = current->tgid; nfs4_alloc_init_lease()
5554 file_lock->fl_pid = current->tgid; nfsd4_lock()
5691 file_lock->fl_pid = current->tgid; nfsd4_lockt()
5752 file_lock->fl_pid = current->tgid; nfsd4_locku()
/linux-4.1.27/arch/s390/kernel/
H A Dcompat_wrapper.c203 COMPAT_SYSCALL_WRAP3(tgkill, int, tgid, int, pid, int, sig);
/linux-4.1.27/arch/powerpc/include/asm/
H A Dspu.h146 pid_t tgid; member in struct:spu
/linux-4.1.27/arch/powerpc/oprofile/cell/
H A Dspu_task_sync.c402 spu_buff_add(spu->tgid, spu->number); process_context_switch()
/linux-4.1.27/include/linux/
H A Dcompat.h387 long compat_sys_rt_tgsigqueueinfo(compat_pid_t tgid, compat_pid_t pid, int sig,
H A 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);
H A Dsched.h1395 pid_t tgid; member in struct:task_struct
1830 return tsk->tgid; task_tgid_nr()
/linux-4.1.27/fs/nfs/
H A Dinode.c692 l_ctx->lockowner.l_pid = current->tgid; nfs_init_lock_context()
705 if (pos->lockowner.l_pid != current->tgid) __nfs_find_lock_context()
H A Dwrite.c1118 || l_ctx->lockowner.l_pid != current->tgid; nfs_flush_incompatible()
H A Dnfs4proc.c2563 .l_pid = current->tgid, _nfs4_do_setattr()
/linux-4.1.27/drivers/misc/sgi-gru/
H A Dgrumain.c742 if (!gru || gts->ts_tgid_owner != current->tgid) gru_check_context_placement()
H A Dgrufault.c891 gts->ts_tgid_owner = current->tgid; gru_set_context_option()
/linux-4.1.27/net/sunrpc/
H A Dsched.c907 task->tk_owner = current->tgid; rpc_init_task()
/linux-4.1.27/fs/ubifs/
H A Ddebug.c247 pr_err("\tgid %u\n", (unsigned int)i_gid_read(inode)); ubifs_dump_inode()
437 pr_err("\tgid %u\n", le32_to_cpu(ino->gid)); ubifs_dump_node()
/linux-4.1.27/include/rdma/
H A Dib_verbs.h1158 struct pid *tgid; member in struct:ib_ucontext
/linux-4.1.27/fs/fuse/
H A Dfile.c2147 pid_t pid = fl->fl_type != F_UNLCK ? current->tgid : 0; fuse_setlk()

Completed in 2017 milliseconds