| /OK3568_Linux_fs/kernel/tools/testing/selftests/powerpc/ptrace/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/breakpoints/ |
| H A 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 …]
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-webserver/recipes-httpd/nginx/files/ |
| H A D | nginx-fix-pidfile.patch | 27 + ngx_int_t child_pid = NGX_BUSY; 36 + child_pid--; 40 + child_pid = ngx_daemon(cycle->log); 41 + if (child_pid == NGX_ERROR) { 52 + * after the fork() set ngx_pid to the child_pid, which gets 56 + if (child_pid < NGX_OK || child_pid > NGX_OK) { 57 + ngx_pid = child_pid > NGX_OK ? child_pid : ngx_pid; 62 + if (child_pid > NGX_OK) {
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/pidfd/ |
| H A 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()
|
| /OK3568_Linux_fs/external/rk_pcba_test/ |
| H A D | echo_camera_test.c | 56 pid_t child_pid; in main() local 58 child_pid = fork(); in main() 59 if (child_pid < 0) { in main() 61 return child_pid; in main() 62 } else if (child_pid == 0) { in main()
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/prog_tests/ |
| H A 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()
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/powerpc/pmu/ |
| H A 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()
|
| H A D | lib.h | 24 extern int kill_child_and_wait(pid_t child_pid); 25 extern int wait_for_child(pid_t child_pid);
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/net/ |
| H A 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()
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/seccomp/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/tools/power/cpupower/utils/idle_monitor/ |
| H A 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()
|
| /OK3568_Linux_fs/external/xserver/hw/xquartz/mach-startup/ |
| H A D | bundle_trampoline.c | 83 pid_t child_pid; in main() local 84 assert(posix_spawn(&child_pid, executable, NULL, &attr, argv, envp) == 0); in main()
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/powerpc/pmu/ebb/ |
| H A 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()
|
| H A 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()
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/vm/ |
| H A 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()
|
| /OK3568_Linux_fs/kernel/drivers/hid/ |
| H A 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()
|
| /OK3568_Linux_fs/kernel/tools/perf/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/cgroup/ |
| H A D | test_core.c | 82 int child_pid; in test_cgcore_destroy() local 94 child_pid = cg_run_nowait(cg_test, alloc_and_touch_anon_noexit, in test_cgcore_destroy() 97 if (child_pid < 0) in test_cgcore_destroy() 119 if (waitpid(child_pid, NULL, 0) < 0) in test_cgcore_destroy()
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/ |
| H A D | cn_proc.h | 76 __kernel_pid_t child_pid; member
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/ |
| H A D | cn_proc.h | 76 __kernel_pid_t child_pid; member
|
| /OK3568_Linux_fs/kernel/include/uapi/linux/ |
| H A D | cn_proc.h | 76 __kernel_pid_t child_pid; member
|
| /OK3568_Linux_fs/kernel/include/trace/events/ |
| H A D | sched.h | 300 __field( pid_t, child_pid ) 307 __entry->child_pid = child->pid; 312 __entry->child_comm, __entry->child_pid)
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-extended/polkit/polkit/ |
| H A D | 0003-Added-support-for-duktape-as-JS-engine.patch | 829 + if (data->child_pid != 0) 832 + kill (data->child_pid, SIGTERM); 843 + source = g_child_watch_source_new (data->child_pid); 850 + data->child_pid = 0; 968 + data->child_pid = 0; 1060 + &(data->child_pid), 1082 + data->child_watch_source = g_child_watch_source_new (data->child_pid); 1391 + GPid child_pid; 3064 - GPid child_pid; 3108 - if (data->child_pid != 0) [all …]
|
| /OK3568_Linux_fs/kernel/tools/testing/ktest/ |
| H A 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;
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/filesystems/incfs/ |
| H A D | incfs_test.c | 1509 pid_t child_pid = flush_and_fork(); in concurrent_reads_and_writes_test() local 1511 if (child_pid == 0) { in concurrent_reads_and_writes_test() 1522 } else if (child_pid > 0) { in concurrent_reads_and_writes_test() 1523 child_pids[i] = child_pid; in concurrent_reads_and_writes_test() 1856 pid_t child_pid = flush_and_fork(); in child_procs_waiting_for_data_test() local 1858 if (child_pid == 0) { in child_procs_waiting_for_data_test() 1869 } else if (child_pid > 0) { in child_procs_waiting_for_data_test() 1870 child_pids[i] = child_pid; in child_procs_waiting_for_data_test()
|