Searched defs:param (Results 1 - 25 of 677) sorted by relevance

1234567891011>>

/external/clang/test/CodeGen/
H A Dblocksignature.c23 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 Dsched_getparam.cc8 struct sched_param param; local
9 int res = sched_getparam(0, &param);
11 if (param.sched_priority == 42) printf(".\n");
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_getparam/
H A D1-1.c12 * 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(), &param);
29 if (result == 0 && param.sched_priority != -1 && errno == 0) {
44 if (param.sched_priority == -1) {
H A D3-1.c20 struct sched_param param; local
23 param.sched_priority = -1;
25 result = sched_getparam(0, &param);
27 if (result == 0 && param.sched_priority != -1 && errno == 0) {
H A D4-1.c27 struct sched_param param; local
47 result = sched_getparam(child_pid, &param);
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_rr_get_interval/
H A D2-1.c24 struct sched_param param; local
26 param.sched_priority = sched_get_priority_min(SCHED_RR);
27 if (sched_setscheduler(0, SCHED_RR, &param) == -1) {
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/
H A D22-1.c21 struct sched_param param; local
23 if (sched_getparam(0, &param) == -1) {
28 result = sched_setparam(0, &param);
H A D23-3.c26 struct sched_param param; local
28 if (sched_getparam(0, &param) == -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, &param);
44 if (sched_getparam(0, &param) !
[all...]
H A D23-4.c26 struct sched_param param; local
28 if (sched_getparam(0, &param) == -1) {
32 old_priority = param.sched_priority;
34 param.sched_ss_max_repl = 0;
35 param.sched_priority++;
36 sched_setparam(0, &param);
38 if (sched_getparam(0, &param) != 0) {
43 if (param.sched_priority == old_priority) {
H A D23-5.c26 struct sched_param param; local
28 if (sched_getparam(0, &param) == -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, &param);
38 if (sched_getparam(0, &param) != 0) {
43 if (param.sched_priority == old_priority) {
H A D25-3.c28 struct sched_param param; local
30 if (sched_getparam(0, &param) != 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, &param);
H A D23-1.c22 struct sched_param param; local
24 if (sched_getparam(0, &param) != 0) {
28 old_priority = param.sched_priority;
44 param.sched_priority = invalid_priority;
45 sched_setparam(0, &param);
47 if (sched_getparam(0, &param) != 0) {
52 if (param.sched_priority == old_priority) {
H A D23-2.c28 struct sched_param param; local
30 if (sched_getparam(0, &param) != 0) {
34 old_priority = param.sched_priority;
41 if (sched_setscheduler(0, SCHED_SPORADIC, &param) != 0) {
55 param.sched_ss_low_priority = invalid_priority;
56 param.sched_priority++;
57 sched_setparam(0, &param);
59 if (sched_getparam(0, &param) != 0) {
64 if (param.sched_priority == old_priority) {
H A D23-7.c24 struct sched_param param; local
27 if (sched_getparam(0, &param) == -1) {
31 old_priority = param.sched_priority;
49 param.sched_priority++;
50 sched_setparam(child_pid, &param);
52 if (sched_getparam(0, &param) != 0) {
57 if (param.sched_priority == old_priority) {
H A D25-1.c23 struct sched_param param; local
39 param.sched_priority = invalid_priority;
41 result = sched_setparam(0, &param);
H A D25-2.c29 struct sched_param param; local
37 if (sched_getparam(0, &param) != 0) {
42 if (sched_setscheduler(0, SCHED_SPORADIC, &param) != 0) {
57 param.sched_ss_low_priority = invalid_priority;
59 result = sched_setparam(0, &param);
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/
H A D19-2.c28 struct sched_param param; local
38 param.sched_ss_low_priority = invalid_priority;
40 result = sched_setscheduler(0, SCHED_SPORADIC, &param);
H A D19-3.c29 struct sched_param param; local
31 if (sched_getparam(0, &param) != 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, &param);
H A D19-5.c32 struct sched_param param; local
34 param.sched_priority = 0;
36 result = sched_setscheduler(0, -1, &param);
56 result = sched_setscheduler(0, INVALID_POLICY, &param);
/external/strace/tests/
H A Dsched_xetparam.c13 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 Dsched_xetscheduler.c13 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 Dsched_xetparam.c13 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 Dsched_xetscheduler.c13 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 Dsched_xetparam.c13 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 Dsched_xetscheduler.c13 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...]

Completed in 245 milliseconds

1234567891011>>