/external/clang/test/CodeGen/ |
H A D | blocksignature.c | 23 void foo(int param) { argument 26 while (param--) 27 rand_r(^(char x, float y){ return x + (int)y + param + rand(); }); // generate a local block binding param
|
/external/compiler-rt/test/sanitizer_common/TestCases/Linux/ |
H A D | sched_getparam.cc | 8 struct sched_param param; local 9 int res = sched_getparam(0, ¶m); 11 if (param.sched_priority == 42) printf(".\n");
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_getparam/ |
H A D | 1-1.c | 12 * process specified by pid in the sched_param structure pointed to by param. 22 struct sched_param param; local 25 param.sched_priority = -1; 27 result = sched_getparam(getpid(), ¶m); 29 if (result == 0 && param.sched_priority != -1 && errno == 0) { 44 if (param.sched_priority == -1) {
|
H A D | 3-1.c | 20 struct sched_param param; local 23 param.sched_priority = -1; 25 result = sched_getparam(0, ¶m); 27 if (result == 0 && param.sched_priority != -1 && errno == 0) {
|
H A D | 4-1.c | 27 struct sched_param param; local 47 result = sched_getparam(child_pid, ¶m);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_rr_get_interval/ |
H A D | 2-1.c | 24 struct sched_param param; local 26 param.sched_priority = sched_get_priority_min(SCHED_RR); 27 if (sched_setscheduler(0, SCHED_RR, ¶m) == -1) {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/ |
H A D | 22-1.c | 21 struct sched_param param; local 23 if (sched_getparam(0, ¶m) == -1) { 28 result = sched_setparam(0, ¶m);
|
H A D | 23-3.c | 26 struct sched_param param; local 28 if (sched_getparam(0, ¶m) == -1) { 32 old_priority = param.sched_priority; 35 param.sched_ss_repl_period.tv_sec = 1; 36 param.sched_ss_repl_period.tv_nsec = 0; 38 param.sched_ss_init_budget.tv_sec = 2; 39 param.sched_ss_init_budget.tv_nsec = 0; 41 param.sched_priority++; 42 sched_setparam(0, ¶m); 44 if (sched_getparam(0, ¶m) ! [all...] |
H A D | 23-4.c | 26 struct sched_param param; local 28 if (sched_getparam(0, ¶m) == -1) { 32 old_priority = param.sched_priority; 34 param.sched_ss_max_repl = 0; 35 param.sched_priority++; 36 sched_setparam(0, ¶m); 38 if (sched_getparam(0, ¶m) != 0) { 43 if (param.sched_priority == old_priority) {
|
H A D | 23-5.c | 26 struct sched_param param; local 28 if (sched_getparam(0, ¶m) == -1) { 32 old_priority = param.sched_priority; 34 param.sched_ss_max_repl = SS_REPL_MAX + 1; 35 param.sched_priority++; 36 sched_setparam(0, ¶m); 38 if (sched_getparam(0, ¶m) != 0) { 43 if (param.sched_priority == old_priority) {
|
H A D | 25-3.c | 28 struct sched_param param; local 30 if (sched_getparam(0, ¶m) != 0) { 36 param.sched_ss_repl_period.tv_sec = 1; 37 param.sched_ss_repl_period.tv_nsec = 0; 39 param.sched_ss_init_budget.tv_sec = 2; 40 param.sched_ss_init_budget.tv_nsec = 0; 42 result = sched_setparam(0, ¶m);
|
H A D | 23-1.c | 22 struct sched_param param; local 24 if (sched_getparam(0, ¶m) != 0) { 28 old_priority = param.sched_priority; 44 param.sched_priority = invalid_priority; 45 sched_setparam(0, ¶m); 47 if (sched_getparam(0, ¶m) != 0) { 52 if (param.sched_priority == old_priority) {
|
H A D | 23-2.c | 28 struct sched_param param; local 30 if (sched_getparam(0, ¶m) != 0) { 34 old_priority = param.sched_priority; 41 if (sched_setscheduler(0, SCHED_SPORADIC, ¶m) != 0) { 55 param.sched_ss_low_priority = invalid_priority; 56 param.sched_priority++; 57 sched_setparam(0, ¶m); 59 if (sched_getparam(0, ¶m) != 0) { 64 if (param.sched_priority == old_priority) {
|
H A D | 23-7.c | 24 struct sched_param param; local 27 if (sched_getparam(0, ¶m) == -1) { 31 old_priority = param.sched_priority; 49 param.sched_priority++; 50 sched_setparam(child_pid, ¶m); 52 if (sched_getparam(0, ¶m) != 0) { 57 if (param.sched_priority == old_priority) {
|
H A D | 25-1.c | 23 struct sched_param param; local 39 param.sched_priority = invalid_priority; 41 result = sched_setparam(0, ¶m);
|
H A D | 25-2.c | 29 struct sched_param param; local 37 if (sched_getparam(0, ¶m) != 0) { 42 if (sched_setscheduler(0, SCHED_SPORADIC, ¶m) != 0) { 57 param.sched_ss_low_priority = invalid_priority; 59 result = sched_setparam(0, ¶m);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/ |
H A D | 19-2.c | 28 struct sched_param param; local 38 param.sched_ss_low_priority = invalid_priority; 40 result = sched_setscheduler(0, SCHED_SPORADIC, ¶m);
|
H A D | 19-3.c | 29 struct sched_param param; local 31 if (sched_getparam(0, ¶m) != 0) { 37 param.sched_ss_repl_period.tv_sec = 1; 38 param.sched_ss_repl_period.tv_nsec = 0; 40 param.sched_ss_init_budget.tv_sec = 2; 41 param.sched_ss_init_budget.tv_nsec = 0; 43 param.sched_priority = sched_get_priority_max(SCHED_SPORADIC); 45 result = sched_setscheduler(0, SCHED_SPORADIC, ¶m);
|
H A D | 19-5.c | 32 struct sched_param param; local 34 param.sched_priority = 0; 36 result = sched_setscheduler(0, -1, ¶m); 56 result = sched_setscheduler(0, INVALID_POLICY, ¶m);
|
/external/strace/tests/ |
H A D | sched_xetparam.c | 13 struct sched_param *const param = local 16 long rc = syscall(__NR_sched_getparam, 0, param); 18 param->sched_priority, rc); 20 param->sched_priority = -1; 21 rc = syscall(__NR_sched_setparam, 0, param); 23 param->sched_priority, rc, errno2name());
|
H A D | sched_xetscheduler.c | 13 struct sched_param *const param = tail_alloc(sizeof(struct sched_param)); local 52 param->sched_priority = -1; 57 rc = syscall(__NR_sched_setscheduler, 0, SCHED_FIFO, param + 1); 58 printf("sched_setscheduler(0, SCHED_FIFO, %p) = %s\n", param + 1, 61 rc = syscall(__NR_sched_setscheduler, 0, 0xfaceda7a, param); 63 0xfaceda7a, param->sched_priority, sprintrc(rc)); 65 rc = syscall(__NR_sched_setscheduler, -1, SCHED_FIFO, param); 67 param->sched_priority, sprintrc(rc)); 69 rc = syscall(__NR_sched_setscheduler, 0, SCHED_FIFO, param); 71 param [all...] |
/external/strace/tests-m32/ |
H A D | sched_xetparam.c | 13 struct sched_param *const param = local 16 long rc = syscall(__NR_sched_getparam, 0, param); 18 param->sched_priority, rc); 20 param->sched_priority = -1; 21 rc = syscall(__NR_sched_setparam, 0, param); 23 param->sched_priority, rc, errno2name());
|
H A D | sched_xetscheduler.c | 13 struct sched_param *const param = tail_alloc(sizeof(struct sched_param)); local 52 param->sched_priority = -1; 57 rc = syscall(__NR_sched_setscheduler, 0, SCHED_FIFO, param + 1); 58 printf("sched_setscheduler(0, SCHED_FIFO, %p) = %s\n", param + 1, 61 rc = syscall(__NR_sched_setscheduler, 0, 0xfaceda7a, param); 63 0xfaceda7a, param->sched_priority, sprintrc(rc)); 65 rc = syscall(__NR_sched_setscheduler, -1, SCHED_FIFO, param); 67 param->sched_priority, sprintrc(rc)); 69 rc = syscall(__NR_sched_setscheduler, 0, SCHED_FIFO, param); 71 param [all...] |
/external/strace/tests-mx32/ |
H A D | sched_xetparam.c | 13 struct sched_param *const param = local 16 long rc = syscall(__NR_sched_getparam, 0, param); 18 param->sched_priority, rc); 20 param->sched_priority = -1; 21 rc = syscall(__NR_sched_setparam, 0, param); 23 param->sched_priority, rc, errno2name());
|
H A D | sched_xetscheduler.c | 13 struct sched_param *const param = tail_alloc(sizeof(struct sched_param)); local 52 param->sched_priority = -1; 57 rc = syscall(__NR_sched_setscheduler, 0, SCHED_FIFO, param + 1); 58 printf("sched_setscheduler(0, SCHED_FIFO, %p) = %s\n", param + 1, 61 rc = syscall(__NR_sched_setscheduler, 0, 0xfaceda7a, param); 63 0xfaceda7a, param->sched_priority, sprintrc(rc)); 65 rc = syscall(__NR_sched_setscheduler, -1, SCHED_FIFO, param); 67 param->sched_priority, sprintrc(rc)); 69 rc = syscall(__NR_sched_setscheduler, 0, SCHED_FIFO, param); 71 param [all...] |