/external/ltp/testcases/open_posix_testsuite/include/ |
ncpu.h | 44 int mib[2]; local 46 mib[0] = CTL_HW; 47 mib[1] = HW_NCPU; 48 sysctl(mib, 2, &ncpu, &len, NULL, 0);
|
/external/libchrome/base/process/ |
process_handle_mac.cc | 19 int mib[4] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, process }; local 20 if (sysctl(mib, 4, &info, &length, NULL, 0) < 0) {
|
process_iterator_mac.cc | 27 int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_UID, local 38 if (sysctl(mib, arraysize(mib), NULL, &len, NULL, 0) < 0) { 50 if (sysctl(mib, arraysize(mib), &kinfo_procs_[0], &len, NULL, 0) < 0) { 85 int mib[] = { CTL_KERN, KERN_PROCARGS, kinfo.kp_proc.p_pid }; local 89 if (sysctl(mib, arraysize(mib), NULL, &data_len, NULL, 0) < 0) { 95 if (sysctl(mib, arraysize(mib), &data[0], &data_len, NULL, 0) < 0) [all...] |
/external/jemalloc/test/integration/ |
overflow.c | 6 size_t mib[4]; local 14 miblen = sizeof(mib) / sizeof(size_t); 15 assert_d_eq(mallctlnametomib("arenas.hchunk.0.size", mib, &miblen), 0, 17 mib[2] = nhchunks - 1; 20 assert_d_eq(mallctlbymib(mib, miblen, (void *)&max_size_class, &sz,
|
MALLOCX_ARENA.c | 26 size_t mib[3]; local 27 size_t miblen = sizeof(mib) / sizeof(size_t); 33 assert_d_eq(mallctlnametomib("arena.0.dss", mib, &miblen), 0, 35 mib[1] = arena_ind; 36 assert_d_eq(mallctlbymib(mib, miblen, NULL, NULL, (void *)&dss,
|
mallocx.c | 32 size_t mib[4]; local 36 assert_d_eq(mallctlnametomib(cmd, mib, &miblen), 38 mib[2] = ind; 40 assert_d_eq(mallctlbymib(mib, miblen, (void *)&ret, &z, NULL, 0),
|
rallocx.c | 28 size_t mib[4]; local 32 assert_d_eq(mallctlnametomib(cmd, mib, &miblen), 34 mib[2] = ind; 36 assert_d_eq(mallctlbymib(mib, miblen, (void *)&ret, &z, NULL, 0),
|
/external/syslinux/com32/hdt/ |
hdt-util.c | 39 int mib = b >> 10; local 40 int gib = mib >> 10; 46 sprintf(buffer, "%3d.%02d GiB", gib,sub(mib)); 47 else if (mib > 0) 48 sprintf(buffer, "%3d.%02d MiB", mib,sub(b)); 84 int mib = b / 1000; local 85 int gib = mib / 1000; 91 sprintf(buffer, "%3d.%02d GB", gib,sub_dec(mib)); 92 else if (mib > 0 [all...] |
/external/v8/src/base/ |
sys-info.cc | 33 int mib[2] = {CTL_HW, HW_NCPU}; local 36 if (sysctl(mib, arraysize(mib), &ncpu, &len, NULL, 0) != 0) { 57 int mib[2] = {CTL_HW, HW_MEMSIZE}; local 60 if (sysctl(mib, arraysize(mib), &memsize, &len, NULL, 0) != 0) {
|
/external/jemalloc/test/unit/ |
run_quantize.c | 7 size_t mib[4]; local 8 size_t miblen = sizeof(mib) / sizeof(size_t); 19 assert_d_eq(mallctlnametomib("arenas.bin.0.run_size", mib, &miblen), 0, 22 mib[2] = i; 24 assert_d_eq(mallctlbymib(mib, miblen, (void *)&run_size, &sz, 41 size_t mib[4]; local 42 size_t miblen = sizeof(mib) / sizeof(size_t); 57 assert_d_eq(mallctlnametomib("arenas.lrun.0.size", mib, &miblen), 0, 62 mib[2] = i; 64 assert_d_eq(mallctlbymib(mib, miblen, (void *)&lrun_size, &sz [all...] |
size_classes.c | 7 size_t mib[4]; local 14 miblen = sizeof(mib) / sizeof(size_t); 15 assert_d_eq(mallctlnametomib("arenas.hchunk.0.size", mib, &miblen), 0, 17 mib[2] = nhchunks - 1; 20 assert_d_eq(mallctlbymib(mib, miblen, (void *)&max_size_class, &sz,
|
arena_reset.c | 46 size_t mib[4]; local 50 assert_d_eq(mallctlnametomib(cmd, mib, &miblen), 52 mib[2] = ind; 54 assert_d_eq(mallctlbymib(mib, miblen, (void *)&ret, &z, NULL, 0), 88 size_t mib[3]; local 136 miblen = sizeof(mib)/sizeof(size_t); 137 assert_d_eq(mallctlnametomib("arena.0.reset", mib, &miblen), 0, 139 mib[1] = (size_t)arena_ind; 140 assert_d_eq(mallctlbymib(mib, miblen, NULL, NULL, NULL, 0), 0,
|
pack.c | 38 size_t mib[4]; local 39 size_t miblen = sizeof(mib)/sizeof(size_t); 42 assert_d_eq(mallctlnametomib("arenas.bin.0.size", mib, 44 mib[2] = (size_t)i; 47 assert_d_eq(mallctlbymib(mib, miblen, (void *)&size, &sz, NULL, 63 size_t mib[4]; local 64 size_t miblen = sizeof(mib)/sizeof(size_t); 66 assert_d_eq(mallctlnametomib("arenas.bin.0.nregs", mib, &miblen), 0, 68 mib[2] = (size_t)binind; 70 assert_d_eq(mallctlbymib(mib, miblen, (void *)&nregs, &sz, NULL 80 size_t mib[4]; local 123 size_t mib[3]; local [all...] |
/external/libchrome/base/debug/ |
debugger_posix.cc | 78 // Initialize mib, which tells sysctl what info we want. In this case, 80 int mib[] = { local 97 if (sysctl(mib, arraysize(mib), NULL, &info_size, NULL, 0) < 0) 100 mib[5] = (info_size / sizeof(struct kinfo_proc)); 103 int sysctl_result = sysctl(mib, arraysize(mib), &info, &info_size, NULL, 0);
|
/external/libunwind/src/ |
os-freebsd.c | 55 int mib[3], error; local 62 mib[0] = CTL_KERN; 63 mib[1] = KERN_PROC; 64 mib[2] = KERN_PROC_ALL; 66 error = sysctl(mib, 3, NULL, &len, NULL, 0); 74 error = sysctl(mib, 3, buf, &len, NULL, 0); 95 int mib[4], error, ret; local 102 mib[0] = CTL_KERN; 103 mib[1] = KERN_PROC; 104 mib[2] = KERN_PROC_VMMAP [all...] |
/external/libunwind/tests/ |
crasher.c | 50 int mib[4], error; local 58 mib[0] = CTL_KERN; 59 mib[1] = KERN_PROC; 60 mib[2] = KERN_PROC_VMMAP; 61 mib[3] = getpid(); 62 error = sysctl(mib, 4, NULL, &len, NULL, 0); 69 error = sysctl(mib, 4, buf, &len, NULL, 0);
|
/external/fio/os/ |
os-dragonfly.h | 44 int mib[2] = { CTL_HW, HW_PHYSMEM }; local 48 sysctl(mib, 2, &mem, &len, NULL, 0);
|
os-netbsd.h | 45 int mib[2] = { CTL_HW, HW_PHYSMEM64 }; local 49 sysctl(mib, 2, &mem, &len, NULL, 0);
|
os-openbsd.h | 43 int mib[2] = { CTL_HW, HW_PHYSMEM64 }; local 47 sysctl(mib, 2, &mem, &len, NULL, 0);
|
os-freebsd.h | 86 int mib[2] = { CTL_HW, HW_PHYSMEM }; local 90 sysctl(mib, 2, &mem, &len, NULL, 0);
|
os-mac.h | 152 int mib[2] = { CTL_HW, HW_PHYSMEM }; local 156 sysctl(mib, 2, &mem, &len, NULL, 0);
|
/external/libchrome/base/time/ |
time_mac.cc | 35 int mib[2] = {CTL_KERN, KERN_BOOTTIME}; local 37 int kr = sysctl(mib, arraysize(mib), &boottime, &size, nullptr, 0);
|
/external/mesa3d/src/gallium/auxiliary/util/ |
u_cpu_detect.c | 239 int mib[2], ncpu; local 242 mib[0] = CTL_HW; 243 mib[1] = HW_NCPU; 246 sysctl(mib, 2, &ncpu, &len, NULL, 0);
|
/external/libcxx/src/ |
thread.cpp | 82 int mib[2] = {CTL_HW, HW_NCPU}; variable 84 sysctl(mib, 2, &n, &s, 0, 0);
|
/prebuilts/ndk/r11/sources/cxx-stl/llvm-libc++/libcxx/src/ |
thread.cpp | 74 int mib[2] = {CTL_HW, HW_NCPU}; variable 76 sysctl(mib, 2, &n, &s, 0, 0);
|