/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | bpf_iter_test_kern3.c | 13 int tgid; local 15 tgid = task->tgid; 16 bpf_seq_write(seq, &tgid, sizeof(tgid));
|
H A D | struct_ops_maybe_null.c | 9 pid_t tgid = 0; variable 20 tgid = task->tgid;
|
H A D | struct_ops_maybe_null_fail.c | 9 pid_t tgid = 0; variable 15 tgid = task->tgid;
|
H A D | bpf_iter_task_file.c | 9 int tgid = 0; variable 26 BPF_SEQ_PRINTF(seq, " tgid gid fd file\n"); 29 if (tgid == task->tgid && task->tgid != task->pid) 32 if (last_tgid != task->tgid) { 33 last_tgid = task->tgid; 37 BPF_SEQ_PRINTF(seq, "%8d %8d %8d %lx\n", task->tgid, task->pid, fd,
|
H A D | test_core_reloc_kernel.c | 29 int tgid; member in struct:task_struct 57 int pid, tgid; local 63 CORE_READ(&tgid, &task->tgid)) 66 /* validate pid + tgid matches */ 67 out->valid[0] = (((uint64_t)pid << 32) | tgid) == pid_tgid; 71 tgid) == real_tgid; 74 tgid) == real_tgid; 77 tgid) == real_tgid; 80 tgid) [all...] |
H A D | test_core_retro.c | 8 int tgid; member in struct:task_struct 29 int tgid = BPF_CORE_READ(task, tgid); local 38 bpf_map_update_elem(&results, &zero, &tgid, 0);
|
H A D | bpf_mod_race.c | 8 pid_t tgid; member in struct:__anon4955 22 return task->tgid == bpf_mod_race_config.tgid;
|
H A D | bpf_iter_vma_offset.c | 25 if (last_tgid != task->tgid) 27 last_tgid = task->tgid; 29 if (task->tgid != pid)
|
H A D | test_ns_current_pid_tgid.c | 22 user_tgid = nsdata.tgid;
|
H A D | test_skb_helpers.c | 25 bpf_probe_read_kernel(&tpid , sizeof(tpid), &task->tgid);
|
H A D | test_task_under_cgroup.c | 33 if (local_pid == acquired->tgid) 41 remote_pid = acquired->tgid;
|
H A D | bpf_iter_tasks.c | 31 BPF_SEQ_PRINTF(seq, " tgid gid\n"); 33 BPF_SEQ_PRINTF(seq, "%8d %8d\n", task->tgid, task->pid); 84 BPF_SEQ_PRINTF(seq, " tgid gid data\n"); 86 BPF_SEQ_PRINTF(seq, "%8d %8d %8d\n", task->tgid, task->pid, user_data);
|
H A D | access_map_in_map.c | 42 int tgid = 0; variable 49 if ((bpf_get_current_pid_tgid() >> 32) != tgid)
|
H A D | bpf_iter_bpf_sk_storage_helpers.c | 44 *sock_tgid = task->tgid;
|
H A D | timer_crash.c | 35 if (bpf_get_current_task_btf()->tgid != pid)
|
H A D | iters_task.c | 47 if (pos->tgid == target_pid)
|
/linux-master/include/linux/ |
H A D | usermode_driver.h | 12 struct pid *tgid; member in struct:umd_info
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | ns_current_pid_tgid.c | 24 pid_t tgid, pid; local 32 tgid = getpid(); 51 ASSERT_EQ(bss->user_tgid, tgid, "tgid");
|
/linux-master/fs/proc/ |
H A D | self.c | 16 pid_t tgid = task_tgid_nr_ns(current, ns); local 19 if (!tgid) 25 sprintf(name, "%u", tgid);
|
H A D | thread_self.c | 16 pid_t tgid = task_tgid_nr_ns(current, ns); local 25 sprintf(name, "%u/task/%u", tgid, pid);
|
/linux-master/arch/powerpc/kvm/ |
H A D | trace_hv.h | 415 __field(pid_t, tgid) 422 __entry->tgid = current->tgid; 425 TP_printk("%s runner_vcpu==%d runnable=%d tgid=%d", 427 __entry->runner_vcpu, __entry->n_runnable, __entry->tgid) 439 __field(pid_t, tgid) 446 __entry->tgid = current->tgid; 449 TP_printk("%s runner_vcpu=%d runnable=%d tgid=%d", 451 __entry->runner_vcpu, __entry->n_runnable, __entry->tgid) [all...] |
/linux-master/tools/perf/util/ |
H A D | namespaces.c | 63 static int nsinfo__get_nspid(pid_t *tgid, pid_t *nstgid, bool *in_pidns, const char *path) argument 75 /* Use tgid if CONFIG_PID_NS is not defined. */ 77 *tgid = (pid_t)strtol(strrchr(statln, '\t'), NULL, 10); 78 *nstgid = *tgid; 85 * If innermost tgid is not the first, process is in a different 129 * attempt to work out the innermost tgid for the process. 134 rv = nsinfo__get_nspid(&RC_CHK_ACCESS(nsi)->tgid, &RC_CHK_ACCESS(nsi)->nstgid, 166 RC_CHK_ACCESS(nsi)->tgid = pid; 197 RC_CHK_ACCESS(nnsi)->tgid = nsinfo__tgid(nsi); 256 return RC_CHK_ACCESS(nsi)->tgid; 371 pid_t tgid = 0, nstgid = 0; local [all...] |
/linux-master/kernel/ |
H A D | usermode_driver.c | 133 umd_info->tgid = get_pid(task_tgid(current)); 154 put_pid(info->tgid); 155 info->tgid = NULL; 165 * is populated with two pipes and a tgid of the process. The caller is 167 * tgid, and closing the pipes when user process is no longer needed. 175 if (WARN_ON_ONCE(info->tgid))
|
/linux-master/tools/perf/util/bpf_skel/ |
H A D | off_cpu.bpf.c | 29 __u32 tgid; member in struct:offcpu_key 164 pid = t->tgid; 215 .tgid = next->tgid, 249 pid = BPF_CORE_READ(task, tgid); 256 pid = task->tgid;
|
/linux-master/drivers/infiniband/core/ |
H A D | umem_odp.c | 136 umem_odp->tgid = get_task_pid(current->group_leader, PIDTYPE_PID); 139 put_pid(umem_odp->tgid); 194 odp_data->tgid = get_pid(root->tgid); 202 put_pid(odp_data->tgid); 250 umem_odp->tgid = get_task_pid(current->group_leader, PIDTYPE_PID); 257 put_pid(umem_odp->tgid); 280 put_pid(umem_odp->tgid); 372 owning_process = get_pid_task(umem_odp->tgid, PIDTYPE_PID);
|