Home
last modified time | relevance | path

Searched refs:PRIO_PROCESS (Results 1 - 25 of 66) sorted by relevance

123

/third_party/ltp/testcases/kernel/syscalls/setpriority/
H A Dsetpriority02.c11 * argument was not one of PRIO_PROCESS, PRIO_PGRP, or PRIO_USER.
45 {PRIO_PROCESS, INVAL_ID, NEW_PRIO, ESRCH, 0},
49 {PRIO_PROCESS, 0, NEW_PRIO, EACCES, 1},
52 {PRIO_PROCESS, INIT_PID, NEW_PRIO, EPERM, 1}
H A Dsetpriority01.c28 {PRIO_PROCESS, &pid},
36 case PRIO_PROCESS: in str_which()
37 return "PRIO_PROCESS"; in str_which()
/third_party/musl/libc-test/src/functionalext/supplement/misc/
H A Dgetpriority.c33 int ret = getpriority(PRIO_PROCESS, getpid()); in getpriority_0100()
58 ret = setpriority(PRIO_PROCESS, getpid(), i); in getpriority_0200()
62 ret = getpriority(PRIO_PROCESS, getpid()); in getpriority_0200()
H A Dsetpriority.c27 int result = setpriority(PRIO_PROCESS, gettid(), 1); in setpriority_0100()
/third_party/musl/src/unistd/
H A Dnice.c13 prio += getpriority(PRIO_PROCESS, 0); in nice()
16 if (setpriority(PRIO_PROCESS, 0, prio)) { in nice()
/third_party/ltp/testcases/kernel/syscalls/nice/
H A Dnice03.c30 orig_nice = SAFE_GETPRIORITY(PRIO_PROCESS, 0); in nice_test()
44 new_nice = SAFE_GETPRIORITY(PRIO_PROCESS, 0); in nice_test()
H A Dnice01.c33 orig_nice = SAFE_GETPRIORITY(PRIO_PROCESS, 0); in verify_nice()
50 new_nice = SAFE_GETPRIORITY(PRIO_PROCESS, 0); in verify_nice()
H A Dnice02.c41 new_nice = SAFE_GETPRIORITY(PRIO_PROCESS, 0); in verify_nice()
/third_party/musl/libc-test/src/functionalext/supplement/misc/misc_gtest/
H A Dmisc_getpriority_test.cpp30 * the priority PRIO of the current PRIO_PROCESS and ensure that the return value matches the expected
36 int result1 = setpriority(PRIO_PROCESS, getpid(), PRIORITY); in HWTEST_F()
38 int result2 = getpriority(PRIO_PROCESS, getpid()); in HWTEST_F()
H A Dmisc_setpriority_test.cpp19 int setResult = setpriority(PRIO_PROCESS, getpid(), 1); in HWTEST_F()
/third_party/musl/Benchmark/musl/
H A Dlibc_syscall.cpp150 benchmark::DoNotOptimize(getpriority(PRIO_PROCESS, pid)); in Bm_function_Syscall_getpriority()
157 int prio = getpriority(PRIO_PROCESS, pid); in Bm_function_Syscall_setpriority()
163 benchmark::DoNotOptimize(setpriority(PRIO_PROCESS, pid, prio)); in Bm_function_Syscall_setpriority()
/third_party/ltp/testcases/kernel/syscalls/getpriority/
H A Dgetpriority01.c12 * flags PRIO_PROCESS, PRIO_PGRP and PRIO_USER respectively.
25 {PRIO_PROCESS, 0, 0},
H A Dgetpriority02.c11 * argument was not one of PRIO_PROCESS, PRIO_PGRP, or PRIO_USER.
33 {PRIO_PROCESS, INVAL_ID, ESRCH},
/third_party/toybox/toys/posix/
H A Drenice.c25 ((toys.optflags & FLAG_u) ? PRIO_USER : PRIO_PROCESS); in renice_main()
/third_party/musl/libc-test/src/api/
H A Dsys_resource.c10 C(PRIO_PROCESS) in f()
/third_party/musl/porting/liteos_m/kernel/include/sys/
H A Dresource.h64 #define PRIO_PROCESS 0 macro
/third_party/musl/porting/uniproton/kernel/include/sys/
H A Dresource.h64 #define PRIO_PROCESS 0 macro
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/
H A Dresource.h64 #define PRIO_PROCESS 0 macro
/third_party/musl/porting/liteos_a/kernel/include/sys/
H A Dresource.h64 #define PRIO_PROCESS 0 macro
/third_party/ltp/testcases/kernel/sched/sched_stress/
H A Dsched_tc1.c133 if (setpriority(PRIO_PROCESS, 0, 0) < 0) in main()
H A Dsched_tc0.c132 if (setpriority(PRIO_PROCESS, 0, 0) < 0) in main()
H A Dsched_tc4.c138 if (setpriority(PRIO_PROCESS, 0, 0) < 0) in main()
H A Dsched_tc5.c135 if (setpriority(PRIO_PROCESS, 0, 0) < 0) in main()
/third_party/musl/include/sys/
H A Dresource.h64 #define PRIO_PROCESS 0 macro
/third_party/skia/third_party/externals/angle2/util/posix/
H A Dtest_utils_posix.cpp354 setpriority(PRIO_PROCESS, getpid(), 10); in SetLowPriorityProcess()
371 setpriority(PRIO_PROCESS, getpid(), -20); in StabilizeCPUForBenchmarking()

Completed in 10 milliseconds

123