/linux-master/tools/testing/selftests/powerpc/dexcr/ |
H A D | hashchk_test.c | 118 pid_t pid; local 128 pid = fork(); 129 if (pid == 0) { 137 await_child_success(pid); 157 pid_t pid; local 166 pid = fork(); 167 if (pid == 0) { 173 await_child_success(pid); 192 pid_t pid; local 204 pid [all...] |
/linux-master/tools/tracing/rtla/src/ |
H A D | timerlat_u.c | 69 err_msg("Error setting timerlat u cgroup pid\n"); 86 debug_msg("User-space timerlat pid %d on cpu %d\n", gettid(), cpu); 97 debug_msg("Leaving timerlat pid %d on cpu %d\n", gettid(), cpu); 145 pid_t pid; local 158 pid = fork(); 161 if (!pid) { 176 if (pid == -1) { 183 procs[i] = pid; 188 pid = waitpid(-1, &wstatus, WNOHANG); 189 if (pid ! [all...] |
/linux-master/tools/testing/selftests/breakpoints/ |
H A D | step_after_suspend_test.c | 53 pid_t pid = fork(); local 56 if (pid < 0) { 60 if (pid == 0) 63 wpid = waitpid(pid, &status, __WALL); 64 if (wpid != pid) { 78 if (ptrace(PTRACE_SINGLESTEP, pid, NULL, NULL) < 0) { 90 wpid = waitpid(pid, &status, __WALL); 91 if (wpid != pid) { 110 if (ptrace(PTRACE_CONT, pid, NULL, NULL) < 0) { 116 wpid = waitpid(pid, [all...] |
/linux-master/tools/testing/selftests/kvm/ |
H A D | hardware_disable_test.c | 124 void wait_for_child_setup(pid_t pid) argument 138 if (pid != waitpid(pid, &status, WNOHANG)) 158 pid_t pid; local 164 pid = fork(); 165 TEST_ASSERT(pid >= 0, "%s: unable to fork", __func__); 166 if (pid == 0) 170 wait_for_child_setup(pid); 174 r = waitpid(pid, &s, WNOHANG); 175 TEST_ASSERT(r != pid, [all...] |
/linux-master/arch/um/os-Linux/ |
H A D | process.c | 27 unsigned long os_process_pc(int pid) argument 33 sprintf(proc_stat, "/proc/%d/stat", pid); 59 int os_process_parent(int pid) argument 65 if (pid == -1) 68 snprintf(stat, sizeof(stat), "/proc/%d/stat", pid); 93 void os_alarm_process(int pid) argument 95 kill(pid, SIGALRM); 98 void os_stop_process(int pid) argument 100 kill(pid, SIGSTOP); 103 void os_kill_process(int pid, in argument 115 os_kill_ptraced_process(int pid, int reap_child) argument [all...] |
/linux-master/tools/perf/tests/ |
H A D | hists_link.c | 18 u32 pid; member in struct:sample 28 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_KERNEL_SCHEDULE, }, 30 { .pid = FAKE_PID_PERF2, .ip = FAKE_IP_PERF_MAIN, }, 32 { .pid = FAKE_PID_PERF2, .ip = FAKE_IP_PERF_CMD_RECORD, }, 34 { .pid = FAKE_PID_BASH, .ip = FAKE_IP_BASH_XMALLOC, }, 36 { .pid = FAKE_PID_BASH, .ip = FAKE_IP_LIBC_MALLOC, }, 42 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_PERF_RUN_COMMAND, }, 44 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_LIBC_MALLOC, }, 46 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_KERNEL_PAGE_FAULT, }, 48 { .pid [all...] |
/linux-master/tools/perf/scripts/python/ |
H A D | netdev-times.py | 142 event['pid'], event['comm'])) 232 def irq__softirq_entry(name, context, cpu, sec, nsec, pid, comm, callchain, vec): 235 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec) 238 def irq__softirq_exit(name, context, cpu, sec, nsec, pid, comm, callchain, vec): 241 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec) 244 def irq__softirq_raise(name, context, cpu, sec, nsec, pid, comm, callchain, vec): 247 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec) 250 def irq__irq_handler_entry(name, context, cpu, sec, nsec, pid, comm, 252 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, 256 def irq__irq_handler_exit(name, context, cpu, sec, nsec, pid, com [all...] |
H A D | syscall-counts-by-pid.py | 1 # system call counts, by pid 19 usage = "perf script -s syscall-counts-by-pid.py [comm]\n"; 61 print("\nsyscall events by comm/pid:\n") 63 print("%-40s %10s" % ("comm [pid]/syscalls", "count")) 70 for pid in pid_keys: 71 print("\n%s [%d]" % (comm, pid)) 72 id_keys = syscalls[comm][pid].keys() 73 for id, val in sorted(syscalls[comm][pid].items(),
|
/linux-master/arch/x86/um/os-Linux/ |
H A D | tls.c | 48 int os_set_thread_area(user_desc_t *info, int pid) argument 52 ret = ptrace(PTRACE_SET_THREAD_AREA, pid, info->entry_number, 59 int os_get_thread_area(user_desc_t *info, int pid) argument 63 ret = ptrace(PTRACE_GET_THREAD_AREA, pid, info->entry_number,
|
/linux-master/arch/um/drivers/ |
H A D | slirp.h | 23 int pid; member in struct:slirp_data
|
H A D | ubd_user.c | 30 int pid, fds[2], err; local 50 pid = clone(io_thread, (void *) sp, CLONE_FILES | CLONE_VM, NULL); 51 if(pid < 0){ 57 return(pid);
|
H A D | xterm_kern.c | 17 int pid; member in struct:xterm_wait 26 fd = os_rcv_fd(xterm->fd, &xterm->pid); 49 .pid = -1, 71 *pid_out = data->pid;
|
/linux-master/include/keys/ |
H A D | request_key_auth-type.h | 23 pid_t pid; member in struct:request_key_auth
|
/linux-master/tools/lib/perf/include/internal/ |
H A D | threadmap.h | 10 pid_t pid; member in struct:thread_map_data
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | test_skmsg_load_helpers.c | 32 __u32 pid, tpid; local 35 pid = bpf_get_current_pid_tgid() >> 32; 39 *sk_stg = pid; 41 if (pid != tpid)
|
H A D | test_d_path.c | 25 pid_t pid = bpf_get_current_pid_tgid() >> 32; local 31 if (pid != my_pid) 46 pid_t pid = bpf_get_current_pid_tgid() >> 32; local 52 if (pid != my_pid)
|
H A D | test_user_ringbuf.h | 29 int pid; member in struct:sample
|
H A D | test_uprobe_autoattach.c | 94 int pid = bpf_get_current_pid_tgid() >> 32; local 97 if (test_pid != pid) 107 int pid = bpf_get_current_pid_tgid() >> 32; local 110 if (test_pid != pid)
|
/linux-master/tools/testing/selftests/powerpc/tm/ |
H A D | tm-poison.c | 28 int cpu, pid; local 46 pid = fork(); 47 if (!pid) { 172 kill(pid, SIGKILL);
|
/linux-master/tools/testing/selftests/bpf/bpf_testmod/ |
H A D | bpf_testmod-events.h | 16 __field(pid_t, pid) 22 __entry->pid = task->pid; 27 TP_printk("pid=%d comm=%s off=%llu len=%zu", 28 __entry->pid, __entry->comm, __entry->off, __entry->len)
|
/linux-master/tools/testing/selftests/proc/ |
H A D | proc-uptime-002.c | 35 static inline int sys_sched_getaffinity(pid_t pid, unsigned int len, unsigned long *m) argument 37 return syscall(SYS_sched_getaffinity, pid, len, m); 40 static inline int sys_sched_setaffinity(pid_t pid, unsigned int len, unsigned long *m) argument 42 return syscall(SYS_sched_setaffinity, pid, len, m);
|
/linux-master/tools/testing/selftests/hid/tests/ |
H A D | conftest.py | 72 vid, pid = m.groups() 74 pid = int(pid, 16) 75 params.append([module.name.replace(".ko", ""), vid, pid]) 76 ids.append(f"{module.name} {vid:04x}:{pid:04x}")
|
/linux-master/tools/testing/selftests/pidfd/ |
H A D | pidfd.h | 54 * The kernel reserves 300 pids via RESERVED_PIDS in kernel/pid.c 55 * That means, when it wraps around any pid < 300 will be skipped. 56 * So we need to use a pid > 300 in order to test recycling. 71 static inline int wait_for_pid(pid_t pid) argument 76 ret = waitpid(pid, &status, 0); 96 static inline int sys_pidfd_open(pid_t pid, unsigned int flags) argument 98 return syscall(__NR_pidfd_open, pid, flags);
|
/linux-master/arch/powerpc/include/asm/nohash/ |
H A D | kup-booke.h | 41 mtspr(SPRN_PID, current->thread.pid); 49 mtspr(SPRN_PID, current->thread.pid); 79 uaccess_begin_booke(current->thread.pid); 99 uaccess_begin_booke(current->thread.pid);
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | task_under_cgroup.c | 15 pid_t pid; local 44 pid = fork(); 45 if (pid == 0) 48 ret = (pid == -1);
|