Home
last modified time | relevance | path

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

12345

/linux/Documentation/translations/zh_CN/accounting/
H A Dtaskstats.rst26tgid”、“进程”、“线程组”互换使用,用于描述共享mm_struct的任务集,
27 也就是传统的Unix进程。尽管使用了tgid这个词,即使一个任务是线程组组长,
35 (NETLINK_GENERIC族)然后发送指定pid或tgid的命令。响应消息中包含单个
36 任务的统计信息(若指定了pid)或进程所有任务汇总的统计信息(若指定了tgid)。
43 如果正在退出的任务是线程组中最后一个退出的线程,额外一条包含每tgid统计信息的
48 用户可注册cpu掩码、发送命令和处理响应、监听每tid/tgid退出数据、将收到的数据
59 struct taskstats是每pid和每tgid数据共用的计数结构体。它是版本化的,可在内核新增
71 1. 命令:由用户发送给内核。获取指定pid/tgid数据的命令包含一个类型为
72 TASKSTATS_CMD_ATTR_PID/TGID的属性,该属性包含u32的pid或tgid载荷。
73 pid/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的任务从系统启动后的总延时信息::
/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()
67 out->valid[0] = (((uint64_t)pid << 32) | tgid) == pid_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()
[all …]
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 Dstruct_ops_maybe_null_fail.c9 pid_t tgid = 0; variable
15 tgid = task->tgid; in BPF_PROG()
H A Dstruct_ops_maybe_null.c9 pid_t tgid = 0; variable
20 tgid = task->tgid; in BPF_PROG()
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 Daccess_map_in_map.c42 int tgid = 0; variable
49 if ((bpf_get_current_pid_tgid() >> 32) != tgid) in acc_map_in_map()
H A Dtest_task_under_cgroup.c33 if (local_pid == acquired->tgid) in BPF_PROG()
41 remote_pid = acquired->tgid; in BPF_PROG()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dns_current_pid_tgid.c20 static int get_pid_tgid(pid_t *pid, pid_t *tgid, in get_pid_tgid() argument
27 *tgid = getpid(); in get_pid_tgid()
45 pid_t tgid, pid; in test_current_pid_tgid_tp() local
58 if (get_pid_tgid(&pid, &tgid, bss)) in test_current_pid_tgid_tp()
69 if (!ASSERT_EQ(bss->user_tgid, tgid, "tgid")) in test_current_pid_tgid_tp()
84 pid_t tgid, pid; in test_current_pid_tgid_cgrp() local
97 if (get_pid_tgid(&pid, &tgid, bss)) in test_current_pid_tgid_cgrp()
111 if (!ASSERT_EQ(bss->user_tgid, tgid, "tgid")) in test_current_pid_tgid_cgrp()
129 pid_t tgid, pid; test_current_pid_tgid_sk_msg() local
[all...]
/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).
43 an additional record containing the per-tgid stats is also sent to userspace.
49 send commands and process responses, listen for per-tid/tgid exit data,
63 per-tgid data. It is versioned and can be extended by each accounting subsystem
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 indicates a pid/tgid will be followed by some stats.
[all …]
/linux/tools/perf/util/
H A Dnamespaces.c62 static int nsinfo__get_nspid(pid_t *tgid, pid_t *nstgid, bool *in_pidns, const char *path) in nsinfo__get_nspid() argument
76 *tgid = (pid_t)strtol(strrchr(statln, '\t'), NULL, 10); in nsinfo__get_nspid()
77 *nstgid = *tgid; in nsinfo__get_nspid()
133 rv = nsinfo__get_nspid(&RC_CHK_ACCESS(nsi)->tgid, &RC_CHK_ACCESS(nsi)->nstgid, in nsinfo__init()
165 RC_CHK_ACCESS(nsi)->tgid = pid; in nsinfo__new()
196 RC_CHK_ACCESS(nnsi)->tgid = nsinfo__tgid(nsi); in nsinfo__copy()
255 return RC_CHK_ACCESS(nsi)->tgid; in nsinfo__tgid()
375 pid_t tgid = 0, nstgid = 0; in nsinfo__is_in_root_namespace() local
378 nsinfo__get_nspid(&tgid, &nstgid, &in_pidns, "/proc/self/status"); in nsinfo__is_in_root_namespace()
H A Dbpf-filter.c209 int tgid; in convert_to_tgid() local
222 tgid = strtol(p + 6, &q, 0); in convert_to_tgid()
227 return tgid; in convert_to_tgid()
342 .tgid = perf_thread_map__pid(threads, i), in destroy_idx_hash()
411 int tgid; in create_idx_hash() local
417 tgid = convert_to_tgid(pid); in create_idx_hash()
418 if (tgid < 0) { in create_idx_hash()
423 if (tgid == last) in create_idx_hash()
425 last = tgid; in create_idx_hash()
426 key.tgid = tgid; in create_idx_hash()
[all …]
H A Dsynthetic-events.c74 pid_t *tgid, pid_t *ppid, bool *kernel) in perf_event__get_comm_ids() argument
82 *tgid = -1; in perf_event__get_comm_ids()
134 *tgid = atoi(tgids); in perf_event__get_comm_ids()
156 pid_t *tgid, pid_t *ppid, bool *kernel) in perf_event__prepare_comm() argument
167 tgid, ppid, kernel) != 0) { in perf_event__prepare_comm()
171 *tgid = machine->pid; in perf_event__prepare_comm()
174 if (*tgid < 0) in perf_event__prepare_comm()
177 event->comm.pid = *tgid; in perf_event__prepare_comm()
196 pid_t tgid, ppid; in perf_event__synthesize_comm() local
199 if (perf_event__prepare_comm(event, 0, pid, machine, &tgid, &ppid, in perf_event__synthesize_comm()
[all …]
H A Dbpf_off_cpu.c31 u32 tgid; member
253 u32 tgid; in off_cpu_prepare() local
260 tgid = pid; in off_cpu_prepare()
261 bpf_map_update_elem(fd, &tgid, &val, BPF_ANY); in off_cpu_prepare()
389 off_cpu_raw[i++] = (u64)key.pid << 32 | key.tgid; in off_cpu_write()
/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()
312 ev->event_data.coredump.parent_tgid = parent->tgid; in proc_coredump_connector()
[all …]
/linux/tools/perf/util/bpf_skel/
H A Doff_cpu.bpf.c38 __u32 tgid; member
194 pid = t->tgid; in can_record()
239 data->array[n++] = (u64)key->tgid << 32 | key->pid; in off_cpu_dump()
296 .tgid = next->tgid, in off_cpu_stat()
338 pid = BPF_CORE_READ(task, tgid); in on_newtask()
345 pid = task->tgid; in on_newtask()
/linux/drivers/infiniband/core/
H A Dumem_odp.c152 umem_odp->tgid = get_task_pid(current->group_leader, PIDTYPE_PID); in ib_umem_odp_alloc_implicit()
205 odp_data->tgid = get_pid(root->tgid); in ib_umem_odp_alloc_child()
213 put_pid(odp_data->tgid); in ib_umem_odp_alloc_child()
261 umem_odp->tgid = get_task_pid(current->group_leader, PIDTYPE_PID); in ib_umem_odp_get()
268 put_pid(umem_odp->tgid); in ib_umem_odp_get()
300 put_pid(umem_odp->tgid); in ib_umem_odp_release()
347 owning_process = get_pid_task(umem_odp->tgid, PIDTYPE_PID); in ib_umem_odp_map_dma_and_lock()
/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()
H A Dthread_self.c16 pid_t tgid = task_tgid_nr_ns(current, ns); in proc_thread_self_get_link() local
25 sprintf(name, "%u/task/%u", tgid, pid); in proc_thread_self_get_link()
/linux/mm/
H A Dpage_owner.c34 pid_t tgid; member
249 pid_t pid, pid_t tgid, char *comm) in __update_page_owner_handle() argument
263 page_owner->tgid = tgid; in __update_page_owner_handle()
276 pid_t pid, pid_t tgid, in __update_page_owner_free_handle() argument
293 page_owner->free_tgid = current->tgid; in __update_page_owner_free_handle()
322 current->tgid, free_ts_nsec); in __reset_page_owner()
343 ts_nsec, current->pid, current->tgid, in __set_page_owner()
402 old_page_owner->tgid, old_page_owner->comm); in __folio_copy_owner()
564 page_owner->tgid, page_owner->comm, in print_page_owner()
635 page_owner->pid, page_owner->tgid, page_owner->comm, in __dump_page_owner()
[all …]
/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()
/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()
/linux/tools/mm/
H A Dpage_owner_sort.c38 pid_t tgid; member
163 return l1->tgid - l2->tgid; in compare_tgid()
336 pid_t tgid; in get_tgid() local
342 tgid = strtol(tgid_str, &endptr, 10); in get_tgid()
349 return tgid; in get_tgid()
481 list[list_size].tgid = get_tgid(buf); in add_list()
861 fprintf(fout, ", TGID %d", list[i].tgid); in main()
/linux/fs/smb/client/
H A Dsmb2file.c293 if (current->tgid != li->pid) in smb2_unlock_range()
322 current->tgid, num, buf); in smb2_unlock_range()
345 cfile->fid.volatile_fid, current->tgid, in smb2_unlock_range()
379 current->tgid, num, buf); in smb2_push_mand_fdlocks()
391 current->tgid, num, buf); in smb2_push_mand_fdlocks()

12345