/external/grpc-grpc/src/cpp/server/load_reporter/ |
get_cpu_stats_linux.cc | 34 uint64_t user, nice, system, idle; local 35 fscanf(fp, "cpu %lu %lu %lu %lu", &user, &nice, &system, &idle); 37 busy = user + nice + system;
|
/external/toybox/toys/posix/ |
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)) 9 config NICE 10 bool "nice" 13 usage: nice [-n PRIORITY] COMMAND [ARG...] 35 if (nice(TT.n)==-1 && errno) {
|
/bionic/libc/upstream-netbsd/lib/libc/gen/ |
nice.c | 1 /* $NetBSD: nice.c,v 1.13 2011/05/01 02:49:54 christos Exp $ */ 35 static char sccsid[] = "@(#)nice.c 8.1 (Berkeley) 6/4/93"; 37 __RCSID("$NetBSD: nice.c,v 1.13 2011/05/01 02:49:54 christos Exp $"); 49 __weak_alias(nice,_nice) 53 * Backwards compatible nice. 56 nice(int incr)
|
/external/ltp/testcases/kernel/syscalls/nice/ |
nice02.c | 21 * Verify that any user can successfully increase the nice value of 23 * to nice() system call. 39 TEST(nice(NICEINC)); 42 tst_res(TFAIL | TTERRNO, "nice(%d) returned -1", NICEINC); 47 tst_res(TFAIL | TTERRNO, "nice(%d) failed", NICEINC); 59 tst_res(TPASS, "nice(%d) passed", NICEINC); 61 TEST(nice(DEFAULT_PRIO)); 63 tst_brk(TBROK | TERRNO, "nice(-NICEINC) failed");
|
nice01.c | 22 * Verify that root can provide a negative value to nice() 23 * and hence root can decrease the nice value of the process 24 * using nice() system call 40 TEST(nice(NICEINC)); 43 tst_res(TFAIL | TTERRNO, "nice(%d) returned %li, expected %i", 49 tst_res(TFAIL | TTERRNO, "nice(%d) failed", NICEINC); 61 tst_res(TPASS, "nice(%d) passed", NICEINC); 63 TEST(nice(-NICEINC)); 65 tst_brk(TBROK | TERRNO, "nice(-NICEINC) failed");
|
nice04.c | 21 * Verify that, nice(2) fails when, a non-root user attempts to increase 33 TEST(nice(NICEINC)); 36 tst_res(TFAIL, "nice(%i) succeded unexpectedly (returned %li)", 42 tst_res(TFAIL | TTERRNO, "nice(%i) should fail with EPERM", 47 tst_res(TPASS, "nice(%i) failed with EPERM", NICEINC);
|
nice03.c | 21 * Verify that any user can successfully increase the nice value of 23 * nice() system call. 40 TEST(nice(NICEINC)); 43 tst_res(TFAIL | TTERRNO, "nice(%d) returned -1", NICEINC); 48 tst_res(TFAIL | TTERRNO, "nice(%d) failed", NICEINC); 60 tst_res(TPASS, "nice(%d) passed", NICEINC);
|
/external/easymock/src/org/easymock/internal/ |
MocksBehavior.java | 33 private final boolean nice;
field in class:MocksBehavior 47 public MocksBehavior(boolean nice) {
48 this.nice = nice;
106 if (stubOrNice == null && nice) {
113 // Do not move the cursor in case of stub, nice or error
|
/external/google-breakpad/src/testing/test/ |
gmock-nice-strict_test.cc | 32 #include "gmock/gmock-generated-nice-strict.h" 112 // Tests that a nice mock generates no warning for uninteresting calls. 122 // Tests that a nice mock generates no warning for uninteresting calls 135 // Tests that a nice mock generates informational logs for 156 // Tests that a nice mock allows expected calls. 164 // Tests that an unexpected call on a nice mock fails. 203 NiceMock< ::Mock> nice; local 204 EXPECT_CALL(nice, DoThis()); 205 nice.DoThis();
|
/external/ltp/testcases/kernel/sched/sched_stress/ |
sched_tc4.c | 142 if (nice((priority - 50) - (nice(0) + 20)) < 0 && errno != 0) 143 sys_error("nice failed", __FILE__, __LINE__);
|
sched_tc5.c | 139 if (nice((priority - 50) - (nice(0) + 20)) < 0 && errno != 0) 140 sys_error("nice failed", __FILE__, __LINE__);
|
sched_tc6.c | 172 if (nice((priority - 50) - (nice(0) + 20)) < 0 && errno != 0) 173 sys_error("nice failed", __FILE__, __LINE__);
|
/external/toybox/toys/other/ |
vmstat.c | 33 uint64_t user, nice, sys, idle, wait, irq, sirq, intr, ctxt, running, blocked; member in struct:vmstat_proc 112 top[idx].user += top[idx].nice; 127 // (Already appended nice to user)
|
/external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/ |
CpuMonitor.java | 279 long nice = scanner.nextLong(); local 281 runTime = user + nice + sys;
|
/external/grpc-grpc/src/python/grpcio/grpc/_cython/_cygrpc/ |
grpc_string.pyx.pxi | 31 # TODO(https://github.com/grpc/grpc/issues/13782): It would be nice for us if 34 # parameter rather than "object"), but would it be nice for our users? Right
|
/external/adhd/cras/src/common/ |
cras_util.c | 56 int cras_set_nice_level(int nice) 63 * has been granted permission to adjust nice values on the system. 65 rc = setpriority(PRIO_PROCESS, syscall(__NR_gettid), nice); 67 syslog(LOG_WARNING, "Failed to set nice to %d, rc: %d", 68 nice, rc);
|
cras_util.h | 29 int cras_set_nice_level(int nice);
|
/external/libchrome/base/process/ |
internal_linux.cc | 208 uint64_t nice; local 209 if (!StringToUint64(cpu[0], &user) || !StringToUint64(cpu[1], &nice)) 212 return ClockTicksToTimeDelta(user + nice);
|
/external/llvm/utils/vim/indent/ |
llvm.vim | 11 " Stuff that would be nice to add:
|
/external/swiftshader/third_party/llvm-7.0/llvm/utils/vim/indent/ |
llvm.vim | 11 " Stuff that would be nice to add:
|
/external/googletest/googlemock/test/ |
gmock-nice-strict_test.cc | 30 #include "gmock/gmock-nice-strict.h" 192 // Tests that a nice mock generates no warning for uninteresting calls. 202 // Tests that a nice mock generates no warning for uninteresting calls 215 // Tests that a nice mock generates informational logs for 232 // Tests that a nice mock allows expected calls. 240 // Tests that an unexpected call on a nice mock which returns a 257 // Tests that an unexpected call on a nice mock fails. 300 NiceMock< ::Mock> nice; local 301 EXPECT_CALL(nice, DoThis()); 302 nice.DoThis() [all...] |
/device/linaro/bootloader/edk2/StdLib/Include/ |
unistd.h | 170 int nice(int);
|
/external/ltp/testcases/kernel/sched/eas/ |
sched_cfs_prio.c | 29 /* If testing a nice value of -1, task_fn's use of nice() must be amended to 43 if (nice(nice_vals[idx]) != nice_vals[idx]) { 44 printf("Error calling nice(%d)\n", nice_vals[idx]); 155 printf("Task a (nice -15): %8lld ms (expected %8lld ms)\n", 159 printf("Task b (nice -5) : %8lld ms (expected %8lld ms)\n", 163 printf("Task c (nice 5) : %8lld ms (expected %8lld ms)\n", 167 printf("Task d (nice 15) : %8lld ms (expected %8lld ms)\n",
|
/build/soong/cmd/extract_linker/ |
main.go | 86 // Fill in zeros for any BSS sections. It would be nice to keep
|
/external/googletest/googlemock/ |
Android.mk | 62 $(eval $(call gmock-unit-test,gmock-nice-strict_test,,libgmock_main,$(1))) \
|