Home
last modified time | relevance | path

Searched refs:sched_setscheduler (Results 1 - 25 of 87) sorted by relevance

1234

/third_party/ltp/include/
H A Dtst_sched.h53 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 D19-5.c11 * 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, &param); in main()
56 result = sched_setscheduler(0, INVALID_POLICY, &param); in main()
H A D19-4.c11 * Test that sched_setscheduler() sets errno == EINVAL when
42 result = sched_setscheduler(0, SCHED_SPORADIC, &param); in main()
59 result = sched_setscheduler(0, SCHED_SPORADIC, &param); in main()
H A D16-1.c17 * 3. Check that sched_setscheduler return the old policy.
40 result = sched_setscheduler(0, new_policy, &param); in main()
H A D19-3.c11 * Test that sched_setscheduler() sets errno == EINVAL when the
45 result = sched_setscheduler(0, SCHED_SPORADIC, &param); in main()
H A D19-2.c11 * Test that sched_setscheduler() sets errno == EINVAL when the
40 result = sched_setscheduler(0, SCHED_SPORADIC, &param); in main()
H A D21-1.c11 * 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, &param); 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 Dchrt.c47 #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 Dsched_setscheduler03.c7 * 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, &param[0])) in setup()
132 tst_brk(TBROK | TERRNO, "sched_setscheduler(0, SCHED_OTHER, 0)"); in setup()
H A Dsched_setscheduler02.c10 * 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 Dpthread_cond_latency.c125 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 D17-1-buildonly.c12 * int sched_setscheduler(pid_t, int, const struct sched_param *);
24 dummyvar = sched_setscheduler; in dummyfcn()
/third_party/alsa-utils/include/
H A Dos_compat.h40 #define sched_setscheduler(pid, policy, param) (-1) macro
/third_party/musl/porting/linux/user/src/sched/
H A Dsched_setscheduler.c5 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 Dsched_setscheduler.c6 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 Dsched_scheduler.c24 * @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 Dsched_setscheduler.c8 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 D2-1.c27 if (sched_setscheduler(0, SCHED_RR, &param) == -1) { in main()
28 printf("sched_setscheduler failed: %d (%s)\n", in main()
H A D3-1.c33 if (sched_setscheduler(0, SCHED_RR, &param) == -1) { in main()
34 printf("sched_setscheduler failed: %d (%s)\n", in main()
H A D1-1.c32 if (sched_setscheduler(0, SCHED_RR, &param) == -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 D23-2.c41 if (sched_setscheduler(0, SCHED_SPORADIC, &param) == -1) { in main()
/third_party/musl/libc-test/src/functional/
H A Dsched_setscheduler.c26 TEST(sched_setscheduler(pid, sched, &param)); in main()
/third_party/ltp/testcases/kernel/syscalls/sched_getscheduler/
H A Dsched_getscheduler01.c16 * 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 Dsched_setparam02.c41 TST_EXP_PASS_SILENT(tv->sched_setscheduler(0, tc->policy, &p)); in run()
H A Dsched_setparam03.c51 if (tv->sched_setscheduler(0, SCHED_FIFO, &p)) in setup()

Completed in 5 milliseconds

1234