/third_party/ltp/testcases/kernel/syscalls/symlink/ |
H A D | symlink02.c | 185 sprintf(fname, "tfile_%d", getpid()); in setup() 196 sprintf(symlnk, "st_%d", getpid()); in setup()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/ |
H A D | 15-2.c | 38 if (sched_getparam(getpid(), ¶m) != 0) { in main() 66 if (sched_setscheduler(getpid(), SCHED_FIFO, ¶m) == -1) { in main()
|
H A D | 22-2.c | 38 if (sched_getparam(getpid(), ¶m) != 0) { in main() 47 if (sched_setscheduler(getpid(), SCHED_FIFO, ¶m) == -1) { in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigqueue/ |
H A D | 9-1.c | 58 int pid = getpid(); in main() 65 pid = getpid(); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/speculative/ |
H A D | 26-1.c | 51 sprintf(qname, "/msgqueue%d_%d", i, getpid()); in main() 80 sprintf(qname, "/msgqueue%d_%d", i, getpid()); in main()
|
/third_party/musl/libc-test/src/functionalext/supplement/sched/ |
H A D | sched_rr_get_interval.c | 30 pid_t pid = getpid(); in sched_rr_get_interval_0100() 71 pid_t pid = getpid(); in sched_rr_get_interval_time64_0100()
|
/third_party/musl/libc-test/src/functionalext/supplement/signal/ |
H A D | sigqueue.c | 66 result = sigqueue(getpid(), sig, sigval); in sigqueue_0100() 91 int result = sigqueue(getpid(), sig, sigval); in sigqueue_0200()
|
/third_party/musl/libc-test/src/functionalext/trace/ |
H A D | trace_stresstest.c | 44 int pidChild = getpid(); in trace_marker_stresstest_0010() 80 pidCParent = getpid(); in trace_marker_stresstest_0010()
|
/kernel/linux/linux-5.10/tools/perf/arch/x86/tests/ |
H A D | perf-time-to-tsc.c | 72 threads = thread_map__new(-1, getpid(), UINT_MAX); in test__perf_time_to_tsc() 128 (pid_t)event->comm.pid != getpid() || in test__perf_time_to_tsc() 129 (pid_t)event->comm.tid != getpid()) in test__perf_time_to_tsc()
|
/kernel/linux/linux-5.10/tools/perf/tests/ |
H A D | dwarf-unwind.c | 38 pid_t pid = getpid(); in init_live_machine() 205 thread = machine__find_thread(machine, getpid(), getpid()); in test__dwarf_unwind()
|
/kernel/linux/linux-6.6/tools/perf/tests/ |
H A D | dwarf-unwind.c | 51 pid_t pid = getpid(); in init_live_machine() 228 thread = machine__find_thread(machine, getpid(), getpid()); in test__dwarf_unwind()
|
/third_party/NuttX/fs/driver/ |
H A D | fs_devsyslog.c | 127 pid_t me = getpid(); in syslog_takesem() 172 pid_t me = getpid(); in syslog_givesem() 411 if (OS_INT_ACTIVE || getpid() == 0) in syslog_putc()
|
/third_party/ltp/testcases/kernel/sched/hyperthreading/ht_affinity/ |
H A D | ht_affinity.c | 56 pid = getpid(); in HT_SetAffinity() 154 pid = getpid(); in HT_GetAffinity() 186 pid = getpid(); in HT_InheritAffinity()
|
/third_party/ltp/testcases/network/lib6/ |
H A D | asapi_02.c | 99 ic6.icmp6_data32[0] = htonl(getpid()); in ic6_send() 141 if (htonl(pic6->icmp6_data32[0]) == (uint32_t)getpid()) in ic6_recv() 147 if (htonl(pic6->icmp6_data32[0]) == (uint32_t)getpid()) in ic6_recv()
|
/third_party/ltp/testcases/kernel/syscalls/fanotify/ |
H A D | fanotify06.c | 128 } else if (event->pid != getpid()) { in verify_event() 132 (unsigned int)getpid(), event->fd); in verify_event() 165 sprintf(fname, "%s/tfile_%d", tc->mnt, getpid()); in test_fanotify()
|
H A D | fanotify04.c | 197 sprintf(fname, "fname_%d", getpid()); in setup() 201 sprintf(sname, "symlink_%d", getpid()); in setup() 204 sprintf(dir, "dir_%d", getpid()); in setup()
|
/third_party/rust/crates/rustix/benches/ |
H A D | mod.rs | 132 use rustix::process::getpid; 134 c.bench_function("simple getpid", |b| { 136 let _ = getpid(); 143 c.bench_function("simple getpid libc", |b| { 145 let _ = libc::getpid();
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
H A D | test_lsm.c | 44 *monitored_pid = getpid(); in exec_cmd() 76 skel->bss->monitored_pid = getpid(); in test_test_lsm()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
H A D | uprobe_autoattach.c | 30 skel->bss->test_pid = getpid(); in test_uprobe_autoattach() 35 skel->bss->test_pid = getpid(); in test_uprobe_autoattach()
|
H A D | test_lsm.c | 43 *monitored_pid = getpid(); in exec_cmd() 75 skel->bss->monitored_pid = getpid(); in test_lsm()
|
/kernel/liteos_a/testsuites/unittest/container/full/ |
H A D | It_pid_container_004.cpp | 35 return getpid(); in ChildFun() 60 pid_t pid = getpid(); in ChildFunClone1()
|
/kernel/liteos_a/testsuites/unittest/container/smoke/ |
H A D | It_net_container_004.cpp | 63 auto oldReadLink = ReadlinkContainer(getpid(), CONTAINER_TYPE); in ChildFun() 85 auto newReadLink = ReadlinkContainer(getpid(), CONTAINER_TYPE); in ChildFun()
|
H A D | It_mnt_container_008.cpp | 39 (void)getpid(); in ChildFun() 58 parentPid = getpid(); in ItMntContainer008()
|
/kernel/liteos_a/testsuites/unittest/process/basic/process/smoke/ |
H A D | process_test_008.cpp | 59 int currProcessPri = getpriority(PRIO_PROCESS, getpid()); in ProcessTest001() 62 ret = setpriority(PRIO_PROCESS, getpid(), currProcessPri - 2); // 2, Used to calculate priorities. in ProcessTest001()
|
H A D | process_test_006.cpp | 57 int currProcessPri = getpriority(PRIO_PROCESS, getpid()); in ProcessTest001() 60 ret = setpriority(PRIO_PROCESS, getpid(), currProcessPri - 2); // 2, Used to calculate priorities. in ProcessTest001()
|