/kernel/liteos_a/testsuites/unittest/process/basic/process/full/ |
H A D | process_test_066.cpp | 40 pid_t pid = getpgrp(); in TestSpawnAttrGroup() local 52 ICUNIT_GOTO_EQUAL(val, pid, val, EXIT); in TestSpawnAttrGroup() 105 pid_t pid; in TestSpawnAttr() local 142 ret = posix_spawn(&pid, "/storage/test_spawn", NULL, &attr, argv1, NULL); in TestSpawnAttr() 145 ret = waitpid(pid, &status, 0); in TestSpawnAttr() 146 ICUNIT_GOTO_EQUAL(ret, pid, ret, EXIT); in TestSpawnAttr()
|
H A D | process_test_067.cpp | 40 pid_t pid = getpgrp(); in TestSpawnAttrGroup() local 52 ICUNIT_GOTO_EQUAL(val, pid, val, EXIT); in TestSpawnAttrGroup() 105 pid_t pid; in TestSpawnAttr() local 143 ret = posix_spawnp(&pid, "/storage/test_spawn", NULL, &attr, argv1, NULL); in TestSpawnAttr() 146 ret = waitpid(pid, &status, 0); in TestSpawnAttr() 147 ICUNIT_GOTO_EQUAL(ret, pid, ret, EXIT); in TestSpawnAttr()
|
/third_party/node/test/report/ |
H A D | test-report-writereport.js | 16 const reports = helper.findReports(process.pid, tmpdir.path); 54 assert.strictEqual(helper.findReports(process.pid, tmpdir.path).length, 0); 65 assert.strictEqual(helper.findReports(process.pid, tmpdir.path).length, 0); 75 assert.strictEqual(helper.findReports(process.pid, tmpdir.path).length, 0); 102 assert.strictEqual(helper.findReports(child.pid, tmpdir.path).length, 0); 113 assert.strictEqual(helper.findReports(child.pid, tmpdir.path).length, 0);
|
/third_party/ltp/testcases/kernel/syscalls/signalfd/ |
H A D | signalfd01.c | 93 pid_t pid; in do_test1() local 127 pid = getpid(); in do_test1() 128 if (kill(pid, sig) == -1) { in do_test1() 184 pid_t pid; in do_test2() local 216 pid = getpid(); in do_test2() 217 if (kill(pid, sig) == -1) { in do_test2()
|
/kernel/linux/linux-6.6/tools/perf/ |
H A D | builtin-daemon.c | 78 int pid; member 128 session->pid = -1; in daemon__add_session() 340 session->pid = fork(); in daemon_session__run() 341 if (session->pid < 0) in daemon_session__run() 343 if (session->pid > 0) { in daemon_session__run() 345 session->name, session->pid, session->run); in daemon_session__run() 400 pid_t pid; in handle_signalfd() local 415 if (session->pid == -1) in handle_signalfd() 418 pid = waitpid(session->pid, in handle_signalfd() 1145 int fd, pid; check_lock() local 1182 int pid, fd; go_background() local [all...] |
/kernel/linux/common_modules/memory_security/include/ |
H A D | jit_process.h | 17 struct result_of_find_process find_process_jit_space(struct rb_root *root, int pid); 18 struct list_head *update_process_jit_space(struct rb_root *root, int pid, unsigned long cookie, unsigned long *err); 19 struct jit_process *delete_process_jit_space(struct rb_root *root, int pid);
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | fexit_sleep.c | 10 int pid = 0; variable 17 if (bpf_get_current_pid_tgid() >> 32 != pid) in nanosleep_fentry() 27 if (bpf_get_current_pid_tgid() >> 32 != pid) in nanosleep_fexit()
|
/third_party/ltp/testcases/kernel/containers/pidns/ |
H A D | pidns_helper.h | 26 int pid, status; in check_newpid() local 31 pid = do_clone_unshare_test(T_CLONE, CLONE_NEWPID, dummy_child, NULL); in check_newpid() 32 if (pid == -1) in check_newpid()
|
/third_party/ltp/lib/newlib_tests/ |
H A D | test22.c | 14 int pid = SAFE_FORK(); in do_test() local 16 if (pid) { in do_test() 17 tst_res(TPASS, "Test main pid"); in do_test() 18 SAFE_WAITPID(pid, NULL, 0); in do_test()
|
/third_party/ltp/lib/ |
H A D | tst_sig_proc.c | 16 pid_t pid, cpid; in create_sig_proc() local 18 pid = getpid(); in create_sig_proc() 24 if (kill(pid, sig) == -1) in create_sig_proc()
|
/third_party/ltp/lib/tests/ |
H A D | tst_checkpoint_wait_timeout.c | 33 int pid; in main() local 39 pid = fork(); in main() 41 switch (pid) { in main()
|
/third_party/ltp/testcases/kernel/containers/sysvipc/ |
H A D | ipcns_helper.h | 31 int pid, status; in check_newipc() local 36 pid = do_clone_unshare_test(T_CLONE, CLONE_NEWIPC, dummy_child, NULL); in check_newipc() 37 if (pid == -1) in check_newipc()
|
/third_party/musl/src/sched/ |
H A D | sched_getscheduler.c | 8 int sched_getscheduler(pid_t pid) in sched_getscheduler() argument 12 r = __syscall(SYS_sched_getscheduler, pid, MUSL_TYPE_PROCESS); in sched_getscheduler() 14 r = __syscall(SYS_sched_getscheduler, pid); in sched_getscheduler()
|
/third_party/musl/libc-test/src/functionalext/sched/ |
H A D | sched_scheduler.c | 30 pid_t pid; in sched_setscheduler_0010() local 31 pid = getpid(); in sched_setscheduler_0010() 34 EXPECT_EQ(sched_setscheduler_0010, sched_setscheduler(pid, sched, NULL), -1); in sched_setscheduler_0010()
|
H A D | sched_getparam.c | 30 pid_t pid; in sched_getparam_0010() local 31 pid = getpid(); in sched_getparam_0010() 32 EXPECT_EQ(sched_getparam_0010, sched_getparam(pid, NULL), -1); in sched_getparam_0010()
|
/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
H A D | getppid.c | 28 pid_t pid = fork(); in getppid_0100() local 29 if (pid == 0) { in getppid_0100() 33 } else if (pid > 0) { in getppid_0100()
|
/third_party/musl/libc-test/src/gwp_asan/ |
H A D | fork_simple_test.c | 36 pid_t pid = fork();
in main() local 37 if (pid < 0) {
in main() 39 } else if (pid == 0) { // child process
in main()
|
/kernel/linux/linux-5.10/Documentation/trace/postprocess/ |
H A D | trace-pagealloc-postprocess.pl | 11 # --ignore-pid Aggregate processes of the same name together 74 'ignore-pid' => \$opt_ignorepid, 137 my $pid = $_[0]; 140 if (open(STAT, "/proc/$pid/stat")) { 153 my $pid = $_[0]; 156 if ($pid == 0) { 163 return "$1-$pid"; 167 my $pid = $_[0]; 171 if ($pid == 0) { 203 my $pid [all...] |
/kernel/linux/linux-6.6/Documentation/trace/postprocess/ |
H A D | trace-pagealloc-postprocess.pl | 11 # --ignore-pid Aggregate processes of the same name together 74 'ignore-pid' => \$opt_ignorepid, 137 my $pid = $_[0]; 140 if (open(STAT, "/proc/$pid/stat")) { 153 my $pid = $_[0]; 156 if ($pid == 0) { 163 return "$1-$pid"; 167 my $pid = $_[0]; 171 if ($pid == 0) { 203 my $pid [all...] |
/kernel/linux/linux-5.10/fs/btrfs/ |
H A D | locking.c | 204 if (eb->lock_recursed && current->pid == eb->lock_owner) in btrfs_set_lock_blocking_read() 228 if (eb->lock_recursed && current->pid == eb->lock_owner) in btrfs_set_lock_blocking_write() 257 current->pid == eb->lock_owner); in __btrfs_tree_read_lock() 259 if (current->pid == eb->lock_owner) { in __btrfs_tree_read_lock() 355 eb->lock_owner = current->pid; in btrfs_try_tree_write_lock() 375 if (eb->lock_recursed && current->pid == eb->lock_owner) { in btrfs_tree_read_unlock() 401 if (eb->lock_recursed && current->pid == eb->lock_owner) { in btrfs_tree_read_unlock_blocking() 427 WARN_ON(eb->lock_owner == current->pid); 440 eb->lock_owner = current->pid;
|
/kernel/linux/linux-5.10/kernel/ |
H A D | umh.c | 129 pid_t pid; in call_usermodehelper_exec_sync() local 133 pid = kernel_thread(call_usermodehelper_exec_async, sub_info, SIGCHLD); in call_usermodehelper_exec_sync() 134 if (pid < 0) in call_usermodehelper_exec_sync() 135 sub_info->retval = pid; in call_usermodehelper_exec_sync() 137 kernel_wait(pid, &sub_info->retval); in call_usermodehelper_exec_sync() 166 pid_t pid; in call_usermodehelper_exec_work() local 172 pid = kernel_thread(call_usermodehelper_exec_async, sub_info, in call_usermodehelper_exec_work() 174 if (pid < 0) { in call_usermodehelper_exec_work() 175 sub_info->retval = pid; in call_usermodehelper_exec_work()
|
/kernel/linux/linux-6.6/tools/testing/selftests/pidfd/ |
H A D | pidfd_fdinfo_test.c | 88 pid_t pid; member 109 ret.pid = __clone2(fn, ret.stack, CHILD_STACK_SIZE, flags, args, &ret.fd); in clone_newns() 111 ret.pid = clone(fn, ret.stack + CHILD_STACK_SIZE, flags, args, &ret.fd); in clone_newns() 114 if (ret.pid < 0) { in clone_newns() 120 ksft_print_msg("New child: %d, fd: %d\n", ret.pid, ret.fd); in clone_newns() 134 r = wait_for_pid(child->pid); in child_join() 139 error_set(err, r, "child %d reported: %d", child->pid, r); in child_join() 227 * in a sibling pid namespace, i.e. a pid namespace it is in child_fdinfo_nspid_test() 258 /* Create a new child in a new pid an in test_pidfd_fdinfo_nspid() [all...] |
/kernel/linux/linux-6.6/kernel/ |
H A D | umh.c | 129 pid_t pid; in call_usermodehelper_exec_sync() local 133 pid = user_mode_thread(call_usermodehelper_exec_async, sub_info, SIGCHLD); in call_usermodehelper_exec_sync() 134 if (pid < 0) in call_usermodehelper_exec_sync() 135 sub_info->retval = pid; in call_usermodehelper_exec_sync() 137 kernel_wait(pid, &sub_info->retval); in call_usermodehelper_exec_sync() 166 pid_t pid; in call_usermodehelper_exec_work() local 172 pid = user_mode_thread(call_usermodehelper_exec_async, sub_info, in call_usermodehelper_exec_work() 174 if (pid < 0) { in call_usermodehelper_exec_work() 175 sub_info->retval = pid; in call_usermodehelper_exec_work()
|
/third_party/node/test/internet/ |
H A D | test-dgram-multicast-set-interface-lo.js | 118 workers[worker.pid] = worker; 133 worker.pid, 162 worker.pid, 171 Object.keys(workers).forEach((pid) => { 172 const worker = workers[pid]; 186 worker.pid, 256 console.error(`pid ${process.pid} iface ${IFACE} MULTICAST ${MULTICAST}`); 267 process.pid,
|
/third_party/python/Lib/unittest/test/ |
H A D | test_break.py | 58 pid = os.getpid() 59 os.kill(pid, signal.SIGINT) 77 pid = os.getpid() 78 os.kill(pid, signal.SIGINT) 106 pid = os.getpid() 107 os.kill(pid, signal.SIGINT) 110 os.kill(pid, signal.SIGINT) 206 pid = os.getpid() 207 os.kill(pid, signal.SIGINT)
|