• Home
  • Raw
  • Download

Lines Matching refs:attr

45 sys_sched_getattr(kernel_ulong_t pid, kernel_ulong_t attr,  in sys_sched_getattr()  argument
48 long rc = syscall(__NR_sched_getattr, pid, attr, size, flags); in sys_sched_getattr()
54 sys_sched_setattr(kernel_ulong_t pid, kernel_ulong_t attr, kernel_ulong_t flags) in sys_sched_setattr() argument
56 long rc = syscall(__NR_sched_setattr, pid, attr, flags); in sys_sched_setattr()
71 TAIL_ALLOC_OBJECT_CONST_PTR(struct sched_attr, attr); in main()
73 void *const efault = attr + 1; in main()
78 sys_sched_getattr(0, (unsigned long) attr, 0, 0); in main()
79 printf("sched_getattr(0, %p, 0, 0) = %s\n", attr, errstr); in main()
84 sys_sched_getattr(-1U, (unsigned long) attr, bogus_size, bogus_flags); in main()
86 attr, in main()
94 sys_sched_getattr(0, (unsigned long) efault, sizeof(*attr), 0); in main()
96 efault, (unsigned) sizeof(*attr), errstr); in main()
98 if (sys_sched_getattr(0, (unsigned long) attr, sizeof(*attr), 0)) in main()
100 printf("sched_getattr(0, {size=%u, sched_policy=", attr->size); in main()
101 printxval(schedulers, attr->sched_policy, NULL); in main()
105 attr->sched_flags ? "SCHED_FLAG_RESET_ON_FORK" : "0", in main()
106 attr->sched_nice, in main()
107 attr->sched_priority, in main()
108 attr->sched_runtime, in main()
109 attr->sched_deadline, in main()
110 attr->sched_period, in main()
111 (unsigned) sizeof(*attr)); in main()
116 sys_sched_getattr(F8ILL_KULONG_MASK, (unsigned long) attr, in main()
117 F8ILL_KULONG_MASK | sizeof(*attr), F8ILL_KULONG_MASK); in main()
121 attr, (unsigned) sizeof(*attr), errstr); in main()
125 printf("sched_getattr(0, {size=%u, sched_policy=", attr->size); in main()
126 printxval(schedulers, attr->sched_policy, NULL); in main()
130 attr->sched_flags ? "SCHED_FLAG_RESET_ON_FORK" : "0", in main()
131 attr->sched_nice, in main()
132 attr->sched_priority, in main()
133 attr->sched_runtime, in main()
134 attr->sched_deadline, in main()
135 attr->sched_period, in main()
136 (unsigned) sizeof(*attr)); in main()
142 attr->sched_flags |= 1; in main()
144 if (sys_sched_setattr(0, (unsigned long) attr, 0)) in main()
146 printf("sched_setattr(0, {size=%u, sched_policy=", attr->size); in main()
147 printxval(schedulers, attr->sched_policy, NULL); in main()
152 attr->sched_nice, in main()
153 attr->sched_priority, in main()
154 attr->sched_runtime, in main()
155 attr->sched_deadline, in main()
156 attr->sched_period); in main()
158 sys_sched_setattr(F8ILL_KULONG_MASK, (unsigned long) attr, in main()
160 printf("sched_setattr(0, {size=%u, sched_policy=", attr->size); in main()
161 printxval(schedulers, attr->sched_policy, NULL); in main()
166 attr->sched_nice, in main()
167 attr->sched_priority, in main()
168 attr->sched_runtime, in main()
169 attr->sched_deadline, in main()
170 attr->sched_period); in main()
172 *psize = attr->size; in main()
177 attr->size = 0; in main()
179 sys_sched_setattr(0, (unsigned long) attr, 0); in main()
180 printf("sched_setattr(0, {size=%u, sched_policy=", attr->size); in main()
181 printxval(schedulers, attr->sched_policy, NULL); in main()
186 attr->sched_nice, in main()
187 attr->sched_priority, in main()
188 attr->sched_runtime, in main()
189 attr->sched_deadline, in main()
190 attr->sched_period); in main()
192 attr->size = 1; in main()
194 sys_sched_setattr(0, (unsigned long) attr, 0); in main()
196 1, attr->size, errstr); in main()
198 attr->size = SCHED_ATTR_MIN_SIZE - 1; in main()
200 sys_sched_setattr(0, (unsigned long) attr, 0); in main()
202 SCHED_ATTR_MIN_SIZE - 1, attr->size, errstr); in main()
204 attr->size = 0x90807060; in main()
205 attr->sched_policy = 0xca7faced; in main()
206 attr->sched_flags = 0xbadc0ded1057da78ULL; in main()
207 attr->sched_nice = 0xafbfcfdf; in main()
208 attr->sched_priority = 0xb8c8d8e8; in main()
209 attr->sched_runtime = 0xbadcaffedeadf157ULL; in main()
210 attr->sched_deadline = 0xc0de70a57badac75ULL; in main()
211 attr->sched_period = 0xded1ca7edda7aca7ULL; in main()
213 sys_sched_setattr(bogus_pid, (unsigned long) attr, bogus_flags); in main()
220 attr->size, in main()
221 attr->sched_policy, in main()
222 attr->sched_flags, in main()
223 attr->sched_nice, in main()
224 attr->sched_priority, in main()
225 attr->sched_runtime, in main()
226 attr->sched_deadline, in main()
227 attr->sched_period, in main()
231 const kernel_ulong_t ill = f8ill_ptr_to_kulong(attr); in main()
233 sys_sched_getattr(0, ill, sizeof(*attr), 0); in main()
235 (unsigned long long) ill, (unsigned) sizeof(*attr), in main()
244 attr->size = 0x90807060; in main()
245 attr->sched_policy = 0xca7faced; in main()
246 attr->sched_flags = 0xfULL; in main()
247 attr->sched_nice = 0xafbfcfdf; in main()
248 attr->sched_priority = 0xb8c8d8e8; in main()
249 attr->sched_runtime = 0xbadcaffedeadf157ULL; in main()
250 attr->sched_deadline = 0xc0de70a57badac75ULL; in main()
251 attr->sched_period = 0xded1ca7edda7aca7ULL; in main()
253 sys_sched_setattr(bogus_pid, (unsigned long) attr, bogus_flags); in main()
261 attr->size, in main()
262 attr->sched_policy, in main()
263 attr->sched_nice, in main()
264 attr->sched_priority, in main()
265 attr->sched_runtime, in main()
266 attr->sched_deadline, in main()
267 attr->sched_period, in main()
271 const kernel_ulong_t ill = f8ill_ptr_to_kulong(attr); in main()
273 sys_sched_getattr(0, ill, sizeof(*attr), 0); in main()
275 (unsigned long long) ill, (unsigned) sizeof(*attr), in main()