/linux-master/samples/bpf/ |
H A D | test_overhead_kprobe.bpf.c | 21 u32 pid; local 25 pid = BPF_CORE_READ(tsk, pid);
|
H A D | trace_output.bpf.c | 16 u64 pid; member in struct:S 20 data.pid = bpf_get_current_pid_tgid();
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | test_fsverity.c | 27 __u32 pid; local 31 pid = bpf_get_current_pid_tgid() >> 32; 32 if (pid != monitored_pid)
|
H A D | bpf_syscall_macro.c | 36 pid_t pid = bpf_get_current_pid_tgid() >> 32; local 39 if (pid != filter_pid) 71 pid_t pid = bpf_get_current_pid_tgid() >> 32; local 73 if (pid != filter_pid) 95 pid_t pid = bpf_get_current_pid_tgid() >> 32; local 97 if (pid != filter_pid)
|
H A D | test_varlen.c | 45 int pid = bpf_get_current_pid_tgid() >> 32; local 50 if (test_pid != pid || !capture) 75 int pid = bpf_get_current_pid_tgid() >> 32; local 80 if (test_pid != pid || !capture) 101 int pid = bpf_get_current_pid_tgid() >> 32; local 106 if (test_pid != pid || !capture) 129 int pid = bpf_get_current_pid_tgid() >> 32; local 134 if (test_pid != pid || !capture)
|
H A D | test_skc_to_unix_sock.c | 15 pid_t pid = bpf_get_current_pid_tgid() >> 32; local 19 if (pid != my_pid)
|
/linux-master/tools/testing/selftests/drivers/net/dsa/ |
H A D | test_bridge_fdb_stress.sh | 26 kill $pid && wait $pid &> /dev/null 41 pid=$!
|
/linux-master/tools/testing/selftests/timens/ |
H A D | exec.c | 25 pid_t pid; local 61 pid = fork(); 62 if (pid < 0) 65 if (pid == 0) { 84 if (waitpid(pid, &status, 0) != pid)
|
H A D | futex.c | 66 pid_t pid; local 89 pid = fork(); 90 if (pid < 0) 92 if (pid == 0) { 103 if (waitpid(pid, &status, 0) != pid)
|
/linux-master/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_mksstat.h | 34 /* Reservation marker for mksstat pid's */ 102 .slot = vmw_mksstat_get_kern_slot(current->pid, dev_priv) \ 116 const pid_t pid = atomic_cmpxchg(&dev_priv->mksstat_kern_pids[_##kern_cntr.slot], current->pid, MKSSTAT_PID_RESERVED); \ 119 if (pid == current->pid) { \ 134 atomic_set(&dev_priv->mksstat_kern_pids[_##kern_cntr.slot], current->pid); \
|
/linux-master/tools/testing/selftests/proc/ |
H A D | proc-empty-vm.c | 21 * /proc/${pid}/maps 22 * /proc/${pid}/numa_maps 23 * /proc/${pid}/smaps 24 * /proc/${pid}/smaps_rollup 173 pid_t pid; local 176 pid = fork(); 177 if (pid < 0) { 181 if (pid == 0) { 206 waitpid(pid, &wstatus, 0); 216 static int test_proc_pid_maps(pid_t pid) argument 238 test_proc_pid_numa_maps(pid_t pid) argument 261 test_proc_pid_smaps(pid_t pid) argument 325 test_proc_pid_smaps_rollup(pid_t pid) argument 369 test_proc_pid_statm(pid_t pid) argument 465 pid_t pid = fork(); local [all...] |
/linux-master/tools/perf/util/ |
H A D | values.h | 10 u32 *pid, *tid; member in struct:perf_read_values 22 u32 pid, u32 tid,
|
/linux-master/drivers/i3c/master/mipi-i3c-hci/ |
H A D | dct_v1.c | 21 u64 *pid, unsigned int *dcr, unsigned int *bcr) 32 *pid = ((u64)dct_entry_data[0]) << (47 - 32 + 1) | 20 i3c_hci_dct_get_val(struct i3c_hci *hci, unsigned int dct_idx, u64 *pid, unsigned int *dcr, unsigned int *bcr) argument
|
/linux-master/tools/testing/selftests/arm64/mte/ |
H A D | check_gcr_el1_cswitch.c | 30 pid_t pid = *((pid_t *)x); local 37 srand(time(NULL) ^ (pid << 16) ^ (tid << 16)); 69 int execute_test(pid_t pid) argument 76 execute_thread, (void *)&pid); 90 pid_t pid; local 96 pid = fork(); 98 if (pid < 0) 101 if (pid == 0) {
|
/linux-master/tools/testing/selftests/powerpc/ptrace/ |
H A D | ptrace-gpr.c | 121 pid_t pid; local 133 pid = fork(); 134 if (pid < 0) { 138 if (pid == 0) 141 if (pid) { 146 ret = trace_gpr(pid); 148 kill(pid, SIGTERM); 159 if (ret != pid) {
|
H A D | ptrace-tm-spd-gpr.c | 118 pid_t pid; local 124 pid = fork(); 125 if (pid < 0) { 130 if (pid == 0) 133 if (pid) { 140 ret = trace_tm_spd_gpr(pid); 142 kill(pid, SIGTERM); 152 if (ret != pid) {
|
H A D | ptrace-tm-gpr.c | 112 pid_t pid; local 118 pid = fork(); 119 if (pid < 0) { 123 if (pid == 0) 126 if (pid) { 131 ret = trace_tm_gpr(pid); 133 kill(pid, SIGTERM); 141 if (ret != pid) {
|
H A D | ptrace-tm-spd-vsx.c | 128 pid_t pid; local 142 pid = fork(); 143 if (pid < 0) { 148 if (pid == 0) 151 if (pid) { 156 ret = trace_tm_spd_vsx(pid); 158 kill(pid, SIGKILL); 167 if (ret != pid) {
|
H A D | ptrace-tm-vsx.c | 112 pid_t pid; local 125 pid = fork(); 126 if (pid < 0) { 131 if (pid == 0) 134 if (pid) { 139 ret = trace_tm_vsx(pid); 141 kill(pid, SIGKILL); 150 if (ret != pid) {
|
H A D | ptrace-tm-spr.c | 113 pid_t pid; local 120 pid = fork(); 121 if (pid < 0) { 126 if (pid == 0) 129 if (pid) { 135 ret = trace_tm_spr(pid); 137 kill(pid, SIGKILL); 150 if (ret != pid) {
|
/linux-master/tools/perf/bench/ |
H A D | syscall.c | 40 pid_t pid = fork(); local 42 if (pid < 0) { 45 } else if (pid == 0) { 48 if (waitpid(pid, NULL, 0) < 0) { 59 pid_t pid = fork(); local 61 if (pid < 0) { 64 } else if (pid == 0) { 69 if (waitpid(pid, NULL, 0) < 0) {
|
/linux-master/kernel/ |
H A D | exit.h | 6 pid_t pid; member in struct:waitid_info 15 struct pid *wo_pid;
|
/linux-master/tools/testing/selftests/damon/ |
H A D | sysfs_update_schemes_tried_regions_hang.py | 14 targets=[_damon_sysfs.DamonTarget(pid=proc.pid)],
|
/linux-master/kernel/bpf/ |
H A D | bpf_task_storage.c | 7 #include <linux/pid.h> 95 struct pid *pid; local 99 pid = pidfd_get_pid(fd, &f_flags); 100 if (IS_ERR(pid)) 101 return ERR_CAST(pid); 107 task = pid_task(pid, PIDTYPE_PID); 116 put_pid(pid); 119 put_pid(pid); 129 struct pid *pi local 180 struct pid *pid; local [all...] |
/linux-master/tools/perf/scripts/perl/ |
H A D | rwtop.pl | 8 # pid. If an [interval] arg is specified, the display will be 129 printf("\nread counts by pid:\n\n"); 131 printf("%6s %20s %10s %10s %10s\n", "pid", "comm", 136 foreach my $pid (sort { ($reads{$b}{bytes_read} || 0) <=> 138 my $comm = $reads{$pid}{comm} || ""; 139 my $total_reads = $reads{$pid}{total_reads} || 0; 140 my $bytes_requested = $reads{$pid}{bytes_requested} || 0; 141 my $bytes_read = $reads{$pid}{bytes_read} || 0; 143 printf("%6s %-20s %10s %10s %10s\n", $pid, $comm, 153 printf("\nwrite counts by pid [all...] |