/kernel/liteos_a/testsuites/unittest/process/basic/process/smoke/ |
H A D | process_test_002.cpp | 41 int currProcessPri = getpriority(PRIO_PROCESS, getpid()); in Testcase() 47 ret = sched_getparam(getpid(), ¶m); in Testcase() 51 ret = sched_getscheduler(getpid()); in Testcase() 55 ret = sched_setscheduler(getpid(), SCHED_RR, ¶m); in Testcase() 58 ret = sched_getparam(getpid(), ¶m); in Testcase() 63 ret = sched_setparam(getpid(), ¶m); in Testcase() 66 ret = getpriority(PRIO_PROCESS, getpid()); in Testcase() 69 ret = setpriority(PRIO_PROCESS, getpid(), currProcessPri); in Testcase() 72 ret = getpriority(PRIO_PROCESS, getpid()); in Testcase() 76 ret = sched_setscheduler(getpid(), CURRENT_PROCESS_POLIC in Testcase() [all...] |
H A D | process_test_001.cpp | 44 ret = sched_getparam(getpid(), NULL); in Testcase() 54 ret = sched_setparam(getpid(), NULL); in Testcase() 64 ret = sched_setparam(getpid(), ¶m); in Testcase() 75 ret = getpriority(PRIO_USER, getpid()); in Testcase() 107 ret = sched_setparam(getpid(), ¶m); in Testcase() 113 ret = sched_setscheduler(getpid(), SCHED_RR, ¶m); in Testcase() 125 ret = setpriority(PRIO_PROCESS, getpid(), param.sched_priority); in Testcase() 130 ret = sched_getscheduler(getpid()); in Testcase() 144 ret = sched_setscheduler(getpid(), SCHED_FIFO, ¶m); in Testcase()
|
H A D | process_test_043.cpp | 38 int currProcessPri = getpriority(PRIO_PROCESS, getpid()); in Testcase() 60 priority = setpriority(PRIO_USER + count, getpid(), currProcessPri); in Testcase() 70 priority = setpriority(-count, getpid(), currProcessPri); in Testcase() 95 ret = sched_setscheduler(getpid(), SCHED_RR - count, ¶m); in Testcase() 100 ret = sched_setscheduler(getpid(), SCHED_RR + count, ¶m); in Testcase() 106 priority = setpriority(PRIO_PGRP, getpid(), currProcessPri); in Testcase() 111 priority = setpriority(PRIO_USER, getpid(), currProcessPri); in Testcase()
|
/kernel/linux/linux-6.6/tools/testing/selftests/arm64/abi/ |
H A D | tpidr2.c | 76 set_tpidr2(getpid()); in write_read() 78 return getpid() == get_tpidr2(); in write_read() 84 set_tpidr2(getpid()); in write_sleep_read() 88 return getpid() == get_tpidr2(); in write_sleep_read() 101 set_tpidr2(getpid()); in write_fork_read() 103 oldpid = getpid(); in write_fork_read() 114 set_tpidr2(getpid()); in write_fork_read() 115 if (get_tpidr2() == getpid()) { in write_fork_read() 150 if (getpid() != get_tpidr2()) { in write_fork_read() 183 parent = getpid(); in write_clone_read() [all...] |
/kernel/liteos_a/testsuites/unittest/process/plimits/smoke/ |
H A D | It_process_plimits_pid_003.cpp | 66 int currProcessPri = getpriority(PRIO_PROCESS, getpid()); in ItProcessPlimitsPid003() 69 ret = sched_setscheduler(getpid(), SCHED_RR, ¶m); in ItProcessPlimitsPid003() 72 ret = setpriority(PRIO_PROCESS, getpid(), param.sched_priority); in ItProcessPlimitsPid003() 75 ret = sched_setparam(getpid(), ¶m); in ItProcessPlimitsPid003() 79 ret = sched_setscheduler(getpid(), SCHED_RR, ¶m); in ItProcessPlimitsPid003() 83 ret = setpriority(PRIO_PROCESS, getpid(), param.sched_priority); in ItProcessPlimitsPid003() 87 ret = sched_setparam(getpid(), ¶m); in ItProcessPlimitsPid003()
|
/kernel/liteos_a/testsuites/unittest/process/basic/pthread/smoke/ |
H A D | pthread_test_027.cpp | 44 ret = sched_getparam(getpid(), &currSchedParam); in ChildProcess() 47 currPolicy = sched_getscheduler(getpid()); in ChildProcess() 54 ret = sched_setscheduler(getpid(), SCHED_DEADLINE, ¶m); in ChildProcess() 57 currPolicy = sched_getscheduler(getpid()); in ChildProcess() 60 ret = sched_getparam(getpid(), &currSchedParam); in ChildProcess()
|
H A D | pthread_test_020.cpp | 43 ret = sched_getparam(getpid(), &currSchedParam); in ChildProcess() 46 currPolicy = sched_getscheduler(getpid()); in ChildProcess() 53 ret = sched_setscheduler(getpid(), SCHED_DEADLINE, ¶m); in ChildProcess() 56 currPolicy = sched_getscheduler(getpid()); in ChildProcess() 59 ret = sched_getparam(getpid(), &currSchedParam); in ChildProcess()
|
H A D | pthread_test_026.cpp | 44 ret = sched_getparam(getpid(), &currSchedParam); in ChildProcess() 47 currPolicy = sched_getscheduler(getpid()); in ChildProcess() 54 ret = sched_setscheduler(getpid(), SCHED_DEADLINE, ¶m); in ChildProcess() 57 currPolicy = sched_getscheduler(getpid()); in ChildProcess() 60 ret = sched_getparam(getpid(), &currSchedParam); in ChildProcess()
|
/kernel/linux/linux-5.10/tools/testing/selftests/clone3/ |
H A D | clone3_set_tid.c | 69 getpid(), set_tid[0]); in call_clone3_set_tid() 72 getpid()); in call_clone3_set_tid() 93 if (set_tid[0] != getpid()) in call_clone3_set_tid() 100 getpid(), pid); in call_clone3_set_tid() 130 getpid(), set_tid[0], flags); in test_clone3_set_tid() 135 getpid(), set_tid[0], ret, expected); in test_clone3_set_tid() 139 getpid(), ret, expected); in test_clone3_set_tid() 143 getpid(), ret, expected); in test_clone3_set_tid() 259 ksft_print_msg("Child has PID %d\n", getpid()); in main() 306 ksft_print_msg("Child in PID namespace has PID %d\n", getpid()); in main() [all...] |
H A D | clone3_cap_checkpoint_restore.c | 63 TH_LOG("I am the child, my PID is %d (expected %d)", getpid(), set_tid[0]); in call_clone3_set_tid() 65 if (set_tid[0] != getpid()) in call_clone3_set_tid() 70 TH_LOG("I am the parent (%d). My child's pid is %d", getpid(), pid); in call_clone3_set_tid() 88 TH_LOG("[%d] Trying clone3() with CLONE_SET_TID to %d", getpid(), set_tid[0]); in test_clone3_set_tid() 90 TH_LOG("[%d] clone3() with CLONE_SET_TID %d says:%d", getpid(), set_tid[0], ret); in test_clone3_set_tid() 155 TH_LOG("Child has PID %d", getpid()); in TEST()
|
H A D | clone3.c | 89 ksft_print_msg("I am the child, my PID is %d\n", getpid()); in call_clone3() 94 getpid(), pid); in call_clone3() 113 getpid(), flags, size); in test_clone3() 116 getpid(), ret, expected); in test_clone3() 120 getpid(), ret, expected); in test_clone3() 124 getpid(), ret, expected); in test_clone3()
|
/kernel/linux/linux-6.6/tools/testing/selftests/clone3/ |
H A D | clone3_set_tid.c | 69 getpid(), set_tid[0]); in call_clone3_set_tid() 72 getpid()); in call_clone3_set_tid() 93 if (set_tid[0] != getpid()) in call_clone3_set_tid() 100 getpid(), pid); in call_clone3_set_tid() 130 getpid(), set_tid[0], flags); in test_clone3_set_tid() 135 getpid(), set_tid[0], ret, expected); in test_clone3_set_tid() 139 getpid(), ret, expected); in test_clone3_set_tid() 143 getpid(), ret, expected); in test_clone3_set_tid() 259 ksft_print_msg("Child has PID %d\n", getpid()); in main() 306 ksft_print_msg("Child in PID namespace has PID %d\n", getpid()); in main() [all...] |
H A D | clone3.c | 89 ksft_print_msg("I am the child, my PID is %d\n", getpid()); in call_clone3() 94 getpid(), pid); in call_clone3() 113 getpid(), flags, size); in test_clone3() 116 getpid(), ret, expected); in test_clone3() 120 getpid(), ret, expected); in test_clone3() 124 getpid(), ret, expected); in test_clone3()
|
H A D | clone3_cap_checkpoint_restore.c | 63 TH_LOG("I am the child, my PID is %d (expected %d)", getpid(), set_tid[0]); in call_clone3_set_tid() 65 if (set_tid[0] != getpid()) in call_clone3_set_tid() 70 TH_LOG("I am the parent (%d). My child's pid is %d", getpid(), pid); in call_clone3_set_tid() 88 TH_LOG("[%d] Trying clone3() with CLONE_SET_TID to %d", getpid(), set_tid[0]); in test_clone3_set_tid() 90 TH_LOG("[%d] clone3() with CLONE_SET_TID %d says:%d", getpid(), set_tid[0], ret); in test_clone3_set_tid() 155 TH_LOG("Child has PID %d", getpid()); in TEST()
|
/kernel/liteos_a/testsuites/unittest/container/smoke/ |
H A D | It_pid_container_025.cpp | 48 std::cout << getpid() << std::endl; in ItPidContainer025() 49 auto linkBuffer = ReadlinkContainer(getpid(), containerType); in ItPidContainer025() 50 auto linkBuffer1 = ReadlinkContainer(getpid(), containerType1); in ItPidContainer025() 66 auto linkBuffer2 = ReadlinkContainer(getpid(), containerType); in ItPidContainer025()
|
H A D | It_time_container_010.cpp | 51 std::cout << getpid() << std::endl; in ItTimeContainer010() 52 auto linkBuffer = ReadlinkContainer(getpid(), containerType); in ItTimeContainer010() 53 auto linkBuffer1 = ReadlinkContainer(getpid(), containerType1); in ItTimeContainer010() 70 auto linkBuffer2 = ReadlinkContainer(getpid(), containerType); in ItTimeContainer010()
|
/kernel/linux/linux-5.10/tools/perf/tests/ |
H A D | thread-map.c | 30 map = thread_map__new_by_pid(getpid()); in test__thread_map() 37 perf_thread_map__pid(map, 0) == getpid()); in test__thread_map() 71 TEST_ASSERT_VAL("wrong pid", map->entries[0].pid == (u64) getpid()); in process_event() 79 perf_thread_map__pid(threads, 0) == getpid()); in process_event() 97 threads = thread_map__new_by_pid(getpid()); in test__thread_map_synthesize() 115 asprintf(&str, "%d,%d", getpid(), getppid()) >= 0); in test__thread_map_remove()
|
/kernel/linux/linux-6.6/tools/perf/tests/ |
H A D | thread-map.c | 31 map = thread_map__new_by_pid(getpid()); in test__thread_map() 38 perf_thread_map__pid(map, 0) == getpid()); in test__thread_map() 72 TEST_ASSERT_VAL("wrong pid", map->entries[0].pid == (u64) getpid()); in process_event() 80 perf_thread_map__pid(threads, 0) == getpid()); in process_event() 98 threads = thread_map__new_by_pid(getpid()); in test__thread_map_synthesize() 116 asprintf(&str, "%d,%d", getpid(), getppid()) >= 0); in test__thread_map_remove()
|
/kernel/liteos_a/testsuites/unittest/basic/mem/shm/full/ |
H A D | shm_test_009.cpp | 49 if(sched_setparam(getpid(), ¶m) != 0) { in ChildProcess() 102 processPolicy = sched_getscheduler(getpid()); in Testcase() 103 ret = sched_getparam(getpid(), ¶mCopy); in Testcase() 108 ret = sched_setscheduler(getpid(), SCHED_RR, ¶m); in Testcase() 141 (void)sched_setparam(getpid(), ¶mCopy); in Testcase() 143 (void)sched_setscheduler(getpid(), processPolicy, ¶mCopy); in Testcase()
|
/kernel/liteos_a/testsuites/unittest/process/basic/process/smp/ |
H A D | process_test_smp_002.cpp | 52 ret = sched_getaffinity(getpid(), sizeof(cpu_set_t), &cpuset); in PthreadTest01() 77 ret = sched_getaffinity(getpid(), sizeof(cpu_set_t), &initCpuset); in Testcase() 82 ret = sched_setaffinity(getpid(), sizeof(cpu_set_t), &cpuset); in Testcase() 86 ret = sched_getaffinity(getpid(), sizeof(cpu_set_t), &cpuset); in Testcase() 99 ret = sched_getaffinity(getpid(), sizeof(cpu_set_t), &cpuset); in Testcase() 106 ret = sched_setaffinity(getpid(), sizeof(cpu_set_t), &initCpuset); in Testcase()
|
H A D | process_test_smp_008.cpp | 54 ret = sched_setaffinity(getpid(), sizeof(cpu_set_t), &cpuset); in PthreadTest01() 58 ret = sched_getaffinity(getpid(), sizeof(cpu_set_t), &cpuset); in PthreadTest01() 90 ret = sched_setaffinity(getpid(), sizeof(cpu_set_t), &cpuset); in Testcase() 94 ret = sched_getaffinity(getpid(), sizeof(cpu_set_t), &cpuset); in Testcase() 107 ret = sched_getaffinity(getpid(), sizeof(cpu_set_t), &cpuset); in Testcase()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/map_tests/ |
H A D | task_storage_map.c | 88 sched_getaffinity(getpid(), sizeof(old), &old); in test_task_storage_map_stress_lookup() 93 sched_setaffinity(getpid(), sizeof(new), &new); in test_task_storage_map_stress_lookup() 97 ctx.pid_fd = sys_pidfd_open(getpid(), 0); in test_task_storage_map_stress_lookup() 113 skel->bss->pid = getpid(); in test_task_storage_map_stress_lookup() 125 sched_setaffinity(getpid(), sizeof(old), &old); in test_task_storage_map_stress_lookup()
|
/kernel/liteos_a/testsuites/unittest/container/full/ |
H A D | It_pid_container_002.cpp | 35 return getpid(); in ChildFun() 44 pid_t pid = getpid(); in ChildFunClone3() 82 pid_t pid = getpid(); in ChildFunClone2() 111 pid_t pid = getpid(); in ChildFunClone1() 120 auto linkBuffer1 = ReadlinkContainer(getpid(), containerType); in ChildFunClone1()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
H A D | task_fd_query_rawtp.c | 22 /* query (getpid(), efd) */ in test_task_fd_query_rawtp() 24 err = bpf_task_fd_query(getpid(), efd, 0, buf, &len, &prog_id, in test_task_fd_query_rawtp() 38 err = bpf_task_fd_query(getpid(), efd, 0, buf, &len, &prog_id, in test_task_fd_query_rawtp() 50 err = bpf_task_fd_query(getpid(), efd, 0, 0, &len, &prog_id, in test_task_fd_query_rawtp() 62 err = bpf_task_fd_query(getpid(), efd, 0, buf, &len, &prog_id, in test_task_fd_query_rawtp()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
H A D | task_fd_query_rawtp.c | 22 /* query (getpid(), efd) */ in test_task_fd_query_rawtp() 24 err = bpf_task_fd_query(getpid(), efd, 0, buf, &len, &prog_id, in test_task_fd_query_rawtp() 38 err = bpf_task_fd_query(getpid(), efd, 0, buf, &len, &prog_id, in test_task_fd_query_rawtp() 50 err = bpf_task_fd_query(getpid(), efd, 0, 0, &len, &prog_id, in test_task_fd_query_rawtp() 62 err = bpf_task_fd_query(getpid(), efd, 0, buf, &len, &prog_id, in test_task_fd_query_rawtp()
|