Home
last modified time | relevance | path

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

1234

/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()
H A Dtest_core_reloc_module.c52 if (BPF_CORE_READ(task, pid) != real_pid || BPF_CORE_READ(task, tgid) != real_tgid) in BPF_PROG()
86 if (task->pid != real_pid || task->tgid != real_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.c28 * task id (tgid) --------------+ | .... | | | ... | .term (+ part)
209 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()
350 /* Maintain a hashmap from (tgid, event-id) to filter index */
411 int tgid; in create_idx_hash() local
416 /* it actually needs tgid, let's get tgid from /proc. */ in create_idx_hash()
417 tgid in create_idx_hash()
[all...]
H A Dsynthetic-events.c71 * the comm, tgid and ppid.
74 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()
197 pid_t tgid, ppi in perf_event__synthesize_comm()
196 pid_t tgid, ppid; perf_event__synthesize_comm() local
224 perf_event__synthesize_namespaces(const struct perf_tool * tool,union perf_event * event,pid_t pid,pid_t tgid,perf_event__handler_t process,struct machine * machine) perf_event__synthesize_namespaces() argument
263 perf_event__synthesize_fork(const 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
430 perf_event__synthesize_mmap_events(const 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
784 pid_t tgid, ppid; __event__synthesize_thread() local
[all...]
H A Dbpf_off_cpu.c33 u32 tgid;
255 u32 tgid; in off_cpu_prepare()
262 tgid = pid; in off_cpu_prepare()
263 bpf_map_update_elem(fd, &tgid, &val, BPF_ANY); in off_cpu_prepare()
391 off_cpu_raw[i++] = (u64)key.pid << 32 | key.tgid; in off_cpu_write()
31 u32 tgid; global() member
253 u32 tgid; off_cpu_prepare() local
/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()
H A Dkwork_top.bpf.c34 __u32 tgid; member
114 .tgid = task->tgid, in update_task_info()
/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/tools/testing/selftests/net/af_unix/
H A Dscm_rights_denial_lsm.bpf.c27 __u32 tgid = bpf_get_current_pid_tgid() >> 32; in BPF_PROG() local
32 if (owner && *owner == tgid) in BPF_PROG()
/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
170 return l1->tgid - l2->tgid; in compare_allocator()
352 pid_t tgid;
359 tgid = strtol(tgid_str, &endptr, 10); in get_ts_nsec()
362 fprintf(stderr, "wrong/invalid tgid in follow buf:\n%s\n", buf); in get_ts_nsec()
366 return tgid; in get_ts_nsec()
424 else if (!strcmp(arg, "tgid") || !strcmp(arg, "tg")) in get_allocator()
524 list[list_size].tgid = get_tgid(buf); in parse_cull_args()
692 "-P\t\t\tSort by tgid in main()
336 pid_t tgid; get_tgid() local
[all...]
/linux/fs/smb/client/
H A Dsmb2file.c321 if (current->tgid != li->pid) in smb2_unlock_range()
350 current->tgid, num, buf); in smb2_unlock_range()
373 cfile->fid.volatile_fid, current->tgid, in smb2_unlock_range()
407 current->tgid, num, buf); in smb2_push_mand_fdlocks()
419 current->tgid, num, buf); in smb2_push_mand_fdlocks()
/linux/arch/powerpc/include/asm/
H A Dvas.h70 struct pid *tgid; /* Thread group ID of owner */ member
104 put_pid(ref->tgid); in put_vas_user_win_ref()

1234