/third_party/ltp/include/ |
H A D | tst_sched.h | 53 return TST_LIBC_SCHED_SCALL_(sched_setscheduler, pid, policy, param); in libc_sched_setscheduler() 66 int (*sched_setscheduler)(pid_t pid, int policy, const struct sched_param *param); member 72 .sched_setscheduler = libc_sched_setscheduler, 78 .sched_setscheduler = sys_sched_setscheduler,
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/ |
H A D | 19-5.c | 11 * Test that sched_setscheduler() sets errno == EINVAL when the policy value is 16 * and sched_setscheduler for which the result code -1 indicate an error.) 17 * If no error occurs whith -1, the test will run sched_setscheduler with the 36 result = sched_setscheduler(0, -1, ¶m); in main() 56 result = sched_setscheduler(0, INVALID_POLICY, ¶m); in main()
|
H A D | 19-4.c | 11 * Test that sched_setscheduler() sets errno == EINVAL when 42 result = sched_setscheduler(0, SCHED_SPORADIC, ¶m); in main() 59 result = sched_setscheduler(0, SCHED_SPORADIC, ¶m); in main()
|
H A D | 16-1.c | 17 * 3. Check that sched_setscheduler return the old policy. 40 result = sched_setscheduler(0, new_policy, ¶m); in main()
|
H A D | 19-3.c | 11 * Test that sched_setscheduler() sets errno == EINVAL when the 45 result = sched_setscheduler(0, SCHED_SPORADIC, ¶m); in main()
|
H A D | 19-2.c | 11 * Test that sched_setscheduler() sets errno == EINVAL when the 40 result = sched_setscheduler(0, SCHED_SPORADIC, ¶m); in main()
|
H A D | 21-1.c | 11 * Test that sched_setscheduler() sets errno == ESRCH when no process can be 15 * sched_setscheduler with the pid of defunct child. 48 result = sched_setscheduler(child_pid, SCHED_FIFO, ¶m); in main() 58 ("This process does not have the permission to invoke sched_setscheduler().\nTry to launch this test as root.\n"); in main()
|
/third_party/toybox/toys/other/ |
H A D | chrt.c | 47 #define sched_setscheduler(pid, scheduler, param) \ macro 94 if (sched_setscheduler(TT.p, pol, (void *)&pri)) in chrt_main() 95 perror_exit("sched_setscheduler"); in chrt_main()
|
/third_party/ltp/testcases/kernel/syscalls/sched_setscheduler/ |
H A D | sched_setscheduler03.c | 7 * A regression test for can_nice call usage in sched_setscheduler, 100 TST_EXP_PASS(tv->sched_setscheduler(*cases[i].pid, cases[i].policy, in verify_fn() 131 if (tv->sched_setscheduler(0, SCHED_OTHER, ¶m[0])) in setup() 132 tst_brk(TBROK | TERRNO, "sched_setscheduler(0, SCHED_OTHER, 0)"); in setup()
|
H A D | sched_setscheduler02.c | 10 * Testcase to test whether sched_setscheduler(2) sets the errnos 15 * Call sched_setscheduler as a non-root uid, and expect EPERM 48 TST_EXP_FAIL(tv->sched_setscheduler(0, SCHED_FIFO, &p), EPERM, in run() 49 "sched_setscheduler(0, SCHED_FIFO, %d)", in run()
|
/third_party/ltp/testcases/realtime/perf/latency/ |
H A D | pthread_cond_latency.c | 125 if (sched_setscheduler(getpid(), SCHED_FIFO, &schparm) != 0) { in test_signal() 126 perror("sched_setscheduler"); in test_signal() 205 if (sched_setscheduler(0, SCHED_FIFO, &sp) != 0) { in main() 206 perror("sched_setscheduler"); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/definitions/sched_h/ |
H A D | 17-1-buildonly.c | 12 * int sched_setscheduler(pid_t, int, const struct sched_param *); 24 dummyvar = sched_setscheduler; in dummyfcn()
|
/third_party/alsa-utils/include/ |
H A D | os_compat.h | 40 #define sched_setscheduler(pid, policy, param) (-1) macro
|
/third_party/musl/porting/linux/user/src/sched/ |
H A D | sched_setscheduler.c | 5 int sched_setscheduler(pid_t pid, int sched, const struct sched_param *param) in sched_setscheduler() function
|
/third_party/musl/porting/liteos_a/user/src/sched/ |
H A D | sched_setscheduler.c | 6 int sched_setscheduler(pid_t pid, int sched, const struct sched_param *param) in sched_setscheduler() function
|
/third_party/musl/libc-test/src/functionalext/sched/ |
H A D | sched_scheduler.c | 24 * @tc.name : sched_setscheduler 34 EXPECT_EQ(sched_setscheduler_0010, sched_setscheduler(pid, sched, NULL), -1); in sched_setscheduler_0010()
|
/third_party/musl/src/sched/ |
H A D | sched_setscheduler.c | 8 int sched_setscheduler(pid_t pid, int sched, const struct sched_param *param) in sched_setscheduler() function
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_rr_get_interval/ |
H A D | 2-1.c | 27 if (sched_setscheduler(0, SCHED_RR, ¶m) == -1) { in main() 28 printf("sched_setscheduler failed: %d (%s)\n", in main()
|
H A D | 3-1.c | 33 if (sched_setscheduler(0, SCHED_RR, ¶m) == -1) { in main() 34 printf("sched_setscheduler failed: %d (%s)\n", in main()
|
H A D | 1-1.c | 32 if (sched_setscheduler(0, SCHED_RR, ¶m) == -1) { in main() 33 printf("sched_setscheduler failed: %d (%s)\n", in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/ |
H A D | 23-2.c | 41 if (sched_setscheduler(0, SCHED_SPORADIC, ¶m) == -1) { in main()
|
/third_party/musl/libc-test/src/functional/ |
H A D | sched_setscheduler.c | 26 TEST(sched_setscheduler(pid, sched, ¶m));
in main()
|
/third_party/ltp/testcases/kernel/syscalls/sched_getscheduler/ |
H A D | sched_getscheduler01.c | 16 * as what set by the previous call to sched_setscheduler(). 19 * sched_setscheduler(). 44 TST_EXP_PASS_SILENT(tv->sched_setscheduler(0, tc->policy, &p)); in run()
|
/third_party/ltp/testcases/kernel/syscalls/sched_setparam/ |
H A D | sched_setparam02.c | 41 TST_EXP_PASS_SILENT(tv->sched_setscheduler(0, tc->policy, &p)); in run()
|
H A D | sched_setparam03.c | 51 if (tv->sched_setscheduler(0, SCHED_FIFO, &p)) in setup()
|