/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/ |
D | 1-1.c | 67 old_priority = param.sched_priority; in main() 76 new_priority = param.sched_priority == min_priority ? in main() 77 (param.sched_priority = sched_get_priority_max(policy)) : in main() 78 (param.sched_priority = min_priority); in main() 89 if (result == 0 && param.sched_priority == new_priority) { in main() 93 } else if (result == 0 && param.sched_priority == old_priority) { in main() 105 param.sched_priority = (new_priority -= 2); in main() 108 if (result == 0 && param.sched_priority == new_priority) { in main()
|
D | 5-1.c | 38 old_priority = param.sched_priority; in main() 41 param.sched_priority = new_priority; in main() 50 if (result == 0 && param.sched_priority == new_priority) { in main() 53 } else if (result == 0 && param.sched_priority == old_priority) { in main()
|
D | 23-6.c | 64 param.sched_priority = sched_get_priority_min(SCHED_FIFO); in main() 78 old_priority = param.sched_priority; in main() 80 param.sched_priority++; in main() 92 if (param.sched_priority == old_priority) { in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_getschedparam/ |
D | 1-3.c | 63 if (t_parm.sched_priority != priority) { in check_param() 147 sp.sched_priority = sched_get_priority_min(SCHED_RR); in main() 148 if (sp.sched_priority == -1) { in main() 165 check_param(child, SCHED_RR, sp.sched_priority); in main() 173 sp.sched_priority = sched_get_priority_min(SCHED_FIFO); in main() 174 if (sp.sched_priority == -1) { 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() 200 if (sp.sched_priority == -1) { in main() 205 ret = pthread_setschedprio(child, sp.sched_priority); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/ |
D | 1-6.c | 69 struct sched_param sched_param = {.sched_priority = prio}; in init_attr() 146 int sched_priority; member 168 if (p->sched_priority != param.sched_priority) { in do_test() 170 p->sched_priority, param.sched_priority); in do_test() 175 run_hp_threads(p->sched_policy, p->sched_priority + 1); in do_test() 255 p.sched_priority = get_prio(&tcases[i]); in main() 257 init_attr(&attr, p.sched_policy, p.sched_priority); in main() 260 sched_policy_name(p.sched_policy), p.sched_priority); in main()
|
D | 3-2.c | 363 newparam.sched_priority = sched_get_priority_max(newpol); in schedtest() 365 if (newparam.sched_priority == td->param.sched_priority) in schedtest() 366 newparam.sched_priority--; in schedtest() 608 if (td.param.sched_priority != in main() 609 param_ori.sched_priority) { in main() 638 param_ori.sched_priority) in main() 641 tmp.sched_priority = newpol_max; in main() 679 if (td.param.sched_priority != in main() 680 param_ori.sched_priority) { in main() 700 if (td.param.sched_priority != in main() [all …]
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/ |
D | 4-1.c | 42 old_priority = param.sched_priority; in main() 44 (param.sched_priority = sched_get_priority_min(new_policy)) : in main() 45 (param.sched_priority = max_prio); in main() 60 if (result != -1 && param.sched_priority == new_priority && in main() 65 (param.sched_priority == old_priority || in main() 67 if (param.sched_priority == old_priority) { in main()
|
D | 17-4.c | 40 old_priority = param.sched_priority; in main() 50 param.sched_priority = (old_priority == max_priority) ? in main() 68 if (old_policy == new_policy && old_priority == param.sched_priority) { in main() 73 if (param.sched_priority != old_priority) { in main()
|
D | 17-3.c | 41 old_priority = param.sched_priority; in main() 56 param.sched_priority = sched_get_priority_max(SCHED_SPORADIC); in main() 71 if (old_policy == new_policy && old_priority == param.sched_priority) { in main() 76 if (param.sched_priority != old_priority) { in main()
|
D | 17-7.c | 41 old_priority = param.sched_priority; in main() 54 param.sched_priority = (old_priority == max_priority) ? in main() 86 if (old_policy == new_policy && old_priority == param.sched_priority) { in main() 91 if (param.sched_priority != old_priority) { in main()
|
D | 17-6.c | 80 old_priority = param.sched_priority; in main() 93 param.sched_priority = (old_priority == max_priority) ? in main() 109 if (old_policy == new_policy && old_priority == param.sched_priority) { in main() 114 if (param.sched_priority != old_priority) { in main()
|
D | 17-1.c | 64 old_priority = param.sched_priority; in main() 82 param.sched_priority = invalid_priority; in main() 99 old_priority == param.sched_priority) { in main() 102 if (param.sched_priority != old_priority) { in main()
|
/external/strace/tests-m32/ |
D | sched_xetattr.c | 107 attr->sched_priority, in main() 132 attr->sched_priority, in main() 153 attr->sched_priority, in main() 167 attr->sched_priority, in main() 187 attr->sched_priority, in main() 208 attr->sched_priority = 0xb8c8d8e8; in main() 224 attr->sched_priority, in main() 248 attr->sched_priority = 0xb8c8d8e8; in main() 264 attr->sched_priority, in main()
|
D | sched_xetscheduler.c | 52 param->sched_priority = -1; in main() 63 0xfaceda7a, param->sched_priority, sprintrc(rc)); in main() 67 param->sched_priority, sprintrc(rc)); in main() 71 param->sched_priority, sprintrc(rc)); in main()
|
/external/strace/tests-mx32/ |
D | sched_xetattr.c | 107 attr->sched_priority, in main() 132 attr->sched_priority, in main() 153 attr->sched_priority, in main() 167 attr->sched_priority, in main() 187 attr->sched_priority, in main() 208 attr->sched_priority = 0xb8c8d8e8; in main() 224 attr->sched_priority, in main() 248 attr->sched_priority = 0xb8c8d8e8; in main() 264 attr->sched_priority, in main()
|
D | sched_xetscheduler.c | 52 param->sched_priority = -1; in main() 63 0xfaceda7a, param->sched_priority, sprintrc(rc)); in main() 67 param->sched_priority, sprintrc(rc)); in main() 71 param->sched_priority, sprintrc(rc)); in main()
|
D | sched_xetparam.c | 18 param->sched_priority, rc); in main() 20 param->sched_priority = -1; in main() 23 param->sched_priority, rc, errno2name()); in main()
|
/external/strace/tests/ |
D | sched_xetattr.c | 107 attr->sched_priority, in main() 132 attr->sched_priority, in main() 153 attr->sched_priority, in main() 167 attr->sched_priority, in main() 187 attr->sched_priority, in main() 208 attr->sched_priority = 0xb8c8d8e8; in main() 224 attr->sched_priority, in main() 248 attr->sched_priority = 0xb8c8d8e8; in main() 264 attr->sched_priority, in main()
|
D | sched_xetscheduler.c | 52 param->sched_priority = -1; in main() 63 0xfaceda7a, param->sched_priority, sprintrc(rc)); in main() 67 param->sched_priority, sprintrc(rc)); in main() 71 param->sched_priority, sprintrc(rc)); in main()
|
D | sched_xetparam.c | 18 param->sched_priority, rc); in main() 20 param->sched_priority = -1; in main() 23 param->sched_priority, rc, errno2name()); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_setschedparam/ |
D | 4-1.c | 104 if (t_parm.sched_priority != priority) { in check_param() 117 sp.sched_priority = sched_get_priority_max(SCHED_RR); in threaded() 129 check_param(pthread_self(), SCHED_RR, sp.sched_priority); in threaded() 132 sp.sched_priority++; in threaded() 140 check_param(pthread_self(), SCHED_RR, sp.sched_priority - 1); in threaded()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_setschedprio/ |
D | 1-1.c | 34 sparam.sched_priority = priority; in a_thread_func() 46 printf("policy: %d, priority: %d\n", policy_1, sparam.sched_priority); in a_thread_func() 47 if (policy_1 != policy || sparam.sched_priority != priority) { in a_thread_func() 63 printf("policy: %d, priority: %d\n", policy_1, sparam.sched_priority); in a_thread_func() 64 if (sparam.sched_priority != (priority + 1)) { in a_thread_func()
|
/external/ltp/testcases/kernel/syscalls/sched_setparam/ |
D | sched_setparam02.c | 111 param1.sched_priority = 0; in main() 113 param1.sched_priority = 1; in main() 120 param.sched_priority = testcases[i].priority; in main() 173 if (p.sched_priority == testcases[i].priority) { in verify_priority() 177 " value as %d", p.sched_priority); in verify_priority()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_getparam/ |
D | 2-1.c | 28 param0.sched_priority = -1; in main() 29 param1.sched_priority = -1; in main() 35 param0.sched_priority == param1.sched_priority && errno == 0) { in main()
|
/external/ltp/testcases/open_posix_testsuite/functional/threads/schedule/ |
D | 1-2.c | 64 if (param.sched_priority != HIGH_PRIORITY) { in hi_prio_thread() 95 if (param.sched_priority != LOW_PRIORITY) { in low_prio_thread() 117 param.sched_priority = MID_PRIORITY; in main() 124 if (param.sched_priority != MID_PRIORITY) { in main() 135 param.sched_priority = HIGH_PRIORITY; in main() 143 param.sched_priority = LOW_PRIORITY; in main()
|