Home
last modified time | relevance | path

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

1234567

/third_party/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()
D23-4.c32 old_priority = param.sched_priority; in main()
35 param.sched_priority++; in main()
43 if (param.sched_priority == old_priority) { in main()
/third_party/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 …]
/third_party/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()
/third_party/ltp/testcases/kernel/syscalls/sched_setparam/
Dsched_setparam03.c24 struct sched_param p5 = { .sched_priority = 5 }; in run()
38 if (p.sched_priority == p5.sched_priority) in run()
39 tst_res(TPASS, "got expected priority %d", p.sched_priority); in run()
41 tst_res(TFAIL, "got priority %d, expected 5", p.sched_priority); in run()
47 struct sched_param p = { .sched_priority = 1 }; in setup()
Dsched_setparam02.c39 struct sched_param p = { .sched_priority = tc->param }; in run()
43 p.sched_priority = tc->priority; in run()
46 p.sched_priority = -1; in run()
49 if (p.sched_priority == tc->priority) { in run()
50 tst_res(TPASS, "got expected priority %d", p.sched_priority); in run()
53 p.sched_priority, tc->priority); in run()
/third_party/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()
/third_party/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()
/third_party/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()
/third_party/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()
/third_party/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()
D1-1.c25 param.sched_priority = -1; in main()
29 if (result == 0 && param.sched_priority != -1 && errno == 0) { in main()
44 if (param.sched_priority == -1) { in main()
/third_party/musl/libc-test/src/functionalext/supplement/thread/
Dpthread_attr_setschedparam.c29 setparam.sched_priority = 1; in pthread_attr_setschedparam_0100()
35 getparam.sched_priority = 0; in pthread_attr_setschedparam_0100()
38 EXPECT_EQ("pthread_attr_setschedparam_0100", getparam.sched_priority, setparam.sched_priority); in pthread_attr_setschedparam_0100()
/third_party/musl/porting/liteos_m/user/src/thread/
Dpthread_attr_setschedparam.c6 if (param->sched_priority < 0 || param->sched_priority > PTHREAD_PRIORITY_LOWEST) { in pthread_attr_setschedparam()
10 a->_a_prio = param->sched_priority; in pthread_attr_setschedparam()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedpolicy/
D2-1.c79 priorities[0] = sp.sched_priority; in thread_func()
81 priorities[1] = sp.sched_priority; in thread_func()
83 priorities[2] = sp.sched_priority; in thread_func()
110 sp.sched_priority = prio; in create_thread()
157 sp.sched_priority = PRIO_MAIN; in main()
/third_party/musl/porting/liteos_a/user/src/thread/
Dpthread_attr_setschedparam.c6 (param->sched_priority < 0 || param->sched_priority > PTHREAD_PRIORITY_LOWEST)) { in pthread_attr_setschedparam()
9 a->_a_prio = param->sched_priority; in pthread_attr_setschedparam()
/third_party/musl/src/thread/
Dpthread_attr_setschedparam.c7 (param->sched_priority < 0 || param->sched_priority > PTHREAD_PRIORITY_LOWEST)) { in pthread_attr_setschedparam()
13 a->_a_prio = param->sched_priority; in pthread_attr_setschedparam()

1234567