Home
last modified time | relevance | path

Searched refs:sched_priority (Results 1 – 25 of 142) sorted by relevance

123456

/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/
D1-1.c67 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()
D5-1.c38 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()
D23-6.c64 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/
D1-3.c63 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/
D1-6.c69 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()
D3-2.c363 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/
D4-1.c42 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()
D17-4.c40 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()
D17-3.c41 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()
D17-7.c41 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()
D17-6.c80 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()
D17-1.c64 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/
Dsched_xetattr.c107 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()
Dsched_xetscheduler.c52 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/
Dsched_xetattr.c107 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()
Dsched_xetscheduler.c52 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()
Dsched_xetparam.c18 param->sched_priority, rc); in main()
20 param->sched_priority = -1; in main()
23 param->sched_priority, rc, errno2name()); in main()
/external/strace/tests/
Dsched_xetattr.c107 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()
Dsched_xetscheduler.c52 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()
Dsched_xetparam.c18 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/
D4-1.c104 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/
D1-1.c34 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/
Dsched_setparam02.c111 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/
D2-1.c28 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/
D1-2.c64 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()

123456