Home
last modified time | relevance | path

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

123456

/openbmc/linux/Documentation/translations/zh_CN/accounting/
H A Dtaskstats.rst26tgid”、“进程”、“线程组”互换使用,用于描述共享mm_struct的任务集,
27 也就是传统的Unix进程。尽管使用了tgid这个词,即使一个任务是线程组组长,
36 任务的统计信息(若指定了pid)或进程所有任务汇总的统计信息(若指定了tgid)。
43 如果正在退出的任务是线程组中最后一个退出的线程,额外一条包含每tgid统计信息的
48 用户可注册cpu掩码、发送命令和处理响应、监听每tid/tgid退出数据、将收到的数据
71 1. 命令:由用户发送给内核。获取指定pid/tgid数据的命令包含一个类型为
73 pid/tgid指示用户空间要统计的任务/进程。
85 的pig/tgid
90tgid统计信息共用该结构体。
98 e) TASKSTATS_TYPE_TGID:包含任务所属进程的tgid
[all …]
H A Ddelay-accounting.rst40 向用户态返回一个通用数据结构,对应每pid或每tgid的统计信息。延时计数功能填写
51 若其为线程组最后一个退出的任务,内核还会发送每tgid的统计信息。更多详细信息见
74 系统启动后,使用类似getdelays.c的工具获取任务或线程组(tgid)的延时信息。
78 getdelays [-dilv] [-t tgid] [-p pid]
85 获取所有tgid为5的任务从系统启动后的总延时信息::
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_core_reloc_kernel.c29 int tgid; member
57 int pid, tgid; in test_core_kernel() local
63 CORE_READ(&tgid, &task->tgid)) in test_core_kernel()
71 tgid) == real_tgid; in test_core_kernel()
74 tgid) == real_tgid; in test_core_kernel()
77 tgid) == real_tgid; in test_core_kernel()
80 tgid) == real_tgid; in test_core_kernel()
84 tgid) == real_tgid; in test_core_kernel()
88 tgid) == real_tgid; in test_core_kernel()
92 tgid) == real_tgid; in test_core_kernel()
[all …]
H A Dbpf_iter_task_file.c9 int tgid = 0; variable
29 if (tgid == task->tgid && task->tgid != task->pid) in dump_task_file()
32 if (last_tgid != task->tgid) { in dump_task_file()
33 last_tgid = task->tgid; in dump_task_file()
37 BPF_SEQ_PRINTF(seq, "%8d %8d %8d %lx\n", task->tgid, task->pid, fd, in dump_task_file()
H A Dbpf_iter_test_kern3.c13 int tgid; in dump_task() local
15 tgid = task->tgid; in dump_task()
16 bpf_seq_write(seq, &tgid, sizeof(tgid)); in dump_task()
H A Dtest_core_retro.c8 int tgid; member
29 int tgid = BPF_CORE_READ(task, tgid); in handle_sys_enter() local
38 bpf_map_update_elem(&results, &zero, &tgid, 0); in handle_sys_enter()
H A Dbpf_mod_race.c8 pid_t tgid; member
22 return task->tgid == bpf_mod_race_config.tgid; in check_thread_id()
H A Dbpf_iter_vma_offset.c25 if (last_tgid != task->tgid) in get_vma_offset()
27 last_tgid = task->tgid; in get_vma_offset()
29 if (task->tgid != pid) in get_vma_offset()
H A Dtest_task_under_cgroup.c33 if (local_pid == acquired->tgid) in BPF_PROG()
41 remote_pid = acquired->tgid; in BPF_PROG()
H A Dbpf_iter_task.c33 BPF_SEQ_PRINTF(seq, "%8d %8d\n", task->tgid, task->pid); in dump_task()
86 BPF_SEQ_PRINTF(seq, "%8d %8d %8d\n", task->tgid, task->pid, user_data); in dump_task_sleepable()
/openbmc/linux/net/bpfilter/
H A Dbpfilter_kern.c19 struct pid *tgid = info->tgid; in shutdown_umh() local
21 if (tgid) { in shutdown_umh()
22 kill_pid(tgid, SIGKILL, 1); in shutdown_umh()
23 wait_event(tgid->wait_pidfd, thread_group_exited(tgid)); in shutdown_umh()
40 if (!bpfilter_ops.info.tgid) in bpfilter_send_req()
89 pr_info("Loaded bpfilter_umh pid %d\n", pid_nr(bpfilter_ops.info.tgid)); in start_umh()
/openbmc/linux/arch/powerpc/kvm/
H A Dtrace_hv.h415 __field(pid_t, tgid)
422 __entry->tgid = current->tgid;
427 __entry->runner_vcpu, __entry->n_runnable, __entry->tgid)
439 __field(pid_t, tgid)
446 __entry->tgid = current->tgid;
451 __entry->runner_vcpu, __entry->n_runnable, __entry->tgid)
462 __field(pid_t, tgid)
468 __entry->tgid = current->tgid;
473 __entry->ns, __entry->tgid)
483 __field(pid_t, tgid)
[all …]
/openbmc/linux/Documentation/translations/zh_CN/mm/
H A Dpage_owner.rst98 -P 按tgid排序。
108 ./page_owner_sort <input> <output> --sort=n,+pid,-tgid
132 --tgid <tgidlist> 按tgid选择。这将选择其线程组ID号出现在<tgidlist>
143 ./page_owner_sort <input> <output> --tgid=1,2,3
154 tg tgid 线程组ID
166 tg tgid 线程组ID
/openbmc/linux/Documentation/accounting/
H A Dtaskstats.rst22 "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).
49 send commands and process responses, listen for per-tid/tgid exit data,
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.
103 same structure is used for both per-pid and per-tgid stats.
112 e) TASKSTATS_TYPE_TGID: contains tgid of process to which task belongs
[all …]
/openbmc/linux/net/ipv4/bpfilter/
H A Dsockopt.c30 if (bpfilter_ops.info.tgid && in bpfilter_mbox_request()
31 thread_group_exited(bpfilter_ops.info.tgid)) in bpfilter_mbox_request()
34 if (!bpfilter_ops.info.tgid) { in bpfilter_mbox_request()
66 bpfilter_ops.info.tgid = NULL; in bpfilter_sockopt_init()
/openbmc/linux/tools/perf/util/
H A Dnamespaces.c63 static int nsinfo__get_nspid(pid_t *tgid, pid_t *nstgid, bool *in_pidns, const char *path) in nsinfo__get_nspid() argument
77 *tgid = (pid_t)strtol(strrchr(statln, '\t'), NULL, 10); in nsinfo__get_nspid()
78 *nstgid = *tgid; in nsinfo__get_nspid()
134 rv = nsinfo__get_nspid(&RC_CHK_ACCESS(nsi)->tgid, &RC_CHK_ACCESS(nsi)->nstgid, in nsinfo__init()
166 RC_CHK_ACCESS(nsi)->tgid = pid; in nsinfo__new()
197 RC_CHK_ACCESS(nnsi)->tgid = nsinfo__tgid(nsi); in nsinfo__copy()
256 return RC_CHK_ACCESS(nsi)->tgid; in nsinfo__tgid()
371 pid_t tgid = 0, nstgid = 0; in nsinfo__is_in_root_namespace() local
374 nsinfo__get_nspid(&tgid, &nstgid, &in_pidns, "/proc/self/status"); in nsinfo__is_in_root_namespace()
H A Dsynthetic-events.c81 *tgid = -1; in perf_event__get_comm_ids()
133 *tgid = atoi(tgids); in perf_event__get_comm_ids()
170 *tgid = machine->pid; in perf_event__prepare_comm()
173 if (*tgid < 0) in perf_event__prepare_comm()
176 event->comm.pid = *tgid; in perf_event__prepare_comm()
195 pid_t tgid, ppid; in perf_event__synthesize_comm() local
205 return tgid; in perf_event__synthesize_comm()
273 if (tgid == pid) { in perf_event__synthesize_fork()
280 event->fork.pid = tgid; in perf_event__synthesize_fork()
755 pid_t tgid, ppid; in __event__synthesize_thread() local
[all …]
/openbmc/linux/drivers/connector/
H A Dcn_proc.c135 ev->event_data.fork.parent_tgid = parent->tgid; in proc_fork_connector()
138 ev->event_data.fork.child_tgid = task->tgid; in proc_fork_connector()
162 ev->event_data.exec.process_tgid = task->tgid; in proc_exec_connector()
186 ev->event_data.id.process_tgid = task->tgid; in proc_id_connector()
224 ev->event_data.sid.process_tgid = task->tgid; in proc_sid_connector()
248 ev->event_data.ptrace.process_tgid = task->tgid; in proc_ptrace_connector()
251 ev->event_data.ptrace.tracer_tgid = current->tgid; in proc_ptrace_connector()
280 ev->event_data.comm.process_tgid = task->tgid; in proc_comm_connector()
306 ev->event_data.coredump.process_tgid = task->tgid; in proc_coredump_connector()
339 ev->event_data.exit.process_tgid = task->tgid; in proc_exit_connector()
[all …]
/openbmc/linux/tools/perf/util/bpf_skel/
H A Doff_cpu.bpf.c29 __u32 tgid; member
164 pid = t->tgid; in can_record()
215 .tgid = next->tgid, in off_cpu_stat()
249 pid = BPF_CORE_READ(task, tgid); in on_newtask()
256 pid = task->tgid; in on_newtask()
/openbmc/linux/drivers/infiniband/core/
H A Dumem_odp.c136 umem_odp->tgid = get_task_pid(current->group_leader, PIDTYPE_PID); in ib_umem_odp_alloc_implicit()
139 put_pid(umem_odp->tgid); in ib_umem_odp_alloc_implicit()
194 odp_data->tgid = get_pid(root->tgid); in ib_umem_odp_alloc_child()
202 put_pid(odp_data->tgid); in ib_umem_odp_alloc_child()
250 umem_odp->tgid = get_task_pid(current->group_leader, PIDTYPE_PID); in ib_umem_odp_get()
257 put_pid(umem_odp->tgid); in ib_umem_odp_get()
280 put_pid(umem_odp->tgid); in ib_umem_odp_release()
372 owning_process = get_pid_task(umem_odp->tgid, PIDTYPE_PID); in ib_umem_odp_map_dma_and_lock()
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dns_current_pid_tgid.c24 pid_t tgid, pid; in test_current_pid_tgid() local
32 tgid = getpid(); in test_current_pid_tgid()
51 ASSERT_EQ(bss->user_tgid, tgid, "tgid"); in test_current_pid_tgid()
/openbmc/linux/fs/proc/
H A Dself.c16 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()
/openbmc/linux/kernel/
H A Dusermode_driver.c133 umd_info->tgid = get_pid(task_tgid(current)); in umd_setup()
154 put_pid(info->tgid); in umd_cleanup_helper()
155 info->tgid = NULL; in umd_cleanup_helper()
175 if (WARN_ON_ONCE(info->tgid)) in fork_usermode_driver()
/openbmc/linux/tools/testing/selftests/ptrace/
H A Dpeeksiginfo.c15 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()
/openbmc/linux/fs/autofs/
H A Dwaitq.c151 packet->tgid = wq->tgid; in autofs_notify_daemon()
313 pid_t tgid; in autofs_wait() local
325 tgid = task_tgid_nr_ns(current, ns_of_pid(sbi->oz_pgrp)); in autofs_wait()
326 if (pid == 0 || tgid == 0) in autofs_wait()
399 wq->tgid = tgid; in autofs_wait()

123456