Searched refs:SCHED_FIFO (Results 1 - 25 of 113) sorted by relevance

12345

/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sched_h/
H A D8-1-buildonly.c11 * Test that SCHED_FIFO is defined
16 #ifndef SCHED_FIFO
17 #error SCHED_FIFO not defined
/external/bison/darwin-lib/
H A Dsched.h51 #if !(defined SCHED_FIFO && defined SCHED_RR && defined SCHED_OTHER)
52 # define SCHED_FIFO 1 macro
/external/bison/lib/
H A Dsched.in.h50 #if !(defined SCHED_FIFO && defined SCHED_RR && defined SCHED_OTHER)
51 # define SCHED_FIFO 1 macro
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_get_priority_max/
H A D1-2.c12 * success for SCHED_FIFO policy.
23 result = sched_get_priority_max(SCHED_FIFO);
26 printf("The maximum priority for policy SCHED_FIFO is %i.\n",
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_get_priority_min/
H A D1-2.c12 * success for SCHED_FIFO policy.
23 result = sched_get_priority_min(SCHED_FIFO);
26 printf("The minimum priority for policy SCHED_FIFO is %i.\n",
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_setprioceiling/
H A D1-1.c15 * 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) */
44 max_prio = sched_get_priority_max(SCHED_FIFO);
45 min_prio = sched_get_priority_min(SCHED_FIFO);
49 * of SCHED_FIFO policy */
H A D3-1.c39 prioceiling = sched_get_priority_min(SCHED_FIFO);
H A D3-2.c39 /* Set 'prioceiling' out of SCHED_FIFO boundry. */
40 prioceiling = sched_get_priority_max(SCHED_FIFO);
/external/strace/tests/
H A Dsched_xetscheduler.c17 case SCHED_FIFO:
18 scheduler = "SCHED_FIFO";
54 rc = syscall(__NR_sched_setscheduler, 0, SCHED_FIFO, NULL);
55 printf("sched_setscheduler(0, SCHED_FIFO, NULL) = %s\n", sprintrc(rc));
57 rc = syscall(__NR_sched_setscheduler, 0, SCHED_FIFO, param + 1);
58 printf("sched_setscheduler(0, SCHED_FIFO, %p) = %s\n", param + 1,
65 rc = syscall(__NR_sched_setscheduler, -1, SCHED_FIFO, param);
66 printf("sched_setscheduler(-1, SCHED_FIFO, [%d]) = %s\n",
69 rc = syscall(__NR_sched_setscheduler, 0, SCHED_FIFO, param);
70 printf("sched_setscheduler(0, SCHED_FIFO, [
[all...]
H A Dsched_get_priority_mxx.c14 int rc = syscall(__NR_sched_get_priority_min, SCHED_FIFO);
15 printf("sched_get_priority_min(SCHED_FIFO) = %d\n", rc);
/external/strace/tests-m32/
H A Dsched_xetscheduler.c17 case SCHED_FIFO:
18 scheduler = "SCHED_FIFO";
54 rc = syscall(__NR_sched_setscheduler, 0, SCHED_FIFO, NULL);
55 printf("sched_setscheduler(0, SCHED_FIFO, NULL) = %s\n", sprintrc(rc));
57 rc = syscall(__NR_sched_setscheduler, 0, SCHED_FIFO, param + 1);
58 printf("sched_setscheduler(0, SCHED_FIFO, %p) = %s\n", param + 1,
65 rc = syscall(__NR_sched_setscheduler, -1, SCHED_FIFO, param);
66 printf("sched_setscheduler(-1, SCHED_FIFO, [%d]) = %s\n",
69 rc = syscall(__NR_sched_setscheduler, 0, SCHED_FIFO, param);
70 printf("sched_setscheduler(0, SCHED_FIFO, [
[all...]
H A Dsched_get_priority_mxx.c14 int rc = syscall(__NR_sched_get_priority_min, SCHED_FIFO);
15 printf("sched_get_priority_min(SCHED_FIFO) = %d\n", rc);
/external/strace/tests-mx32/
H A Dsched_xetscheduler.c17 case SCHED_FIFO:
18 scheduler = "SCHED_FIFO";
54 rc = syscall(__NR_sched_setscheduler, 0, SCHED_FIFO, NULL);
55 printf("sched_setscheduler(0, SCHED_FIFO, NULL) = %s\n", sprintrc(rc));
57 rc = syscall(__NR_sched_setscheduler, 0, SCHED_FIFO, param + 1);
58 printf("sched_setscheduler(0, SCHED_FIFO, %p) = %s\n", param + 1,
65 rc = syscall(__NR_sched_setscheduler, -1, SCHED_FIFO, param);
66 printf("sched_setscheduler(-1, SCHED_FIFO, [%d]) = %s\n",
69 rc = syscall(__NR_sched_setscheduler, 0, SCHED_FIFO, param);
70 printf("sched_setscheduler(0, SCHED_FIFO, [
[all...]
H A Dsched_get_priority_mxx.c14 int rc = syscall(__NR_sched_get_priority_min, SCHED_FIFO);
15 printf("sched_get_priority_min(SCHED_FIFO) = %d\n", rc);
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_getprioceiling/
H A D1-2.c15 * 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) */
45 max_prio = sched_get_priority_max(SCHED_FIFO);
46 min_prio = sched_get_priority_min(SCHED_FIFO);
50 * of SCHED_FIFO policy */
63 /* Make sure that prioceiling is withing the legal SCHED_FIFO boundries. */
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_getscheduler/
H A D3-1.c23 #ifdef SCHED_FIFO
25 SCHED_FIFO, "SCHED_FIFO"},
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/
H A D16-1.c37 new_policy = (old_policy == SCHED_FIFO) ? SCHED_RR : SCHED_FIFO;
H A D21-1.c30 param.sched_priority = sched_get_priority_max(SCHED_FIFO);
48 result = sched_setscheduler(child_pid, SCHED_FIFO, &param);
/external/strace/xlat/
H A Dschedulers.h14 #if defined(SCHED_FIFO) || (defined(HAVE_DECL_SCHED_FIFO) && HAVE_DECL_SCHED_FIFO)
15 XLAT(SCHED_FIFO),
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedpolicy/
H A D1-2.c31 p.policy = SCHED_FIFO;
33 p.policy_label = "SCHED_FIFO";
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_getschedparam/
H A D1-3.c89 check_param(self, SCHED_FIFO, sched_get_priority_min(SCHED_FIFO));
103 check_param(self, SCHED_FIFO, sched_get_priority_max(SCHED_FIFO));
173 sp.sched_priority = sched_get_priority_min(SCHED_FIFO);
179 ret = pthread_setschedparam(child, SCHED_FIFO, &sp);
191 check_param(child, SCHED_FIFO, sp.sched_priority);
199 sp.sched_priority = sched_get_priority_max(SCHED_FIFO);
217 check_param(child, SCHED_FIFO, sched_get_priority_max(SCHED_FIFO));
[all...]
/external/ltp/testcases/open_posix_testsuite/functional/threads/pi_test/
H A Dpitest-6.c67 0, 0, 0, 1, SCHED_FIFO, "TL", 0, 0, 0, 0}, {
68 1, 0, 200, 2, SCHED_FIFO, "TP", 0, 0, 0, 0}, {
69 2, 0, 0, 3, SCHED_FIFO, "TF", 1, 0, 0, 0}, {
70 3, 0, 0, 3, SCHED_FIFO, "TF", 2, 0, 0, 0}, {
71 4, 0, 0, 3, SCHED_FIFO, "TF", 3, 0, 0, 0}, {
72 5, 0, 0, 3, SCHED_FIFO, "TF", 4, 0, 0, 0}, {
73 6, 0, 0, 3, SCHED_FIFO, "TF", 5, 0, 0, 0}, {
74 7, 0, 0, 3, SCHED_FIFO, "TF", 6, 0, 0, 0}
108 test_set_priority(pthread_self(), SCHED_FIFO, tp->priority); local
149 test_set_priority(pthread_self(), SCHED_FIFO, t local
174 test_set_priority(pthread_self(), SCHED_FIFO, 5); local
205 test_set_priority(pthread_self(), SCHED_FIFO, 4); local
241 test_set_priority(pthread_self(), SCHED_FIFO, 6); local
[all...]
H A Dpitest-1.c68 0, 0, 0, 1, SCHED_FIFO, "TL", 0, 0, 0, 0}, {
69 1, 0, 50, 2, SCHED_FIFO, "TP", 0, 0, 0, 0}, {
70 2, 0, 0, 3, SCHED_FIFO, "TF", 1, 0, 0, 0}, {
71 3, 0, 0, 3, SCHED_FIFO, "TF", 2, 0, 0, 0}, {
72 4, 0, 0, 3, SCHED_FIFO, "TF", 3, 0, 0, 0}, {
73 5, 0, 0, 3, SCHED_FIFO, "TF", 4, 0, 0, 0}, {
74 6, 0, 0, 3, SCHED_FIFO, "TF", 5, 0, 0, 0}, {
75 7, 0, 0, 3, SCHED_FIFO, "TF", 6, 0, 0, 0}
109 test_set_priority(pthread_self(), SCHED_FIFO, tp->priority); local
143 test_set_priority(pthread_self(), SCHED_FIFO, t local
175 test_set_priority(pthread_self(), SCHED_FIFO, 5); local
205 test_set_priority(pthread_self(), SCHED_FIFO, 4); local
241 test_set_priority(pthread_self(), SCHED_FIFO, 6); local
[all...]
H A Dpitest-4.c71 0, 0, 0, 1, SCHED_FIFO, "TL", 0, 0, 0, 0}, {
72 1, 0, 100, 4, SCHED_FIFO, "TP", 0, 0, 0, 0}, {
73 2, 0, 0, 2, SCHED_FIFO, "TF", 1, 0, 0, 0}, {
74 3, 0, 0, 2, SCHED_FIFO, "TF", 2, 0, 0, 0}, {
75 4, 0, 0, 2, SCHED_FIFO, "TF", 3, 0, 0, 0}, {
76 5, 0, 0, 2, SCHED_FIFO, "TF", 4, 0, 0, 0}, {
77 6, 0, 0, 2, SCHED_FIFO, "TF", 5, 0, 0, 0}, {
78 7, 0, 0, 2, SCHED_FIFO, "TF", 6, 0, 0, 0}
112 test_set_priority(pthread_self(), SCHED_FIFO, tp->priority); local
152 test_set_priority(pthread_self(), SCHED_FIFO, local
182 test_set_priority(pthread_self(), SCHED_FIFO, 3); local
214 test_set_priority(pthread_self(), SCHED_FIFO, 5); local
248 test_set_priority(pthread_self(), SCHED_FIFO, 8); local
[all...]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/
H A D2-1.c11 * 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);
110 param.sched_priority = (sched_get_priority_min(SCHED_FIFO) +
111 sched_get_priority_max(SCHED_FIFO)) / 2;
113 if (sched_setscheduler(getpid(), SCHED_FIFO, &param) == -1) {
144 param.sched_priority = sched_get_priority_max(SCHED_FIFO);
164 param.sched_priority = sched_get_priority_min(SCHED_FIFO);

Completed in 410 milliseconds

12345