Home
last modified time | relevance | path

Searched refs:prio (Results 1 - 25 of 158) sorted by relevance

1234567

/third_party/ltp/testcases/kernel/syscalls/ioprio/
H A Dioprio_set01.c23 int class = orig_class, prio = orig_prio; in run() local
25 /* Bump prio to what it was + 1 */ in run()
27 prio = prio + 1; in run()
28 if (!prio_in_range(prio)) { in run()
29 tst_res(TCONF, "ioprio increase out of range (%d)", prio); in run()
34 IOPRIO_PRIO_VALUE(class, prio))); in run()
38 ioprio_check_setting(class, prio, 1); in run()
41 /* Bump prio down two notches */ in run()
42 prio in run()
[all...]
H A Dioprio_set02.c20 int class, prio; in run() local
27 for (prio = 0; prio < IOPRIO_PRIO_NUM; prio++) { in run()
29 IOPRIO_PRIO_VALUE(class, prio))); in run()
31 tst_res(TFAIL | TTERRNO, "ioprio_set IOPRIO_CLASS_BE prio %d failed", prio); in run()
43 for (prio = 0; prio < IOPRIO_PRIO_NUM; prio in run()
[all...]
H A Dioprio.h31 static inline int prio_in_range(int prio) in prio_in_range() argument
33 if ((prio < 0) || (prio >= IOPRIO_PRIO_NUM)) in prio_in_range()
46 static inline void ioprio_check_setting(int class, int prio, int report) in ioprio_check_setting() argument
54 "reading back prio failed"); in ioprio_check_setting()
65 else if (newprio != prio) in ioprio_check_setting()
67 "wrong prio after setting, expected %d got %d", in ioprio_check_setting()
68 prio, newprio); in ioprio_check_setting()
70 tst_res(TPASS, "ioprio_set new class %s, new prio %d", in ioprio_check_setting()
H A Dioprio_get01.c19 int prio, class; in run() local
30 prio = IOPRIO_PRIO_LEVEL(TST_RET); in run()
32 if (!prio_in_range(prio)) { in run()
33 tst_res(TFAIL, "ioprio out of range (%d)", prio); in run()
42 tst_res(TPASS, "ioprio_get returned class %s prio %d", in run()
43 to_class_str[class], prio); in run()
/third_party/musl/src/unistd/
H A Dnice.c9 int prio = inc; in nice() local
13 prio += getpriority(PRIO_PROCESS, 0); in nice()
14 if (prio > NZERO-1) prio = NZERO-1; in nice()
15 if (prio < -NZERO) prio = -NZERO; in nice()
16 if (setpriority(PRIO_PROCESS, 0, prio)) { in nice()
21 return prio; in nice()
/third_party/mesa3d/include/android_stub/log/
H A Dlog_main.h82 #define android_writeLog(prio, tag, text) __android_log_write(prio, tag, text)
84 #define android_printLog(prio, tag, ...) \
85 __android_log_print(prio, tag, __VA_ARGS__)
87 #define android_vprintLog(prio, cond, tag, ...) \
88 __android_log_vprint(prio, tag, __VA_ARGS__)
359 * result of non-zero to expose a log. prio is ANDROID_LOG_VERBOSE to
363 int __android_log_is_loggable(int prio, const char* tag, int default_prio);
364 int __android_log_is_loggable_len(int prio, const char* tag, size_t len, int default_prio);
367 #define android_testLog(prio, ta
[all...]
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_getschedparam/
H A Dstress.c93 int prio; member
120 if (sp.sched_priority != td[i].prio) { in threaded()
196 td[0].prio = sched_get_priority_min(SCHED_FIFO); in main()
198 if (td[0].prio == -1) { in main()
202 td[1].prio = sched_get_priority_max(SCHED_FIFO); in main()
204 if (td[1].prio == -1) { in main()
208 td[2].prio = sched_get_priority_min(SCHED_RR); in main()
210 if (td[2].prio == -1) { in main()
214 td[3].prio = sched_get_priority_max(SCHED_RR); in main()
216 if (td[3].prio in main()
[all...]
/third_party/mesa3d/include/android_stub/android/
H A Dlog.h95 * Writes the constant string `text` to the log, with priority `prio` and tag
98 int __android_log_write(int prio, const char* tag, const char* text);
101 * Writes a formatted string to the log, with priority `prio` and tag `tag`.
105 int __android_log_print(int prio, const char* tag, const char* fmt, ...)
112 int __android_log_vprint(int prio, const char* tag, const char* fmt, va_list ap)
166 * with priority `prio` and tag `tag`.
170 int __android_log_buf_write(int bufID, int prio, const char* tag, const char* text);
174 * with priority `prio` and tag `tag`.
180 int __android_log_buf_print(int bufID, int prio, const char* tag, const char* fmt, ...)
303 * __android_log_set_minimum_priority() to determine if a log message with a given prio an
[all...]
/third_party/ltp/testcases/kernel/syscalls/mq_timedsend/
H A Dmq_timedsend01.c44 .prio = MQ_PRIO_MAX - 1,
81 .prio = MQ_PRIO_MAX,
166 unsigned int prio; in do_test() local
183 if (tv->mqt_send(*tc->fd, smsg, tc->len, tc->prio, NULL) < 0) { in do_test()
199 TEST(tv->mqt_send(*tc->fd, msg_ptr, tc->len, tc->prio, abs_timeout)); in do_test()
218 TEST(tv->mqt_receive(*tc->fd, rmsg, len, &prio, tst_ts_get(tc->rq))); in do_test()
244 if (tc->prio != prio) { in do_test()
245 tst_res(TFAIL, "mq_timedreceive() wrong prio %d, expected %d", in do_test()
246 prio, t in do_test()
[all...]
/third_party/ltp/testcases/kernel/syscalls/mq_timedreceive/
H A Dmq_timedreceive01.c48 .prio = MQ_PRIO_MAX - 1,
153 unsigned int prio; in do_test() local
169 if (tv->mqt_send(*tc->fd, smsg, tc->len, tc->prio, NULL) < 0) { in do_test()
183 TEST(tv->mqt_receive(*tc->fd, rmsg, len, &prio, abs_timeout)); in do_test()
208 if (tc->prio != prio) { in do_test()
209 tst_res(TFAIL, "mq_timedreceive() wrong prio %d, expected %d", in do_test()
210 prio, tc->prio); in do_test()
224 TST_RET, prio, le in do_test()
[all...]
/third_party/libdrm/freedreno/msm/
H A Dmsm_pipe.c99 static int open_submitqueue(struct fd_pipe *pipe, uint32_t prio) in open_submitqueue() argument
103 .prio = prio, in open_submitqueue()
115 req.prio = MIN2(req.prio, MAX2(nr_rings, 1) - 1); in open_submitqueue()
169 enum fd_pipe_id id, uint32_t prio) in msm_pipe_new()
204 if (open_submitqueue(pipe, prio)) in msm_pipe_new()
168 msm_pipe_new(struct fd_device *dev, enum fd_pipe_id id, uint32_t prio) msm_pipe_new() argument
/third_party/ltp/testcases/realtime/func/periodic_cpu_load/
H A Dperiodic_cpu_load_single.c54 static int prio; variable
183 prio = atoi(v); in parse_args()
198 prio = DEFAULT_PRIO; in main()
209 if (!period || !prio | !calc_loops) { in main()
214 set_priority(prio); in main()
220 printf("priority: %d\n", prio); in main()
/third_party/ltp/testcases/kernel/syscalls/setpriority/
H A Dsetpriority02.c39 int prio; member
62 TEST(setpriority(tc->which, tc->who, tc->prio)); in setpriority_test()
67 "returned %ld", tc->which, tc->who, tc->prio, desc, in setpriority_test()
75 tc->which, tc->who, tc->prio, desc, in setpriority_test()
82 tc->which, tc->who, tc->prio, desc); in setpriority_test()
/third_party/mesa3d/src/freedreno/drm/virtio/
H A Dvirtio_pipe.c146 open_submitqueue(struct fd_pipe *pipe, uint32_t prio) in open_submitqueue() argument
152 .prio = prio, in open_submitqueue()
159 req.prio = MIN2(req.prio, MAX2(nr_rings, 1) - 1); in open_submitqueue()
168 virtio_pipe->ring_idx = req.prio + 1; in open_submitqueue()
226 virtio_pipe_new(struct fd_device *dev, enum fd_pipe_id id, uint32_t prio) in virtio_pipe_new() argument
269 if (open_submitqueue(pipe, prio)) in virtio_pipe_new()
/third_party/musl/src/mq/
H A Dmq_timedreceive.c8 ssize_t mq_timedreceive(mqd_t mqd, char *restrict msg, size_t len, unsigned *restrict prio, const struct timespec *restrict at) in mq_timedreceive() argument
15 r = __syscall_cp(SYS_mq_timedreceive_time64, mqd, msg, len, prio, in mq_timedreceive()
19 return syscall_cp(SYS_mq_timedreceive, mqd, msg, len, prio, in mq_timedreceive()
22 return syscall_cp(SYS_mq_timedreceive, mqd, msg, len, prio, at); in mq_timedreceive()
H A Dmq_timedsend.c8 int mq_timedsend(mqd_t mqd, const char *msg, size_t len, unsigned prio, const struct timespec *at) in mq_timedsend() argument
15 r = __syscall_cp(SYS_mq_timedsend_time64, mqd, msg, len, prio, in mq_timedsend()
19 return syscall_cp(SYS_mq_timedsend, mqd, msg, len, prio, in mq_timedsend()
22 return syscall_cp(SYS_mq_timedsend, mqd, msg, len, prio, at); in mq_timedsend()
/third_party/mesa3d/src/freedreno/drm/msm/
H A Dmsm_pipe.c156 open_submitqueue(struct fd_pipe *pipe, uint32_t prio) in open_submitqueue() argument
160 .prio = prio, in open_submitqueue()
172 req.prio = MIN2(req.prio, MAX2(nr_rings, 1) - 1); in open_submitqueue()
237 msm_pipe_new(struct fd_device *dev, enum fd_pipe_id id, uint32_t prio) in msm_pipe_new() argument
280 if (open_submitqueue(pipe, prio)) in msm_pipe_new()
/third_party/ffmpeg/libavutil/
H A Dtx.c287 .prio = FF_TX_PRIO_MAX,
336 static void print_cd_info(const FFTXCodelet *cd, int prio, int print_prio) in print_cd_info() argument
370 av_bprintf(&bp, ", prio: %i", prio); in print_cd_info()
382 print_cd_info(cd, cd->prio, 0); in print_tx_structure()
391 int prio; member
396 return FFDIFFSIGN(b->prio, a->prio); in cmp_matches()
543 cd_matches[nb_cd_matches].prio = cd->prio; in ff_tx_init_subtx()
[all...]
/third_party/ltp/testcases/realtime/lib/
H A Dlibrttest.c288 int create_thread(void *(*func) (void *), void *arg, int prio, int policy) in create_thread() argument
304 thread->priority = prio; in create_thread()
309 param.sched_priority = prio; in create_thread()
330 int create_fifo_thread(void *(*func) (void *), void *arg, int prio) in create_fifo_thread() argument
332 return create_thread(func, arg, prio, SCHED_FIFO); in create_fifo_thread()
335 int create_rr_thread(void *(*func) (void *), void *arg, int prio) in create_rr_thread() argument
337 return create_thread(func, arg, prio, SCHED_RR); in create_rr_thread()
345 int set_thread_priority(pthread_t pthread, int prio) in set_thread_priority() argument
348 sched_param.sched_priority = prio; in set_thread_priority()
351 policy = (prio > in set_thread_priority()
356 set_priority(int prio) set_priority() argument
[all...]
/third_party/ltp/testcases/realtime/func/prio-wake/
H A Dprio-wake.c20 * prio-wake.c
71 printf("prio-wake specific options:\n"); in usage()
172 int prio; in main() local
205 prio = sched_get_priority_min(SCHED_FIFO); in main()
208 prio++; in main()
209 create_fifo_thread(worker_thread, (void *)(intptr_t) i, prio); in main()
213 create_fifo_thread(master_thread, (void *)(intptr_t) i, ++prio); in main()
/third_party/ltp/testcases/realtime/include/
H A Dlibrttest.h232 int create_thread(void*(*func)(void*), void *arg, int prio, int policy);
234 /* create_fifo_thread: spawn a SCHED_FIFO thread with priority prio running
238 * prio: 1-100, 100 being highest priority
240 int create_fifo_thread(void*(*func)(void*), void *arg, int prio);
242 /* create_rr_thread: spawn a SCHED_RR thread with priority prio running
246 * prio: 1-100, 100 being highest priority
248 int create_rr_thread(void*(*func)(void*), void *arg, int prio);
258 int set_thread_priority(pthread_t pthread, int prio);
262 * prio: 1-99
264 int set_priority(int prio);
[all...]
/third_party/pulseaudio/src/pulsecore/
H A Drtpoll.h72 pa_rtpoll_item *pa_rtpoll_item_new(pa_rtpoll *p, pa_rtpoll_priority_t prio, unsigned n_fds);
96 pa_rtpoll_item *pa_rtpoll_item_new_fdsem(pa_rtpoll *p, pa_rtpoll_priority_t prio, pa_fdsem *s);
97 pa_rtpoll_item *pa_rtpoll_item_new_asyncmsgq_read(pa_rtpoll *p, pa_rtpoll_priority_t prio, pa_asyncmsgq *q);
98 pa_rtpoll_item *pa_rtpoll_item_new_asyncmsgq_write(pa_rtpoll *p, pa_rtpoll_priority_t prio, pa_asyncmsgq *q);
/third_party/toybox/toys/pending/
H A Dklogd.c16 -c N Print to console messages more urgent than prio N (1-8)"
66 int prio, size, used = 0; in klogd_main() local
100 prio = LOG_INFO; //we dont know priority, mark it INFO in klogd_main()
103 if (line_start) prio = (int)strtoul(line_start, &line_start, 10); in klogd_main()
106 if (*line_start) syslog(prio, "%s", line_start); in klogd_main()
/third_party/musl/src/thread/
H A Dpthread_setschedprio.c4 int pthread_setschedprio(pthread_t t, int prio) in pthread_setschedprio() argument
9 .sched_priority = prio, in pthread_setschedprio()
19 r = !t->tid ? ESRCH : -__syscall(SYS_sched_setparam, t->tid, &prio); in pthread_setschedprio()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/
H A D1-6.c67 static void init_attr(pthread_attr_t *attr, int sched_policy, int prio) in init_attr() argument
69 struct sched_param sched_param = {.sched_priority = prio}; in init_attr()
182 int prio; member
202 switch (self->prio) { in get_prio()
215 printf("Wrong self->prio %i\n", self->prio); in get_prio()
259 printf("INFO: Testing %s prio %i\n", in main()

Completed in 14 milliseconds

1234567