Home
last modified time | relevance | path

Searched refs:getpid (Results 201 - 225 of 1434) sorted by relevance

12345678910>>...58

/kernel/linux/linux-6.6/tools/perf/tests/
H A Dperf-time-to-tsc.c93 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 Dsplit_huge_page_test.c115 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 Dprotection_keys.c107 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 DIt_ipc_container_004.cpp82 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 DIt_ipc_container_006.cpp81 auto linkBuffer = ReadlinkContainer(getpid(), containerType); in childFunc()
106 auto linkBuffer1 = ReadlinkContainer(getpid(), containerType); in childFunc()
H A DIt_ipc_container_005.cpp44 auto linkBuffer = ReadlinkContainer(getpid(), containerType); in childFunc()
51 auto linkBuffer1 = ReadlinkContainer(getpid(), containerType); in childFunc()
/third_party/ltp/testcases/kernel/syscalls/fanotify/
H A Dfanotify15.c214 } 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 Dptrace_syscall.c149 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 Dpidfd_setns_test.c141 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 Dpidfd_open_test.c137 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 Dpidfd_setns_test.c141 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 Dpidfd_open_test.c137 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 Dptrace_syscall.c149 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 Dtest-fork.c218 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 Dftest07.c148 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 Dftest03.c145 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 Dseccomp_benchmark.c25 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 Dget_cgroup_id_user.c79 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 Dkcmp_test.c43 pid1 = getpid(); in main()
88 int pid2 = getpid(); in main()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/
H A Dget_cgroup_id_user.c86 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 Dkcmp_test.c43 pid1 = getpid(); in main()
88 int pid2 = getpid(); in main()
/kernel/liteos_a/testsuites/unittest/basic/mem/shm/full/
H A Dshm_test_004.cpp53 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 Dmain.c66 ret = sched_getparam(getpid(), &param); in OsShellCreateTask()
73 ret = sched_setparam(getpid(), &param); in OsShellCreateTask()
/third_party/curl/tests/
H A Ddictserver.py58 pid = os.getpid()
96 pid = os.getpid()
/third_party/eudev/src/shared/
H A Dlog.h109 #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__)

Completed in 13 milliseconds

12345678910>>...58