Home
last modified time | relevance | path

Searched refs:getpid (Results 126 - 150 of 1434) sorted by relevance

12345678910>>...58

/kernel/linux/linux-5.10/tools/testing/selftests/pidfd/
H A Dpidfd_wait.c108 kill(getpid(), SIGSTOP); in TEST()
109 kill(getpid(), SIGSTOP); in TEST()
160 pidfd = sys_pidfd_open(getpid(), PIDFD_NONBLOCK); in TEST()
176 kill(getpid(), SIGSTOP); in TEST()
/third_party/libuv/test/
H A Dtest-signal-multiple-loops.c263 r = kill(getpid(), SIGUSR1); in TEST_IMPL()
265 r = kill(getpid(), SIGUSR2); in TEST_IMPL()
279 r = kill(getpid(), SIGUSR1); in TEST_IMPL()
281 r = kill(getpid(), SIGUSR2); in TEST_IMPL()
/third_party/ltp/testcases/kernel/fs/doio/
H A Ddatapid.c344 datapidgen(getpid(), buffer, size, 5);
351 printf("\ndatapidgen(getpid(), buffer, size, 5)\n");
353 ret = datapidchk(getpid(), buffer, size, 5, &errmsg);
354 printf("datapidchk(getpid(), buffer, %d, 5, &errmsg) returned %d %s\n",
357 ret = datapidchk(getpid(), &buffer[1], size - 1, 6, &errmsg);
359 ("datapidchk(getpid(), &buffer[1], %d, 6, &errmsg) returned %d %s\n",
365 ret = datapidchk(getpid(), &buffer[1], size - 1, 6, &errmsg);
367 ("datapidchk(getpid(), &buffer[1], %d, 6, &errmsg) returned %d %s\n",
/third_party/ltp/testcases/kernel/sched/sched_stress/
H A Dsched_tc6.c191 getpid(), filename); in main()
193 getpid(), filename); in main()
221 getpid()); in main()
298 printf("\tparent process id = %d\n", getpid()); in fork_realtime()
/third_party/ltp/testcases/kernel/syscalls/migrate_pages/
H A Dmigrate_pages02.c53 pid = getpid(); in print_mem_stats()
76 getpid(), pid, node); in migrate_to_node()
126 getpid(), addr, exp_node); in check_addr_on_node()
130 ", expected %d", getpid(), addr, node, exp_node); in check_addr_on_node()
/kernel/linux/build/test/unittest/rtg/
H A Drtg_test.cpp399 int pid = getpid(); in HWTEST_F()
418 int pid = getpid(); in HWTEST_F()
443 int pid = getpid(); in HWTEST_F()
482 int pid = getpid(); in HWTEST_F()
522 int pid = getpid(); in HWTEST_F()
557 int pid = getpid(); in HWTEST_F()
596 int pid = getpid(); in HWTEST_F()
/third_party/eudev/src/shared/
H A Dlog.c63 if (getpid() == 1) { in log_close_console()
76 if (getpid() == 1) { in log_open_console()
119 if (getpid() == 1) in create_log_socket()
190 getpid() == 1 || in log_open()
279 if (errno == EIO && getpid() == 1) { in write_to_console()
333 snprintf(header_pid, sizeof(header_pid), "["PID_FMT"]: ", getpid()); in write_to_syslog()
382 snprintf(header_pid, sizeof(header_pid), "["PID_FMT"]: ", getpid()); in write_to_kmsg()
/kernel/linux/linux-6.6/tools/testing/selftests/sched/
H A Dcs_prctl_test.c205 printf("tid=%d, / tgid=%d / pgid=%d: %lx\n", gettid(), getpid(), getpgid(0), in disp_processes()
206 get_cs_cookie(getpid())); in disp_processes()
309 getpid(), pid); in main()
319 procs[pidx].thr_tids[0], getpid()); in main()
328 printf("\n## Copy cookie from current [%d] to current as pidtype PGID\n", getpid()); in main()
/third_party/ltp/testcases/kernel/fs/ftest/
H A Dftest05.c134 parent_pid = getpid(); in setup()
137 sprintf(fuss, "./ftest05.%d", getpid()); in setup()
311 srand(getpid()); in dotest()
528 tst_resm(TINFO, "\tterm -[%d]- got sig term.", getpid()); in term()
534 if (parent_pid == getpid()) { in term()
H A Dftest08.c118 parent_pid = getpid(); in init()
126 getpid()); in init()
306 srand(getpid()); in dotest()
521 tst_resm(TINFO, "\tterm -[%d]- got sig term.", getpid()); in term()
523 if (parent_pid == getpid()) { in term()
H A Dftest04.c114 parent_pid = getpid(); in setup()
122 getpid()); in setup()
296 srand(getpid()); in dotest()
483 tst_resm(TINFO, "\tterm -[%d]- got sig term.", getpid()); in term()
485 if (parent_pid == getpid()) { in term()
H A Dftest01.c126 parent_pid = getpid(); in setup()
129 sprintf(fuss, "./ftest1.%d", getpid()); in setup()
314 srand(getpid()); in dotest()
535 tst_resm(TINFO, "\tterm -[%d]- got sig term.", getpid()); in term()
541 if (parent_pid == getpid()) { in term()
H A Dftest02.c116 parent_pid = getpid(); in main()
127 sprintf(tmpname, "/ftest02.%d", getpid()); in main()
130 sprintf(tmpname, "/ftest02h.%d", getpid()); in main()
396 //tst_resm(TINFO,"Test %d pid %d starting.", me, getpid()); in dotest()
398 srand(getpid()); in dotest()
406 //tst_resm(TINFO,"Test %d pid %d exiting.", me, getpid()); in dotest()
424 if (parent_pid == getpid()) { in term()
/third_party/ltp/testcases/kernel/syscalls/sigrelse/
H A Dsigrelse01.c452 printf("child: pid=%d waiting for parent's ready...\n", getpid()); in child()
600 printf("read_pipe: pid=%d waiting...\n", getpid()); in read_pipe()
622 printf("read_pipe: pid=%d received: %s.\n", getpid(), buf); in read_pipe()
636 printf("write_pipe: pid=%d, sending %s.\n", getpid(), msg); in write_pipe()
686 printf("timeout: pid=%d sigalrm caught.\n", getpid()); in timeout()
/kernel/linux/linux-5.10/tools/power/cpupower/utils/idle_monitor/
H A Dcpupower-monitor.h87 if (sched_getaffinity(getpid(), sizeof(set), &set) == 0) { in bind_cpu()
90 return sched_setaffinity(getpid(), sizeof(set), &set); in bind_cpu()
/kernel/linux/linux-6.6/tools/power/cpupower/utils/idle_monitor/
H A Dcpupower-monitor.h87 if (sched_getaffinity(getpid(), sizeof(set), &set) == 0) { in bind_cpu()
90 return sched_setaffinity(getpid(), sizeof(set), &set); in bind_cpu()
/kernel/liteos_a/testsuites/unittest/container/full/
H A DIt_pid_container_003.cpp35 return getpid(); in ChildFun()
53 pid_t pid = getpid(); in ChildFunClone1()
/kernel/liteos_a/testsuites/unittest/libc/time/clock/full/
H A Dclock_test_003.cpp64 pid = getpid(); in ClockTest()
65 ret = clock_getcpuclockid(getpid(), &clockid); in ClockTest()
/kernel/liteos_a/testsuites/unittest/process/basic/process/full/
H A Dprocess_test_007.cpp49 int currProcessPri = getpriority(PRIO_PROCESS, getpid()); in ProcessTest001()
52 ret = setpriority(PRIO_PROCESS, getpid(), currProcessPri - 2); // 2, Used to calculate priorities. in ProcessTest001()
H A Dprocess_test_032.cpp39 ICUNIT_ASSERT_EQUAL(getpgrp(), getpid(), getpgrp()); in Child1()
49 ret = setpgid(getpid(), gid); in Child2()
/kernel/liteos_a/testsuites/unittest/process/basic/process/smoke/
H A Dprocess_test_009.cpp50 int currProcessPri = getpriority(PRIO_PROCESS, getpid()); in ProcessTest001()
53 ret = setpriority(PRIO_PROCESS, getpid(), currProcessPri - 2); // 2, Used to calculate priorities. in ProcessTest001()
H A Dprocess_test_045.cpp46 ret = sched_setaffinity(getpid(), 0, &cpuset); in Testcase()
50 ret = sched_getaffinity(getpid(), 0, &cpuset); in Testcase()
/third_party/ltp/testcases/kernel/containers/userns/
H A Duserns05.c55 parentuserns = getusernsidbypid(getpid()); in run()
89 newparentuserns = getusernsidbypid(getpid()); in run()
/third_party/ltp/testcases/kernel/syscalls/kcmp/
H A Dkcmp03.c54 pid2 = getpid(); in do_child()
76 pid1 = getpid(); in verify_kcmp()
/third_party/ltp/testcases/kernel/syscalls/getcwd/
H A Dgetcwd03.c82 sprintf(dir, "getcwd1.%d", getpid()); in setup()
83 sprintf(dir_link, "getcwd2.%d", getpid()); in setup()

Completed in 12 milliseconds

12345678910>>...58