/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_getschedparam/ |
H A D | 1-3.c | 89 check_param(self, SCHED_FIFO, sched_get_priority_min(SCHED_FIFO)); in threaded() 103 check_param(self, SCHED_FIFO, sched_get_priority_max(SCHED_FIFO)); in threaded() 173 sp.sched_priority = sched_get_priority_min(SCHED_FIFO); in main() 179 ret = pthread_setschedparam(child, SCHED_FIFO, &sp); in main() 191 check_param(child, SCHED_FIFO, sp.sched_priority); in main() 199 sp.sched_priority = sched_get_priority_max(SCHED_FIFO); in main() 217 check_param(child, SCHED_FIFO, sched_get_priority_max(SCHED_FIFO)); in main() [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/ |
H A D | 2-1.c | 11 * priorities for the SCHED_FIFO policy. 20 * 2. Set the scheduling policy to SCHED_FIFO with a mean priority. 61 param.sched_priority = sched_get_priority_min(SCHED_FIFO); in child_process() 109 param.sched_priority = (sched_get_priority_min(SCHED_FIFO) + in main() 110 sched_get_priority_max(SCHED_FIFO)) / 2; in main() 112 if (sched_setscheduler(getpid(), SCHED_FIFO, ¶m) == -1) { in main() 146 param.sched_priority = sched_get_priority_max(SCHED_FIFO); in main() 166 param.sched_priority = sched_get_priority_min(SCHED_FIFO); in main()
|
H A D | 9-1.c | 24 * 2. Change the policy to SCHED_FIFO and set minimum priority. 57 param.sched_priority = sched_get_priority_max(SCHED_FIFO); in child_process() 124 mean_prio = (sched_get_priority_min(SCHED_FIFO) + in main() 125 sched_get_priority_max(SCHED_FIFO)) / 2; in main() 142 param.sched_priority = sched_get_priority_min(SCHED_FIFO); in main() 143 if (sched_setscheduler(getpid(), SCHED_FIFO, ¶m) == -1) { in main()
|
H A D | 23-6.c | 64 param.sched_priority = sched_get_priority_min(SCHED_FIFO); in main() 66 sched_setscheduler(0, SCHED_FIFO, ¶m); in main()
|
/third_party/ltp/testcases/realtime/perf/latency/ |
H A D | pthread_cond_latency.c | 119 prio = sched_get_priority_max(SCHED_FIFO); in test_signal() 125 if (sched_setscheduler(getpid(), SCHED_FIFO, &schparm) != 0) { in test_signal() 134 if (pthread_attr_setschedpolicy(&attr, SCHED_FIFO) != 0) { in test_signal() 200 sp.sched_priority = sched_get_priority_max(SCHED_FIFO); in main() 205 if (sched_setscheduler(0, SCHED_FIFO, &sp) != 0) { in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/ |
H A D | 15-2.c | 44 max_priority = sched_get_priority_max(SCHED_FIFO); in main() 46 sched_get_priority_min(SCHED_FIFO) : max_priority; in main() 66 if (sched_setscheduler(getpid(), SCHED_FIFO, ¶m) == -1) { in main()
|
H A D | 22-2.c | 43 max_priority = sched_get_priority_max(SCHED_FIFO); in main() 45 sched_get_priority_min(SCHED_FIFO) : max_priority; in main() 47 if (sched_setscheduler(getpid(), SCHED_FIFO, ¶m) == -1) { in main()
|
H A D | 16-1.c | 37 new_policy = (old_policy == SCHED_FIFO) ? SCHED_RR : SCHED_FIFO; in main()
|
H A D | 21-1.c | 30 param.sched_priority = sched_get_priority_max(SCHED_FIFO); in main() 48 result = sched_setscheduler(child_pid, SCHED_FIFO, ¶m); in main()
|
H A D | 15-1.c | 39 new_policy = (sched_getscheduler(getpid()) == SCHED_FIFO) ? in main() 40 SCHED_RR : SCHED_FIFO; in main()
|
H A D | 20-1.c | 74 param.sched_priority = sched_get_priority_max(SCHED_FIFO); in main() 76 result = sched_setscheduler(1, SCHED_FIFO, ¶m); in main()
|
H A D | 17-6.c | 89 policy = old_policy == SCHED_FIFO ? SCHED_RR : SCHED_FIFO; in main()
|
H A D | 17-7.c | 50 policy = old_policy == SCHED_FIFO ? SCHED_RR : SCHED_FIFO; in main()
|
H A D | 22-1.c | 44 new_policy = (sched_getscheduler(getpid()) == SCHED_FIFO) ? in main() 45 SCHED_RR : SCHED_FIFO; in main()
|
H A D | 4-1.c | 38 new_policy = (old_policy == SCHED_FIFO) ? SCHED_RR : SCHED_FIFO; in main()
|
/third_party/musl/libc-test/src/functionalext/thread/ |
H A D | pthread_rwlock_wrlock.c | 41 param.sched_priority = sched_get_priority_max(SCHED_FIFO); // 获取最高优先级 in RwlockClockRealTimeOut2() 42 if (pthread_setschedparam(pthread_self(), SCHED_FIFO, ¶m) != 0) { in RwlockClockRealTimeOut2() 90 param.sched_priority = sched_get_priority_max(SCHED_FIFO); // 获取最高优先级 in RwlockClockMonotonicTimeOut2() 91 if (pthread_setschedparam(pthread_self(), SCHED_FIFO, ¶m) != 0) { in RwlockClockMonotonicTimeOut2() 139 param.sched_priority = sched_get_priority_max(SCHED_FIFO); // 获取最高优先级 in RwlockMonotonicTime2() 140 if (pthread_setschedparam(pthread_self(), SCHED_FIFO, ¶m) != 0) { in RwlockMonotonicTime2()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/ |
H A D | 1-6.c | 192 {SCHED_FIFO, MIN}, 193 {SCHED_FIFO, HALF}, 194 {SCHED_FIFO, MAX_1}, 222 case SCHED_FIFO: in sched_policy_name() 223 return "SCHED_FIFO"; in sched_policy_name()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_setprioceiling/ |
H A D | 1-1.c | 15 * 2. Get the min and max boundries for SCHED_FIFO of what prioceiling can be. 16 * 3. In a for loop, go through each valid SCHED_FIFO value, set the prioceiling. 43 /* Get the max and min prio according to SCHED_FIFO (posix scheduling policy) */ in main() 44 max_prio = sched_get_priority_max(SCHED_FIFO); in main() 45 min_prio = sched_get_priority_min(SCHED_FIFO); in main() 49 * of SCHED_FIFO policy */ in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_getscheduler/ |
H A D | 3-1.c | 23 #ifdef SCHED_FIFO 25 SCHED_FIFO, "SCHED_FIFO"},
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_getprioceiling/ |
H A D | 1-1.c | 62 /* Get the max and min according to SCHED_FIFO */ in main() 63 max_prio = sched_get_priority_max(SCHED_FIFO); in main() 64 min_prio = sched_get_priority_min(SCHED_FIFO); in main() 69 ("Test FAILED: Default prioceiling %d is not compliant with SCHED_FIFO boundary.\n", in main()
|
H A D | 1-2.c | 15 * 2. Get the min and max boundries for SCHED_FIFO of what prioceiling can be. 16 * 3. In a for loop, go through each valid SCHED_FIFO value, set the prioceiling, then 44 /* Get the max and min prio according to SCHED_FIFO (posix scheduling policy) */ in main() 45 max_prio = sched_get_priority_max(SCHED_FIFO); in main() 46 min_prio = sched_get_priority_min(SCHED_FIFO); in main() 50 * of SCHED_FIFO policy */ in main() 63 /* Make sure that prioceiling is withing the legal SCHED_FIFO boundries. */ in main()
|
/third_party/ltp/testcases/realtime/func/prio-wake/ |
H A D | prio-wake.c | 197 numprios = sched_get_priority_max(SCHED_FIFO) - in main() 198 sched_get_priority_min(SCHED_FIFO); in main() 205 prio = sched_get_priority_min(SCHED_FIFO); in main()
|
/third_party/ltp/testcases/kernel/sched/tool/ |
H A D | trace_sched.c | 174 /* the policy set if SCHED_FIFO or SCHED_RR. The priority if this*/ 207 if (((max_priority = sched_get_priority_max(SCHED_FIFO)) == -1) || in thread_func() 208 ((min_priority = sched_get_priority_min(SCHED_FIFO)) == -1)) { in thread_func() 302 int spcy = SCHED_FIFO; /* scheduling policy for the tasks. */ in main() 339 case 'p': /* schedular policy. default SCHED_FIFO */ in main() 341 spcy = SCHED_FIFO; in main()
|
/third_party/ltp/testcases/realtime/func/prio-preempt/ |
H A D | prio-preempt.c | 27 * SCHED_FIFO + 80 242 sched_get_priority_min(SCHED_FIFO) + in master_thread() 251 sched_get_priority_min(SCHED_FIFO) + in master_thread() 266 sched_get_priority_min(SCHED_FIFO) + in master_thread() 322 sched_get_priority_min(SCHED_FIFO) + pri_boost); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getschedpolicy/ |
H A D | 2-1.c | 26 #define FIFOPOLICY SCHED_FIFO 41 case SCHED_FIFO: in verify_policy()
|