/third_party/rust/crates/rustix/tests/process/ |
H A D | priority.rs | 1 use rustix::process::nice; 5 #[cfg(not(target_os = "freebsd"))] // FreeBSD's nice(3) doesn't return the old value. 8 let old = nice(0).unwrap(); in test_priorities() 17 let new = nice(1).unwrap(); in test_priorities() 25 let get = nice(0).unwrap(); in test_priorities() 45 // Darwin appears to return `EPERM` on an out of range `nice`. in test_priorities() 46 if let Ok(again) = nice(1) { in test_priorities() 52 /// FreeBSD's `nice` doesn't return the new nice value, so use a specialized 59 let _ = nice( in test_priorities() [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
H A D | nice.c | 31 rev = nice(NZERO); in nice_0100() 34 rev = nice((TEST_NICE_RAT)*NZERO); in nice_0100() 45 int rev = nice(NZERO - 1); in nice_0200()
|
/third_party/ltp/testcases/kernel/syscalls/nice/ |
H A D | nice02.c | 11 * Verify that any user can successfully increase the nice value of 13 * to nice() system call. 29 TEST(nice(NICEINC)); in verify_nice() 32 tst_res(TFAIL | TTERRNO, "nice(%d) returned -1", NICEINC); in verify_nice() 37 tst_res(TFAIL | TTERRNO, "nice(%d) failed", NICEINC); in verify_nice() 49 tst_res(TPASS, "nice(%d) passed", NICEINC); in verify_nice() 51 TEST(nice(DEFAULT_PRIO)); in verify_nice() 53 tst_brk(TBROK | TTERRNO, "nice(%d) failed", DEFAULT_PRIO); in verify_nice()
|
H A D | nice01.c | 12 * Verify that root can provide a negative value to nice() system call and hence 13 * root can decrease the nice value of the process using nice(). 35 TEST(nice(inc)); in verify_nice() 40 tst_res(TFAIL | TTERRNO, "nice(%d) returned %li, expected %i", in verify_nice() 46 tst_res(TFAIL | TTERRNO, "nice(%d) failed", inc); in verify_nice() 58 tst_res(TPASS, "nice(%d) passed", inc); in verify_nice() 61 TEST(nice(delta)); in verify_nice() 63 tst_brk(TBROK | TTERRNO, "nice(%d) failed", delta); in verify_nice()
|
H A D | nice04.c | 11 * Verify that, nice(2) fails when, a non-root user attempts to increase 23 TEST(nice(NICEINC)); in verify_nice() 26 tst_res(TFAIL, "nice(%i) succeded unexpectedly (returned %li)", in verify_nice() 32 tst_res(TFAIL | TTERRNO, "nice(%i) should fail with EPERM", in verify_nice() 37 tst_res(TPASS, "nice(%i) failed with EPERM", NICEINC); in verify_nice()
|
H A D | nice03.c | 11 * Verify that any user can successfully increase the nice value of 13 * nice() system call. 32 TEST(nice(NICEINC)); in nice_test() 35 tst_res(TFAIL | TTERRNO, "nice(%d) returned -1", NICEINC); in nice_test() 40 tst_res(TFAIL | TTERRNO, "nice(%d) failed", NICEINC); in nice_test() 53 tst_res(TPASS, "nice(%d) passed", NICEINC); in nice_test()
|
H A D | nice05.c | 11 * 1. Create a high nice thread and a low nice thread, the main 14 * 3. Verify that the low nice thread executes more time than 15 * the high nice thread 36 TEST(nice(nice_inc)); in set_nice() 39 tst_brk(TBROK | TTERRNO, "nice(%d) returned %li, expected %i", in set_nice() 44 tst_brk(TBROK | TTERRNO, "nice(%d) failed", nice_inc); in set_nice() 140 "the high nice thread, delta: %lld ns", delta); in verify_nice() 143 "the high nice thread, delta: %lld ns", delta); in verify_nice()
|
/third_party/googletest/googletest/src/hwext/ |
H A D | gtest-tag.cc | 55 const bool nice = masked == 0;
in verify() local 56 if (!nice&&err != NULL) {
in verify() 60 return nice;
in verify()
|
/third_party/rust/crates/rustix/src/process/ |
H A D | priority.rs | 4 /// `nice()`—Adjust the scheduling priority of the current process. 10 /// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/nice.html 11 /// [Linux]: https://man7.org/linux/man-pages/man2/nice.2.html 13 pub fn nice(inc: i32) -> io::Result<i32> { in nice() functions 14 backend::process::syscalls::nice(inc) in nice()
|
H A D | mod.rs | 58 pub use priority::nice;
|
/third_party/googletest/googletest/test/ |
H A D | gtest_ext_unittest.cc | 13 const bool nice[TEST_FLAGS_NUM] = { true, true, true, true, false, false }; in TEST() local 15 EXPECT_EQ(checkFlagsLegality(flags[i]), nice[i]); in TEST() local 24 const bool nice[TEST_COMBINE_NUM] = { false, false, true, true, false, true, false, true }; in TEST() local 29 i + 1, sets[i], eles[i], nice[i], exp_flags[i]); in TEST() 31 EXPECT_EQ(ok, nice[i]); in TEST()
|
/third_party/ltp/testcases/kernel/sched/sched_stress/ |
H A D | sched_tc4.c | 142 if (nice((priority - 50) - (nice(0) + 20)) < 0 && errno != 0) in main() 143 sys_error("nice failed", __FILE__, __LINE__); in main()
|
H A D | sched_tc5.c | 139 if (nice((priority - 50) - (nice(0) + 20)) < 0 && errno != 0) in main() 140 sys_error("nice failed", __FILE__, __LINE__); in main()
|
H A D | sched_tc6.c | 172 if (nice((priority - 50) - (nice(0) + 20)) < 0 && errno != 0) in main() 173 sys_error("nice failed", __FILE__, __LINE__); in main()
|
/third_party/toybox/toys/other/ |
H A D | vmstat.c | 33 uint64_t user, nice, sys, idle, wait, irq, sirq, intr, ctxt, running, blocked; member 112 top[idx].user += top[idx].nice; in vmstat_main() 127 // (Already appended nice to user) in vmstat_main()
|
/third_party/toybox/toys/posix/ |
H A D | nice.c | 0 /* nice.c - Run a program at a different niceness level. 5 * See http://opengroup.org/onlinepubs/9699919799/utilities/nice.html 7 USE_NICE(NEWTOY(nice, "^<1n#", TOYFLAG_BIN)) 10 bool "nice" 13 usage: nice [-n PRIORITY] COMMAND... 35 if (nice(TT.n)==-1 && errno) { in nice_main()
|
/third_party/musl/src/unistd/ |
H A D | nice.c | 7 int nice(int inc) in nice() function
|
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/detail/ |
H A D | type_gentype.hpp | 10 nice, enumerator 75 template <typename valTypeT, unsigned int colT, unsigned int rowT, profile proT = nice>
|
/third_party/node/deps/uv/src/unix/ |
H A D | linux-core.c | 529 uint64_t nice; in read_times() local 566 /* Line contains user, nice, system, idle, iowait, irq, softirq, steal, in read_times() 576 &nice, in read_times() 584 ts.nice = nice * multiplier; in read_times()
|
/third_party/googletest/googlemock/test/ |
H A D | gmock-nice-strict_test.cc | 30 #include "gmock/gmock-nice-strict.h" 200 // Tests that a nice mock generates no warning for uninteresting calls. 210 // Tests that a nice mock generates no warning for uninteresting calls 223 // Tests that a nice mock generates informational logs for 240 // Tests that a nice mock allows expected calls. 248 // Tests that an unexpected call on a nice mock which returns a 265 // Tests that an unexpected call on a nice mock fails. 308 NiceMock< ::Mock> nice; in TEST() local 309 EXPECT_CALL(nice, DoThis()); in TEST() 310 nice in TEST() [all...] |
/third_party/rust/crates/regex/src/ |
H A D | re_bytes.rs | 203 /// like "'Citizen Kane' (1941)". It'd be nice if we could search for text 1017 // We'd like to show something nice here, even if it means an
|
/third_party/libuv/test/ |
H A D | test-platform-output.c | 109 printf(" times.nice: %llu\n", in TEST_IMPL() 110 (unsigned long long) cpus[i].cpu_times.nice); in TEST_IMPL()
|
/third_party/libuv/src/unix/ |
H A D | darwin.c | 232 cpu_info->cpu_times.nice = (uint64_t)(info[i].cpu_ticks[3]) * multiplier; in uv_cpu_info()
|
H A D | freebsd.c | 256 cpu_info->cpu_times.nice = (uint64_t)(cp_times[CP_NICE+cur]) * multiplier; in uv_cpu_info()
|
H A D | netbsd.c | 231 cpu_info->cpu_times.nice = (uint64_t)(cp_times[CP_NICE+cur]) * multiplier; in uv_cpu_info()
|