/kernel/linux/linux-6.6/tools/perf/tests/ |
H A D | perf-time-to-tsc.c | 93 threads = thread_map__new(-1, getpid(), UINT_MAX); in test__perf_time_to_tsc() 157 (pid_t)event->comm.pid != getpid() || in test__perf_time_to_tsc() 158 (pid_t)event->comm.tid != getpid()) in test__perf_time_to_tsc()
|
/kernel/linux/linux-6.6/tools/testing/selftests/mm/ |
H A D | split_huge_page_test.c | 115 write_debugfs(PID_FMT, getpid(), (uint64_t)one_page, in split_pmd_thp() 146 if (snprintf(pagemap_proc, 255, pagemap_template, getpid()) < 0) { in split_pte_mapped_thp() 205 write_debugfs(PID_FMT, getpid(), (uint64_t)pte_mapped, in split_pte_mapped_thp()
|
H A D | protection_keys.c | 107 sprintf(pidstr, "%d", getpid()); in tracing_on() 407 dprintf2("[%d] SIGCHLD: %d\n", getpid(), x); in sig_chld() 449 dprintf3("[%d] fork() ret: %d\n", getpid(), forkret); in fork_lazy_child() 1195 dprintf3("[%d] fork() ret: %d\n", getpid(), forkret); in become_child() 1393 dprintf1("[%d] child pid: %d\n", getpid(), child_pid); in test_ptrace_of_child() 1398 dprintf1("[%d] attach ret: %ld %d\n", getpid(), ret, __LINE__); in test_ptrace_of_child() 1564 dprintf3("[%d] fork() ret: %d\n", getpid(), child); in test_ptrace_modifies_pkru() 1590 dprintf3("[%d] waitpid(%d) status: %x\n", getpid(), child, status); in test_ptrace_modifies_pkru() 1622 dprintf3("[%d] waitpid(%d) status: %x\n", getpid(), child, status); in test_ptrace_modifies_pkru() 1649 dprintf3("[%d] waitpid(%d) status: %x\n", getpid(), chil in test_ptrace_modifies_pkru() [all...] |
/kernel/liteos_a/testsuites/unittest/container/smoke/ |
H A D | It_ipc_container_004.cpp | 82 auto linkBuffer = ReadlinkContainer(getpid(), containerType); in childFunc() 190 ASSERT_EQ(ds.shm_cpid, getpid()); in ItIpcContainer004() 191 ASSERT_EQ(ds.shm_lpid, getpid()); in ItIpcContainer004()
|
H A D | It_ipc_container_006.cpp | 81 auto linkBuffer = ReadlinkContainer(getpid(), containerType); in childFunc() 106 auto linkBuffer1 = ReadlinkContainer(getpid(), containerType); in childFunc()
|
H A D | It_ipc_container_005.cpp | 44 auto linkBuffer = ReadlinkContainer(getpid(), containerType); in childFunc() 51 auto linkBuffer1 = ReadlinkContainer(getpid(), containerType); in childFunc()
|
/third_party/ltp/testcases/kernel/syscalls/fanotify/ |
H A D | fanotify15.c | 214 } else if (metadata->pid != getpid()) { in do_test() 220 (unsigned int) getpid(), in do_test() 255 getpid(), in do_test()
|
/kernel/linux/linux-5.10/tools/testing/selftests/x86/ |
H A D | ptrace_syscall.c | 149 if (args.nr != getpid() || in test_sys32_regs() 161 args.arg0 = getpid(); in test_sys32_regs() 165 args.arg0 != getpid() || args.arg1 != SIGUSR1 || args.arg2 != 12 || in test_sys32_regs() 167 printf("[FAIL]\tkill(getpid(), SIGUSR1) failed to preserve regs\n"); in test_sys32_regs() 170 printf("[OK]\tkill(getpid(), SIGUSR1) preserves regs\n"); in test_sys32_regs() 186 pid_t pid = getpid(), tid = syscall(SYS_gettid); in test_ptrace_syscall_restart() 306 pid_t pid = getpid(), tid = syscall(SYS_gettid); in test_restart_under_ptrace()
|
/kernel/linux/linux-5.10/tools/testing/selftests/pidfd/ |
H A D | pidfd_setns_test.c | 141 self->pid = getpid(); in FIXTURE_SETUP() 368 pid = getpid(); in TEST_F() 382 pid = getpid(); in TEST_F() 418 pid = getpid(); in TEST_F() 471 pid = getpid(); in TEST_F()
|
H A D | pidfd_open_test.c | 137 pidfd = sys_pidfd_open(getpid(), 1); in main() 146 pidfd = sys_pidfd_open(getpid(), 0); in main()
|
/kernel/linux/linux-6.6/tools/testing/selftests/pidfd/ |
H A D | pidfd_setns_test.c | 141 self->pid = getpid(); in FIXTURE_SETUP() 368 pid = getpid(); in TEST_F() 382 pid = getpid(); in TEST_F() 418 pid = getpid(); in TEST_F() 471 pid = getpid(); in TEST_F()
|
H A D | pidfd_open_test.c | 137 pidfd = sys_pidfd_open(getpid(), 1); in main() 146 pidfd = sys_pidfd_open(getpid(), 0); in main()
|
/kernel/linux/linux-6.6/tools/testing/selftests/x86/ |
H A D | ptrace_syscall.c | 149 if (args.nr != getpid() || in test_sys32_regs() 161 args.arg0 = getpid(); in test_sys32_regs() 165 args.arg0 != getpid() || args.arg1 != SIGUSR1 || args.arg2 != 12 || in test_sys32_regs() 167 printf("[FAIL]\tkill(getpid(), SIGUSR1) failed to preserve regs\n"); in test_sys32_regs() 170 printf("[OK]\tkill(getpid(), SIGUSR1) preserves regs\n"); in test_sys32_regs() 186 pid_t pid = getpid(), tid = syscall(SYS_gettid); in test_ptrace_syscall_restart() 306 pid_t pid = getpid(), tid = syscall(SYS_gettid); in test_restart_under_ptrace()
|
/third_party/libuv/test/ |
H A D | test-fork.c | 218 printf("Child is %d\n", getpid()); in TEST_IMPL() 392 ASSERT_OK(kill(getpid(), SIGHUP)); in TEST_IMPL() 705 printf("Queue in %d\n", getpid()); in assert_run_work() 708 printf("Running in %d\n", getpid()); in assert_run_work() 747 printf("Running child in %d\n", getpid()); in TEST_IMPL()
|
/third_party/ltp/testcases/kernel/fs/ftest/ |
H A D | ftest07.c | 148 parent_pid = getpid(); in setup() 152 getpid()); in setup() 364 srand(getpid()); in dotest() 611 tst_resm(TINFO, "\tterm -[%d]- got sig term.", getpid()); in term() 617 if (parent_pid == getpid()) { in term()
|
H A D | ftest03.c | 145 parent_pid = getpid(); in setup() 149 getpid()); in setup() 364 srand(getpid()); in dotest() 613 tst_resm(TINFO, "\tterm -[%d]- got sig term.", getpid()); in term() 619 if (parent_pid == getpid()) { in term()
|
/kernel/linux/linux-5.10/tools/testing/selftests/seccomp/ |
H A D | seccomp_benchmark.c | 25 pid = getpid(); in timing() 55 pid = getpid(); in calibrate() 99 printf("getpid native: %llu ns\n", native); in main() 109 printf("getpid RET_ALLOW 1 filter: %llu ns\n", filter1); in main() 119 printf("getpid RET_ALLOW 2 filters: %llu ns\n", filter2); in main()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
H A D | get_cgroup_id_user.c | 79 pid = getpid(); in main() 102 pmu_fd = syscall(__NR_perf_event_open, &attr, getpid(), -1, -1, 0); in main()
|
/kernel/linux/linux-5.10/tools/testing/selftests/kcmp/ |
H A D | kcmp_test.c | 43 pid1 = getpid(); in main() 88 int pid2 = getpid(); in main()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/ |
H A D | get_cgroup_id_user.c | 86 pid = getpid(); in main() 114 pmu_fd = syscall(__NR_perf_event_open, &attr, getpid(), -1, -1, 0); in main()
|
/kernel/linux/linux-6.6/tools/testing/selftests/kcmp/ |
H A D | kcmp_test.c | 43 pid1 = getpid(); in main() 88 int pid2 = getpid(); in main()
|
/kernel/liteos_a/testsuites/unittest/basic/mem/shm/full/ |
H A D | shm_test_004.cpp | 53 ICUNIT_GOTO_EQUAL(ds.shm_cpid, getpid(), ds.shm_cpid, ERROR_OUT); in Testcase() 54 ICUNIT_GOTO_EQUAL(ds.shm_lpid, getpid(), ds.shm_lpid, ERROR_OUT); in Testcase()
|
/kernel/liteos_a/apps/shell/src/ |
H A D | main.c | 66 ret = sched_getparam(getpid(), ¶m); in OsShellCreateTask() 73 ret = sched_setparam(getpid(), ¶m); in OsShellCreateTask()
|
/third_party/curl/tests/ |
H A D | dictserver.py | 58 pid = os.getpid() 96 pid = os.getpid()
|
/third_party/eudev/src/shared/ |
H A D | log.h | 109 #define log_emergency(...) log_full(getpid() == 1 ? LOG_EMERG : LOG_ERR, __VA_ARGS__) 117 #define log_emergency_errno(error, ...) log_full_errno(getpid() == 1 ? LOG_EMERG : LOG_ERR, error, __VA_ARGS__)
|