/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/pmu/ebb/ |
H A D | cpu_event_pinned_vs_ebb_test.c | 44 pid_t pid; in cpu_event_pinned_vs_ebb() local 54 pid = fork(); in cpu_event_pinned_vs_ebb() 55 if (pid == 0) { in cpu_event_pinned_vs_ebb() 63 kill_child_and_wait(pid); in cpu_event_pinned_vs_ebb() 77 FAIL_IF(wait_for_child(pid) != 2); in cpu_event_pinned_vs_ebb()
|
/kernel/liteos_a/testsuites/kernel/sample/kernel_extend/cpup/smoke/ |
H A D | It_extend_cpup_002.c | 80 INT32 pid; in Testcase() local 84 pid = LOS_Fork(0, "TestCpupTsk", TaskF01, LOSCFG_BASE_CORE_TSK_DEFAULT_STACK_SIZE); in Testcase() 85 if (pid < 0) { in Testcase() 105 ret = LOS_Wait(pid, NULL, 0, NULL); in Testcase() 106 ICUNIT_ASSERT_EQUAL(ret, pid, ret); in Testcase()
|
/kernel/liteos_a/testsuites/unittest/extended/signal/full/ |
H A D | signal_test_040.cpp | 45 int pid = 0; in TestCase() local 63 pid = fork(); in TestCase() 64 if (pid == 0) { in TestCase() 82 kill(pid, SIGHUP); in TestCase() 84 kill(pid, SIGUSR1); in TestCase()
|
/kernel/liteos_a/testsuites/unittest/extended/signal/smoke/ |
H A D | It_ipc_pipe_004.cpp | 46 pid_t pid = fork(); in TestCase() local 47 if (pid == -1) { in TestCase() 50 } else if (pid == 0) { in TestCase() 73 ret = waitpid(pid, &status, 0); in TestCase() 74 ICUNIT_ASSERT_EQUAL(ret, pid, ret); in TestCase()
|
/kernel/liteos_a/testsuites/unittest/libc/io/full/ |
H A D | IO_test_pselect_002.cpp | 50 pid_t pid; in testcase() local 86 pid = fork(); in testcase() 87 if (pid == 0) { in testcase() 103 retval = kill(pid, SIGALRM); in testcase() 106 retval = kill(pid, SIGUSR1); in testcase()
|
/kernel/liteos_a/testsuites/unittest/process/basic/pthread/smoke/ |
H A D | pthread_test_020.cpp | 84 int ret, pid, status; in TestCase() local 86 pid = fork(); in TestCase() 87 if (pid == 0) { in TestCase() 93 } else if (pid > 0) { in TestCase() 94 waitpid(pid, &status, 0); in TestCase()
|
H A D | pthread_test_026.cpp | 85 int ret, pid, status; in TestCase() local 87 pid = fork(); in TestCase() 88 if (pid == 0) { in TestCase() 94 } else if (pid > 0) { in TestCase() 95 waitpid(pid, &status, 0); in TestCase()
|
/third_party/libuv/test/ |
H A D | test-pipe-close-stdout-read-stdin.c | 57 int pid; in TEST_IMPL() local 67 pid = -1; in TEST_IMPL() 69 pid = fork(); in TEST_IMPL() 72 if (pid == 0) { in TEST_IMPL() 110 waitpid(pid, &status, 0); in TEST_IMPL()
|
/third_party/ltp/testcases/kernel/controllers/cgroup/ |
H A D | cgroup_core02.c | 55 pid_t pid; in test_lesser_ns_open() local 66 pid = ltp_clone(CLONE_NEWCGROUP | CLONE_FILES | CLONE_VM | SIGCHLD, in test_lesser_ns_open() 68 if (pid < 0) { in test_lesser_ns_open() 69 tst_res(TFAIL, "unexpected negative pid %d", pid); in test_lesser_ns_open() 73 SAFE_WAITPID(pid, &status, 0); in test_lesser_ns_open()
|
/third_party/musl/libc-test/src/regression/ |
H A D | pthread_exit-dtor.c | 43 int r, arg=0, pid; in main() local 48 pid = fork(); in main() 49 switch (pid) { in main() 57 if (waitpid(pid, &r, 0) != pid) { in main()
|
/third_party/libinput/test/ |
H A D | test_quirks_files.py | 64 pid = section.get("MatchProduct") 65 if pid is not None: 67 "0x[0-9A-F]{4}", pid 68 ), f"{quirksfile}: {name}: {pid} must be uppercase hex (0xAB12)" 80 pid = int(section.get("MatchProduct", "0x0"), 16) 82 pid not in logitech_receivers
|
/third_party/ltp/testcases/kernel/ipc/semaphore/ |
H A D | sem01.c | 109 pid_t pid; in main() local 137 if ((pid = fork()) < 0) { in main() 141 if (pid) { in main() 143 srand(pid); in main() 145 waitpid(pid, &chstat, 0); in main()
|
/third_party/ltp/testcases/lib/ |
H A D | tst_ns_ifmove.c | 58 int intf_index, pid, rtnetlink_socket; in main() local 66 pid = atoi(argv[2]); in main() 81 RTA_LENGTH(sizeof(pid)); in main() 82 memcpy(RTA_DATA(rta), &pid, sizeof(pid)); in main() local
|
/third_party/ltp/testcases/kernel/syscalls/pipe2/ |
H A D | pipe2_04.c | 25 pid_t pid; in test_pipe2() local 43 pid = SAFE_FORK(); in test_pipe2() 44 if (!pid) { in test_pipe2() 49 if (TST_PROCESS_STATE_WAIT(pid, 'S', 1000) < 0) in test_pipe2() 54 SAFE_KILL(pid, SIGKILL); in test_pipe2()
|
/third_party/ltp/testcases/kernel/syscalls/setpriority/ |
H A D | setpriority01.c | 22 static int pid, uid, user_added; variable 28 {PRIO_PROCESS, &pid}, 29 {PRIO_PGRP, &pid}, 89 pid = SAFE_FORK(); in verify_setpriority() 90 if (pid == 0) { in verify_setpriority()
|
/third_party/ltp/testcases/kernel/syscalls/ipc/msgsnd/ |
H A D | msgsnd05.c | 58 pid_t pid; in do_test() local 66 pid = SAFE_FORK(); in do_test() 67 if (!pid) { in do_test() 73 TST_PROCESS_STATE_WAIT(pid, 'S', 0); in do_test() 74 SAFE_KILL(pid, SIGHUP); in do_test()
|
/third_party/ltp/testcases/kernel/uevents/ |
H A D | uevent.h | 152 static inline void wait_for_pid(int pid) in wait_for_pid() argument 158 ret = waitpid(pid, &status, WNOHANG); in wait_for_pid() 162 if (ret == pid) { in wait_for_pid() 169 SAFE_KILL(pid, SIGKILL); in wait_for_pid() 171 SAFE_WAITPID(pid, NULL, 0); in wait_for_pid()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_send/ |
H A D | 5-2.c | 54 int pid; in main() local 78 if ((pid = fork()) == 0) { in main() 109 kill(pid, SIGABRT); //signal child in main() 116 kill(pid, SIGKILL); //kill child if not gone in main() 124 kill(pid, SIGKILL); //kill child if not gone in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigsuspend/ |
H A D | 1-1.c | 72 pid_t pid; in main() local 73 pid = fork(); in main() 75 if (pid == 0) { in main() 121 kill(pid, SIGUSR2); in main() 129 kill(pid, SIGUSR1); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/ |
H A D | 5-1.c | 57 int pid; in main() local 73 if ((pid = fork()) == 0) { in main() 114 kill(pid, SIGKILL); //kill child in main() 121 kill(pid, SIGKILL); //kill child in main() 132 kill(pid, SIGKILL); //kill child in main()
|
/third_party/musl/libc-test/src/functional/ |
H A D | atexit_dlclose.c | 84 pid_t pid, w; in main() local 88 pid = fork(); in main() 89 if (pid == 0) { // child process in main() 91 } else if (pid > 0) { // parent process in main() 92 w = waitpid(pid, &wstatus, 0); in main()
|
/third_party/pulseaudio/src/modules/gsettings/ |
H A D | module-gsettings.c | 47 u->pid = (pid_t) -1; in pa__init() 61 PA_GSETTINGS_HELPER, NULL, &u->pid)) < 0) in pa__init() 94 if (u->pid != (pid_t) -1) { in pa__done() 95 kill(u->pid, SIGTERM); in pa__done() 98 if (waitpid(u->pid, NULL, 0) >= 0) in pa__done()
|
/third_party/toybox/toys/other/ |
H A D | timeout.c | 35 pid_t pid; 43 fprintf(stderr, "timeout pid %d signal %d\n", TT.pid, TT.nextsig); in handler() 46 kill(TT.pid, TT.nextsig); in handler() 80 if (!(TT.pid = XVFORK())) xexec(toys.optargs+1); in timeout_main() 87 status = xwaitpid(TT.pid); in timeout_main()
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/ |
H A D | mali_linux_trace.h | 35 mali_job_slots_event, TP_PROTO(unsigned int event_id, unsigned int tgid, unsigned int pid, unsigned char job_id), 36 TP_ARGS(event_id, tgid, pid, job_id), 37 TP_STRUCT__entry(__field(unsigned int, event_id) __field(unsigned int, tgid) __field(unsigned int, pid) 39 TP_fast_assign(__entry->event_id = event_id; __entry->tgid = tgid; __entry->pid = pid; __entry->job_id = job_id;), 40 TP_printk("event=%u tgid=%u pid=%u job_id=%u", __entry->event_id, __entry->tgid, __entry->pid, __entry->job_id));
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/midgard/ |
H A D | mali_linux_trace.h | 34 TP_PROTO(unsigned int event_id, unsigned int tgid, unsigned int pid, 36 TP_ARGS(event_id, tgid, pid, job_id), 40 __field(unsigned int, pid) 46 __entry->pid = pid; 49 TP_printk("event=%u tgid=%u pid=%u job_id=%u", 50 __entry->event_id, __entry->tgid, __entry->pid, __entry->job_id)
|