/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/ptrace/ |
D | ptrace-hwbreak.c | 51 static void get_dbginfo(pid_t child_pid, struct ppc_debug_info *dbginfo) in get_dbginfo() argument 53 if (ptrace(PPC_PTRACE_GETHWDBGINFO, child_pid, NULL, dbginfo)) { in get_dbginfo() 199 static void check_success(pid_t child_pid, const char *name, const char *type, in check_success() argument 211 ptrace(PTRACE_GETSIGINFO, child_pid, NULL, &siginfo); in check_success() 228 ptrace(PTRACE_SINGLESTEP, child_pid, NULL, 0); in check_success() 233 static void ptrace_set_debugreg(pid_t child_pid, unsigned long wp_addr) in ptrace_set_debugreg() argument 235 if (ptrace(PTRACE_SET_DEBUGREG, child_pid, 0, wp_addr)) { in ptrace_set_debugreg() 241 static int ptrace_sethwdebug(pid_t child_pid, struct ppc_hw_breakpoint *info) in ptrace_sethwdebug() argument 243 int wh = ptrace(PPC_PTRACE_SETHWDEBUG, child_pid, 0, info); in ptrace_sethwdebug() 252 static void ptrace_delhwdebug(pid_t child_pid, int wh) in ptrace_delhwdebug() argument [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/breakpoints/ |
D | breakpoint_test.c | 33 static pid_t child_pid; variable 46 ret = ptrace(PTRACE_POKEUSER, child_pid, in set_breakpoint_addr() 88 dr7 = ptrace(PTRACE_PEEKUSER, child_pid, in toggle_breakpoint() 108 ret = ptrace(PTRACE_POKEUSER, child_pid, in toggle_breakpoint() 276 child_nr_tests = ptrace(PTRACE_PEEKDATA, child_pid, in check_success() 280 if (ptrace(PTRACE_POKEDATA, child_pid, &trapped, 1)) in check_success() 299 ptrace(PTRACE_CONT, child_pid, NULL, 0); in launch_instruction_breakpoints() 321 ptrace(PTRACE_CONT, child_pid, NULL, 0); in launch_watchpoints() 377 ptrace(PTRACE_CONT, child_pid, NULL, 0); in launch_tests() 381 ptrace(PTRACE_CONT, child_pid, NULL, 0); in launch_tests() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/pidfd/ |
D | pidfd_poll_test.c | 49 int child_pid = fork(); in main() local 51 if (child_pid < 0) { in main() 61 if (child_pid == 0) { in main() 68 pidfd = sys_pidfd_open(child_pid, 0); in main() 108 if (waitpid(child_pid, NULL, 0) < 0) in main()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
D | test_lsm.c | 40 int child_pid, child_status; in exec_cmd() local 42 child_pid = fork(); in exec_cmd() 43 if (child_pid == 0) { in exec_cmd() 47 } else if (child_pid > 0) { in exec_cmd() 48 waitpid(child_pid, &child_status, 0); in exec_cmd()
|
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/pmu/ |
D | lib.c | 73 int wait_for_child(pid_t child_pid) in wait_for_child() argument 77 if (waitpid(child_pid, &rc, 0) == -1) { in wait_for_child() 90 int kill_child_and_wait(pid_t child_pid) in kill_child_and_wait() argument 92 kill(child_pid, SIGTERM); in kill_child_and_wait() 94 return wait_for_child(child_pid); in kill_child_and_wait()
|
D | lib.h | 24 extern int kill_child_and_wait(pid_t child_pid); 25 extern int wait_for_child(pid_t child_pid);
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
D | fin_ack_lat.c | 15 static int child_pid; variable 106 kill(SIGTERM, child_pid); in sig_handler() 144 child_pid = fork(); in main() 145 if (!child_pid) in main()
|
/kernel/linux/linux-5.10/tools/testing/selftests/seccomp/ |
D | seccomp_bpf.c | 850 pid_t child_pid; in TEST() local 852 child_pid = fork(); in TEST() 853 ASSERT_LE(0, child_pid); in TEST() 854 if (child_pid == 0) { in TEST() 859 ASSERT_EQ(child_pid, waitpid(child_pid, &status, 0)); in TEST() 869 pid_t child_pid; in TEST() local 871 child_pid = fork(); in TEST() 872 ASSERT_LE(0, child_pid); in TEST() 873 if (child_pid == 0) { in TEST() 878 ASSERT_EQ(child_pid, waitpid(child_pid, &status, 0)); in TEST() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/pmu/ebb/ |
D | task_event_vs_ebb_test.c | 22 static int setup_child_event(struct event *event, pid_t child_pid) in setup_child_event() argument 30 FAIL_IF(event_open_with_pid(event, child_pid)); in setup_child_event()
|
D | task_event_pinned_vs_ebb_test.c | 22 static int setup_child_event(struct event *event, pid_t child_pid) in setup_child_event() argument 32 FAIL_IF(event_open_with_pid(event, child_pid)); in setup_child_event()
|
/kernel/linux/linux-5.10/tools/power/cpupower/utils/idle_monitor/ |
D | cpupower-monitor.c | 286 pid_t child_pid; in fork_it() local 289 child_pid = fork(); in fork_it() 295 if (!child_pid) { in fork_it() 300 if (child_pid == -1) { in fork_it() 307 if (waitpid(child_pid, &status, 0) == -1) { in fork_it()
|
/kernel/linux/linux-5.10/drivers/hid/ |
D | hid-elo.c | 194 u16 child_vid, child_pid; in elo_broken_firmware() local 205 child_pid = le16_to_cpu(child->descriptor.idProduct); in elo_broken_firmware() 215 switch (child_pid) { in elo_broken_firmware()
|
/kernel/linux/linux-5.10/tools/testing/selftests/vm/ |
D | protection_keys.c | 1312 pid_t child_pid; in test_ptrace_of_child() local 1328 child_pid = fork_lazy_child(); in test_ptrace_of_child() 1329 dprintf1("[%d] child pid: %d\n", getpid(), child_pid); in test_ptrace_of_child() 1331 ret = ptrace(PTRACE_ATTACH, child_pid, ignored, ignored); in test_ptrace_of_child() 1336 ret = waitpid(child_pid, &status, WUNTRACED); in test_ptrace_of_child() 1337 if ((ret != child_pid) || !(WIFSTOPPED(status))) { in test_ptrace_of_child() 1357 ret = ptrace(PTRACE_PEEKDATA, child_pid, ptr, ignored); in test_ptrace_of_child() 1367 ret = ptrace(PTRACE_PEEKDATA, child_pid, plain_ptr, ignored); in test_ptrace_of_child() 1374 ret = ptrace(PTRACE_DETACH, child_pid, ignored, 0); in test_ptrace_of_child() 1377 ret = kill(child_pid, SIGKILL); in test_ptrace_of_child()
|
/kernel/linux/linux-5.10/tools/testing/selftests/cgroup/ |
D | test_core.c | 79 int child_pid; in test_cgcore_destroy() local 91 child_pid = cg_run_nowait(cg_test, alloc_and_touch_anon_noexit, in test_cgcore_destroy() 94 if (child_pid < 0) in test_cgcore_destroy() 116 if (waitpid(child_pid, NULL, 0) < 0) in test_cgcore_destroy()
|
/kernel/linux/linux-5.10/tools/perf/ |
D | builtin-stat.c | 156 static volatile pid_t child_pid = -1; variable 633 child_exited = waitpid(child_pid, &status, WNOHANG); in dispatch_events() 705 if (child_pid != -1) in stat_handle_error() 706 kill(child_pid, SIGTERM); in stat_handle_error() 732 child_pid = evsel_list->workload.pid; in __run_perf_stat() 884 if (child_pid != -1) { in __run_perf_stat() 886 kill(child_pid, SIGTERM); in __run_perf_stat() 887 wait4(child_pid, &status, 0, &stat_config.ru_data); in __run_perf_stat() 984 if ((child_pid == -1) || stat_config.interval) in skip_signal() 994 child_pid = -1; in skip_signal() [all …]
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
D | cn_proc.h | 48 __kernel_pid_t child_pid; member
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
D | cn_proc.h | 76 __kernel_pid_t child_pid; member
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
D | cn_proc.h | 39 __kernel_pid_t child_pid; member
|
/kernel/linux/linux-5.10/include/trace/events/ |
D | sched.h | 302 __field( pid_t, child_pid ) 309 __entry->child_pid = child->pid; 314 __entry->child_comm, __entry->child_pid)
|
/kernel/linux/linux-5.10/tools/testing/ktest/ |
D | ktest.pl | 2708 my $child_pid; 2725 $child_pid = fork; 2727 child_run_test if (!$child_pid); 2777 kill 9, $child_pid; 2780 waitpid $child_pid, 0;
|
/kernel/linux/linux-5.10/drivers/connector/ |
D | cn_proc.c | 89 ev->event_data.fork.child_pid = task->pid; in proc_fork_connector()
|
/kernel/linux/linux-5.10/Documentation/ia64/ |
D | err_inject.rst | 752 pid_t child_pid[MAX_TASK_NUM]; 940 child_pid[i]=pid; 943 waitpid(child_pid[i], NULL, 0);
|
/kernel/linux/linux-5.10/tools/perf/scripts/python/ |
D | sched-migration.py | 394 common_callchain, parent_comm, parent_pid, child_comm, child_pid): argument
|
/kernel/linux/linux-5.10/tools/power/x86/turbostat/ |
D | turbostat.c | 5652 pid_t child_pid; in fork_it() local 5664 child_pid = fork(); in fork_it() 5665 if (!child_pid) { in fork_it() 5672 if (child_pid == -1) in fork_it() 5677 if (waitpid(child_pid, &status, 0) == -1) in fork_it()
|