/third_party/ltp/testcases/kernel/syscalls/ioprio/ |
H A D | ioprio_set01.c | 23 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 D | ioprio_set02.c | 20 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 D | ioprio.h | 31 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 D | ioprio_get01.c | 19 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 D | nice.c | 9 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 D | log_main.h | 82 #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 D | stress.c | 93 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 D | log.h | 95 * 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 D | mq_timedsend01.c | 44 .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 D | mq_timedreceive01.c | 48 .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 D | msm_pipe.c | 99 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 D | periodic_cpu_load_single.c | 54 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 D | setpriority02.c | 39 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 D | virtio_pipe.c | 146 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 D | mq_timedreceive.c | 8 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 D | mq_timedsend.c | 8 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 D | msm_pipe.c | 156 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 D | tx.c | 287 .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 D | librttest.c | 288 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 D | prio-wake.c | 20 * 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 D | librttest.h | 232 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 D | rtpoll.h | 72 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 D | klogd.c | 16 -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 D | pthread_setschedprio.c | 4 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 D | 1-6.c | 67 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()
|