Home
last modified time | relevance | path

Searched refs:schedparam (Results 1 - 25 of 49) sorted by relevance

12

/kernel/liteos_a/testsuites/kernel/sample/posix/pthread/full/
H A DIt_posix_pthread_205.c45 struct sched_param schedparam; in PthreadF01() local
55 ret = pthread_getschedparam(pthread_self(), &policy, &schedparam); in PthreadF01()
58 ICUNIT_TRACK_EQUAL(schedparam.sched_priority, priority, schedparam.sched_priority); in PthreadF01()
66 struct sched_param schedparam; in PthreadF02() local
68 schedparam.sched_priority = sched_get_priority_max(SCHED_RR) - 1; in PthreadF02()
69 ICUNIT_TRACK_EQUAL(schedparam.sched_priority, OS_TASK_PRIORITY_LOWEST - 1, schedparam.sched_priority); in PthreadF02()
71 schedparam.sched_priority = sched_get_priority_max(SCHED_RR); in PthreadF02()
72 ICUNIT_TRACK_EQUAL(schedparam in PthreadF02()
[all...]
H A DIt_posix_pthread_187.c43 struct sched_param schedparam; in PthreadF01() local
49 ret = pthread_getschedparam(self, &policy, &schedparam); in PthreadF01()
53 ICUNIT_TRACK_EQUAL(schedparam.sched_priority, paramTest->priority, schedparam.sched_priority); in PthreadF01()
66 struct sched_param schedparam; in Testcase() local
84 schedparam.sched_priority = paramTest.priority; in Testcase()
85 ret = pthread_attr_setschedparam(&attr, &schedparam); in Testcase()
93 ICUNIT_ASSERT_EQUAL(pthreadData->attr.schedparam.sched_priority, paramTest.priority, in Testcase()
94 pthreadData->attr.schedparam.sched_priority); in Testcase()
H A DIt_posix_pthread_186.c43 struct sched_param schedparam; in PthreadF01() local
49 ret = pthread_getschedparam(self, &policy, &schedparam); in PthreadF01()
53 dprintf("sched_priority=:%d\n", schedparam.sched_priority); in PthreadF01()
66 struct sched_param schedparam; in Testcase() local
84 schedparam.sched_priority = paramTest.priority; in Testcase()
85 ret = pthread_attr_setschedparam(&attr, &schedparam); in Testcase()
88 attr.schedparam.sched_priority = paramTest.priority; in Testcase()
H A DIt_posix_pthread_206.c44 struct sched_param schedparam; in PthreadF01() local
49 schedparam.sched_priority = sched_get_priority_min(g_pthreadSchedPolicy); in PthreadF01()
51 ret = pthread_setschedparam(pthread_self(), g_pthreadSchedPolicy, &schedparam); in PthreadF01()
58 ICUNIT_TRACK_EQUAL(schedparam1.sched_priority, schedparam.sched_priority, schedparam1.sched_priority); in PthreadF01()
61 schedparam.sched_priority++; in PthreadF01()
63 ret = pthread_setschedparam(pthread_self(), SCHED_RR, &schedparam); in PthreadF01()
70 ICUNIT_TRACK_EQUAL(schedparam1.sched_priority, schedparam.sched_priority, schedparam1.sched_priority); in PthreadF01()
H A DIt_posix_pthread_188.c43 struct sched_param schedparam; in PthreadF01() local
49 ret = pthread_getschedparam(self, &policy, &schedparam); in PthreadF01()
53 ICUNIT_TRACK_EQUAL(schedparam.sched_priority, paramTest->priority, schedparam.sched_priority); in PthreadF01()
66 struct sched_param schedparam; in Testcase() local
88 schedparam.sched_priority = paramTest.priority; in Testcase()
90 ret = pthread_attr_setschedparam(&attr, &schedparam); in Testcase()
H A DIt_posix_pthread_044.c52 ICUNIT_GOTO_EQUAL(info->attr.schedparam.sched_priority, 3, info->attr.schedparam.sched_priority, EXIT); in PthreadF02()
73 ICUNIT_GOTO_EQUAL(info->attr.schedparam.sched_priority, 4, info->attr.schedparam.sched_priority, EXIT); in PthreadF01()
/kernel/liteos_a/testsuites/unittest/libc/posix/pthread/full/
H A DIt_posix_pthread_205.cpp38 struct sched_param schedparam; in pthread_f01() local
48 ret = pthread_getschedparam(pthread_self(), &policy, &schedparam); in pthread_f01()
51 ICUNIT_TRACK_EQUAL(schedparam.sched_priority, priority, schedparam.sched_priority); in pthread_f01()
59 struct sched_param schedparam; in pthread_f02() local
61 schedparam.sched_priority = sched_get_priority_max(SCHED_RR) - 1; in pthread_f02()
62 ICUNIT_TRACK_EQUAL(schedparam.sched_priority, OS_TASK_PRIORITY_LOWEST - 1, schedparam.sched_priority); in pthread_f02()
64 schedparam.sched_priority = sched_get_priority_max(SCHED_RR); // priority = 31 in pthread_f02()
65 ICUNIT_TRACK_EQUAL(schedparam in pthread_f02()
[all...]
H A DIt_posix_pthread_186.cpp36 struct sched_param schedparam; in pthread_f01() local
42 ret = pthread_getschedparam(self, &policy, &schedparam); in pthread_f01()
45 ICUNIT_TRACK_EQUAL(schedparam.sched_priority, 10, schedparam.sched_priority); in pthread_f01()
57 struct sched_param schedparam; in Testcase() local
75 schedparam.sched_priority = paramTest.priority; in Testcase()
76 ret = pthread_attr_setschedparam(&attr, &schedparam); in Testcase()
79 schedparam.sched_priority = 10; in Testcase()
80 ret = pthread_attr_setschedparam(&attr, &schedparam); in Testcase()
H A DIt_posix_pthread_187.cpp36 struct sched_param schedparam; in pthread_f01() local
42 ret = pthread_getschedparam(self, &policy, &schedparam); in pthread_f01()
46 ICUNIT_TRACK_EQUAL(schedparam.sched_priority, paramTest->priority, schedparam.sched_priority); in pthread_f01()
58 struct sched_param schedparam; in Testcase() local
76 schedparam.sched_priority = paramTest.priority; in Testcase()
77 ret = pthread_attr_setschedparam(&attr, &schedparam); in Testcase()
H A DIt_posix_pthread_188.cpp36 struct sched_param schedparam; in pthread_f01() local
42 ret = pthread_getschedparam(self, &policy, &schedparam); in pthread_f01()
46 ICUNIT_TRACK_EQUAL(schedparam.sched_priority, paramTest->priority, schedparam.sched_priority); in pthread_f01()
58 struct sched_param schedparam; in Testcase() local
80 schedparam.sched_priority = paramTest.priority; in Testcase()
82 ret = pthread_attr_setschedparam(&attr, &schedparam); in Testcase()
H A DIt_posix_pthread_206.cpp37 struct sched_param schedparam; in pthread_f01() local
42 schedparam.sched_priority = sched_get_priority_min(g_pthreadSchedPolicy); in pthread_f01()
44 ret = pthread_setschedparam(pthread_self(), g_pthreadSchedPolicy, &schedparam); in pthread_f01()
51 ICUNIT_TRACK_EQUAL(schedparam1.sched_priority, schedparam.sched_priority, schedparam1.sched_priority); in pthread_f01()
54 schedparam.sched_priority++; in pthread_f01()
56 ret = pthread_setschedparam(pthread_self(), SCHED_RR, &schedparam); in pthread_f01()
63 ICUNIT_TRACK_EQUAL(schedparam1.sched_priority, schedparam.sched_priority, schedparam1.sched_priority); in pthread_f01()
H A DIt_posix_pthread_066.cpp56 struct sched_param schedparam; in pthread_f01() local
68 schedparam.sched_priority = 8; in pthread_f01()
69 pthread_attr_setschedparam(&attr, &schedparam); in pthread_f01()
97 struct sched_param schedparam; in Testcase() local
105 schedparam.sched_priority = 9; in Testcase()
106 pthread_attr_setschedparam(&attr, &schedparam); in Testcase()
H A DIt_posix_pthread_094.cpp56 struct sched_param schedparam; in pthread_f01() local
68 schedparam.sched_priority = 15; in pthread_f01()
69 pthread_attr_setschedparam(&attr, &schedparam); in pthread_f01()
86 struct sched_param schedparam; in Testcase() local
94 schedparam.sched_priority = 10; in Testcase()
95 pthread_attr_setschedparam(&attr, &schedparam); in Testcase()
H A DIt_posix_pthread_116.cpp90 struct sched_param schedparam; in Testcase() local
94 schedparam.sched_priority = PRI; in Testcase()
95 pthread_attr_setschedparam(&attr, &schedparam); in Testcase()
102 schedparam.sched_priority = PRI - 1; in Testcase()
103 pthread_attr_setschedparam(&attr, &schedparam); in Testcase()
H A DIt_posix_pthread_095.cpp61 struct sched_param schedparam; in pthread_f01() local
74 schedparam.sched_priority = 26; in pthread_f01()
75 pthread_attr_setschedparam(&attr, &schedparam); in pthread_f01()
/kernel/liteos_a/testsuites/unittest/libc/posix/mqueue/full/
H A DIt_posix_queue_076.cpp58 struct sched_param schedparam; in PthreadF02() local
75 schedparam.sched_priority = MQUEUE_PTHREAD_PRIORITY_TEST2; in PthreadF02()
76 ret = pthread_attr_setschedparam(&attr1, &schedparam); in PthreadF02()
117 struct sched_param schedparam; in Testcase() local
124 schedparam.sched_priority = MQUEUE_PTHREAD_PRIORITY_TEST2; in Testcase()
125 ret = pthread_attr_setschedparam(&attr1, &schedparam); in Testcase()
H A DIt_posix_queue_118.cpp92 struct sched_param schedparam; in Testcase() local
111 schedparam.sched_priority = MQUEUE_PTHREAD_PRIORITY_TEST2; in Testcase()
112 ret = pthread_attr_setschedparam(&attr1, &schedparam); in Testcase()
121 schedparam.sched_priority = MQUEUE_PTHREAD_PRIORITY_TEST2; in Testcase()
122 ret = pthread_attr_setschedparam(&attr2, &schedparam); in Testcase()
H A DIt_posix_queue_075.cpp60 struct sched_param schedparam; in Testcase() local
77 schedparam.sched_priority = MQUEUE_PTHREAD_PRIORITY_TEST2; in Testcase()
79 ret = pthread_attr_setschedparam(&attr1, &schedparam); in Testcase()
H A DIt_posix_queue_079.cpp92 struct sched_param schedparam; in Testcase() local
112 schedparam.sched_priority = MQUEUE_PTHREAD_PRIORITY_TEST2; in Testcase()
113 ret = pthread_attr_setschedparam(&attr1, &schedparam); in Testcase()
H A DIt_posix_queue_078.cpp57 struct sched_param schedparam; in Testcase() local
91 schedparam.sched_priority = MQUEUE_PTHREAD_PRIORITY_TEST2; in Testcase()
92 ret = pthread_attr_setschedparam(&attr1, &schedparam); in Testcase()
H A DIt_posix_queue_077.cpp59 struct sched_param schedparam; in Testcase() local
81 schedparam.sched_priority = MQUEUE_PTHREAD_PRIORITY_TEST2; in Testcase()
82 ret = pthread_attr_setschedparam(&attr1, &schedparam); in Testcase()
H A DIt_posix_queue_111.cpp109 struct sched_param schedparam; in Testcase() local
116 schedparam.sched_priority = MQUEUE_PTHREAD_PRIORITY_TEST2; in Testcase()
117 ret = pthread_attr_setschedparam(&attr1, &schedparam); in Testcase()
H A DIt_posix_queue_113.cpp60 struct sched_param schedparam; in Testcase() local
80 schedparam.sched_priority = MQUEUE_PTHREAD_PRIORITY_TEST2; in Testcase()
81 ret = pthread_attr_setschedparam(&attr1, &schedparam); in Testcase()
/kernel/liteos_a/testsuites/unittest/fuzz/
H A Dposix_spawnattr_getschedparam_fuzzer.cpp38 struct sched_param schedparam; in TestPosixSpawnattrGetschedparam() local
46 (char *)&schedparam); in TestPosixSpawnattrGetschedparam()
H A Dposix_spawnattr_setschedparam_fuzzer.cpp39 struct sched_param schedparam; in TestPosixSpawnattrSetschedparam() local
47 (char *)&schedparam); in TestPosixSpawnattrSetschedparam()

Completed in 7 milliseconds

12