/external/jemalloc/test/unit/ |
D | pack.c | 38 size_t mib[4]; in binind_compute() local 39 size_t miblen = sizeof(mib)/sizeof(size_t); in binind_compute() 42 assert_d_eq(mallctlnametomib("arenas.bin.0.size", mib, in binind_compute() 44 mib[2] = (size_t)i; in binind_compute() 47 assert_d_eq(mallctlbymib(mib, miblen, (void *)&size, &sz, NULL, in binind_compute() 63 size_t mib[4]; in nregs_per_run_compute() local 64 size_t miblen = sizeof(mib)/sizeof(size_t); in nregs_per_run_compute() 66 assert_d_eq(mallctlnametomib("arenas.bin.0.nregs", mib, &miblen), 0, in nregs_per_run_compute() 68 mib[2] = (size_t)binind; in nregs_per_run_compute() 70 assert_d_eq(mallctlbymib(mib, miblen, (void *)&nregs, &sz, NULL, in nregs_per_run_compute() [all …]
|
D | mallctl.c | 33 size_t mib[1]; in TEST_BEGIN() local 36 miblen = sizeof(mib)/sizeof(size_t); in TEST_BEGIN() 37 assert_d_eq(mallctlnametomib("no_such_name", mib, &miblen), ENOENT, in TEST_BEGIN() 46 size_t mib[1]; in TEST_BEGIN() local 49 miblen = sizeof(mib)/sizeof(size_t); in TEST_BEGIN() 50 assert_d_eq(mallctlnametomib("version", mib, &miblen), 0, in TEST_BEGIN() 53 assert_d_eq(mallctlbymib(mib, miblen, NULL, NULL, "0.0.0", in TEST_BEGIN() 57 miblen = sizeof(mib)/sizeof(size_t); in TEST_BEGIN() 58 assert_d_eq(mallctlnametomib("epoch", mib, &miblen), 0, in TEST_BEGIN() 61 assert_d_eq(mallctlbymib(mib, miblen, NULL, NULL, (void *)&epoch, in TEST_BEGIN() [all …]
|
D | run_quantize.c | 7 size_t mib[4]; in TEST_BEGIN() local 8 size_t miblen = sizeof(mib) / sizeof(size_t); in TEST_BEGIN() 19 assert_d_eq(mallctlnametomib("arenas.bin.0.run_size", mib, &miblen), 0, in TEST_BEGIN() 22 mib[2] = i; in TEST_BEGIN() 24 assert_d_eq(mallctlbymib(mib, miblen, (void *)&run_size, &sz, in TEST_BEGIN() 41 size_t mib[4]; in TEST_BEGIN() local 42 size_t miblen = sizeof(mib) / sizeof(size_t); in TEST_BEGIN() 57 assert_d_eq(mallctlnametomib("arenas.lrun.0.size", mib, &miblen), 0, in TEST_BEGIN() 62 mib[2] = i; in TEST_BEGIN() 64 assert_d_eq(mallctlbymib(mib, miblen, (void *)&lrun_size, &sz, in TEST_BEGIN()
|
D | arena_reset.c | 46 size_t mib[4]; in get_size_impl() local 50 assert_d_eq(mallctlnametomib(cmd, mib, &miblen), in get_size_impl() 52 mib[2] = ind; in get_size_impl() 54 assert_d_eq(mallctlbymib(mib, miblen, (void *)&ret, &z, NULL, 0), in get_size_impl() 88 size_t mib[3]; in TEST_BEGIN() local 136 miblen = sizeof(mib)/sizeof(size_t); in TEST_BEGIN() 137 assert_d_eq(mallctlnametomib("arena.0.reset", mib, &miblen), 0, in TEST_BEGIN() 139 mib[1] = (size_t)arena_ind; in TEST_BEGIN() 140 assert_d_eq(mallctlbymib(mib, miblen, NULL, NULL, NULL, 0), 0, in TEST_BEGIN()
|
/external/jemalloc_new/test/unit/ |
D | mallctl.c | 33 size_t mib[1]; in TEST_BEGIN() local 36 miblen = sizeof(mib)/sizeof(size_t); in TEST_BEGIN() 37 assert_d_eq(mallctlnametomib("no_such_name", mib, &miblen), ENOENT, in TEST_BEGIN() 45 size_t mib[1]; in TEST_BEGIN() local 48 miblen = sizeof(mib)/sizeof(size_t); in TEST_BEGIN() 49 assert_d_eq(mallctlnametomib("version", mib, &miblen), 0, in TEST_BEGIN() 52 assert_d_eq(mallctlbymib(mib, miblen, NULL, NULL, "0.0.0", in TEST_BEGIN() 56 miblen = sizeof(mib)/sizeof(size_t); in TEST_BEGIN() 57 assert_d_eq(mallctlnametomib("epoch", mib, &miblen), 0, in TEST_BEGIN() 60 assert_d_eq(mallctlbymib(mib, miblen, NULL, NULL, (void *)&epoch, in TEST_BEGIN() [all …]
|
D | pack.c | 29 size_t mib[4]; in binind_compute() local 30 size_t miblen = sizeof(mib)/sizeof(size_t); in binind_compute() 33 assert_d_eq(mallctlnametomib("arenas.bin.0.size", mib, in binind_compute() 35 mib[2] = (size_t)i; in binind_compute() 38 assert_d_eq(mallctlbymib(mib, miblen, (void *)&size, &sz, NULL, in binind_compute() 54 size_t mib[4]; in nregs_per_run_compute() local 55 size_t miblen = sizeof(mib)/sizeof(size_t); in nregs_per_run_compute() 57 assert_d_eq(mallctlnametomib("arenas.bin.0.nregs", mib, &miblen), 0, in nregs_per_run_compute() 59 mib[2] = (size_t)binind; in nregs_per_run_compute() 61 assert_d_eq(mallctlbymib(mib, miblen, (void *)&nregs, &sz, NULL, in nregs_per_run_compute() [all …]
|
D | decay.c | 44 size_t mib[3]; in do_arena_create() local 45 size_t miblen = sizeof(mib)/sizeof(size_t); in do_arena_create() 47 assert_d_eq(mallctlnametomib("arena.0.dirty_decay_ms", mib, &miblen), in do_arena_create() 49 mib[1] = (size_t)arena_ind; in do_arena_create() 50 assert_d_eq(mallctlbymib(mib, miblen, NULL, NULL, in do_arena_create() 54 assert_d_eq(mallctlnametomib("arena.0.muzzy_decay_ms", mib, &miblen), in do_arena_create() 56 mib[1] = (size_t)arena_ind; in do_arena_create() 57 assert_d_eq(mallctlbymib(mib, miblen, NULL, NULL, in do_arena_create() 66 size_t mib[3]; in do_arena_destroy() local 67 size_t miblen = sizeof(mib)/sizeof(size_t); in do_arena_destroy() [all …]
|
D | extent_quantize.c | 6 size_t mib[4]; in TEST_BEGIN() local 7 size_t miblen = sizeof(mib) / sizeof(size_t); in TEST_BEGIN() 18 assert_d_eq(mallctlnametomib("arenas.bin.0.slab_size", mib, &miblen), 0, in TEST_BEGIN() 21 mib[2] = i; in TEST_BEGIN() 23 assert_d_eq(mallctlbymib(mib, miblen, (void *)&extent_size, &sz, in TEST_BEGIN() 41 size_t mib[4]; in TEST_BEGIN() local 42 size_t miblen = sizeof(mib) / sizeof(size_t); in TEST_BEGIN() 57 assert_d_eq(mallctlnametomib("arenas.lextent.0.size", mib, &miblen), 0, in TEST_BEGIN() 62 mib[2] = i; in TEST_BEGIN() 64 assert_d_eq(mallctlbymib(mib, miblen, (void *)&lextent_size, in TEST_BEGIN()
|
D | retained.c | 25 size_t mib[3]; in do_arena_destroy() local 28 miblen = sizeof(mib)/sizeof(size_t); in do_arena_destroy() 29 assert_d_eq(mallctlnametomib("arena.0.destroy", mib, &miblen), 0, in do_arena_destroy() 31 mib[1] = (size_t)arena_ind; in do_arena_destroy() 32 assert_d_eq(mallctlbymib(mib, miblen, NULL, NULL, NULL, 0), 0, in do_arena_destroy() 45 size_t mib[4]; in do_get_size_impl() local 46 size_t miblen = sizeof(mib) / sizeof(size_t); in do_get_size_impl() 49 assert_d_eq(mallctlnametomib(cmd, mib, &miblen), in do_get_size_impl() 51 mib[2] = arena_ind; in do_get_size_impl() 53 assert_d_eq(mallctlbymib(mib, miblen, (void *)&size, &z, NULL, 0), in do_get_size_impl()
|
D | arena_reset.c | 36 size_t mib[4]; in get_size_impl() local 40 assert_d_eq(mallctlnametomib(cmd, mib, &miblen), in get_size_impl() 42 mib[2] = ind; in get_size_impl() 44 assert_d_eq(mallctlbymib(mib, miblen, (void *)&ret, &z, NULL, 0), in get_size_impl() 162 size_t mib[3]; in do_arena_reset_destroy() local 165 miblen = sizeof(mib)/sizeof(size_t); in do_arena_reset_destroy() 166 assert_d_eq(mallctlnametomib(name, mib, &miblen), 0, in do_arena_reset_destroy() 168 mib[1] = (size_t)arena_ind; in do_arena_reset_destroy() 169 assert_d_eq(mallctlbymib(mib, miblen, NULL, NULL, NULL, 0), 0, in do_arena_reset_destroy() 198 size_t mib[3]; in arena_i_initialized() local [all …]
|
/external/libunwind/src/ |
D | os-freebsd.c | 55 int mib[3], error; in get_pid_by_tid() local 62 mib[0] = CTL_KERN; in get_pid_by_tid() 63 mib[1] = KERN_PROC; in get_pid_by_tid() 64 mib[2] = KERN_PROC_ALL; in get_pid_by_tid() 66 error = sysctl(mib, 3, NULL, &len, NULL, 0); in get_pid_by_tid() 74 error = sysctl(mib, 3, buf, &len, NULL, 0); in get_pid_by_tid() 95 int mib[4], error, ret; in map_create_list() local 102 mib[0] = CTL_KERN; in map_create_list() 103 mib[1] = KERN_PROC; in map_create_list() 104 mib[2] = KERN_PROC_VMMAP; in map_create_list() [all …]
|
/external/jemalloc/src/ |
D | ctl.c | 45 static int n##_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, \ 50 const size_t *mib, size_t miblen, size_t i); 921 size_t mib[CTL_MAX_DEPTH]; in ctl_byname() local 930 ret = ctl_lookup(tsd_tsdn(tsd), name, nodes, mib, &depth); in ctl_byname() 936 ret = node->ctl(tsd, mib, depth, oldp, oldlenp, newp, newlen); in ctl_byname() 962 ctl_bymib(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp, in ctl_bymib() argument 981 if (node->nchildren <= (unsigned)mib[i]) { in ctl_bymib() 985 node = ctl_named_children(node, mib[i]); in ctl_bymib() 991 node = inode->index(tsd_tsdn(tsd), mib, miblen, mib[i]); in ctl_bymib() 1001 ret = node->ctl(tsd, mib, miblen, oldp, oldlenp, newp, newlen); in ctl_bymib() [all …]
|
/external/catch2/include/internal/ |
D | catch_debugger.cpp | 38 int mib[4]; in isDebuggerActive() local 50 mib[0] = CTL_KERN; in isDebuggerActive() 51 mib[1] = KERN_PROC; in isDebuggerActive() 52 mib[2] = KERN_PROC_PID; in isDebuggerActive() 53 mib[3] = getpid(); in isDebuggerActive() 58 if( sysctl(mib, sizeof(mib) / sizeof(*mib), &info, &size, nullptr, 0) != 0 ) { in isDebuggerActive()
|
/external/jemalloc_new/src/ |
D | ctl.c | 50 static int n##_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, \ 55 const size_t *mib, size_t miblen, size_t i); 1178 size_t mib[CTL_MAX_DEPTH]; in ctl_byname() local 1187 ret = ctl_lookup(tsd_tsdn(tsd), name, nodes, mib, &depth); in ctl_byname() 1194 ret = node->ctl(tsd, mib, depth, oldp, oldlenp, newp, newlen); in ctl_byname() 1219 ctl_bymib(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp, in ctl_bymib() argument 1237 if (node->nchildren <= mib[i]) { in ctl_bymib() 1241 node = ctl_named_children(node, mib[i]); in ctl_bymib() 1247 node = inode->index(tsd_tsdn(tsd), mib, miblen, mib[i]); in ctl_bymib() 1257 ret = node->ctl(tsd, mib, miblen, oldp, oldlenp, newp, newlen); in ctl_bymib() [all …]
|
/external/mesa3d/src/util/ |
D | os_misc.c | 153 int mib[2]; in os_get_total_physical_memory() 155 mib[0] = CTL_HW; in os_get_total_physical_memory() 157 mib[1] = HW_MEMSIZE; in os_get_total_physical_memory() 159 mib[1] = HW_PHYSMEM64; in os_get_total_physical_memory() 161 mib[1] = HW_REALMEM; in os_get_total_physical_memory() 163 mib[1] = HW_PHYSMEM; in os_get_total_physical_memory() 168 return (sysctl(mib, 2, size, &len, NULL, 0) == 0); in os_get_total_physical_memory() 219 int mib[] = { CTL_HW, HW_USERMEM64 }; in os_get_available_system_memory() 221 int mib[] = { CTL_HW, HW_USERMEM }; in os_get_available_system_memory() 227 if (sysctl(mib, 2, &mem_available, &len, NULL, 0) == -1) in os_get_available_system_memory()
|
/external/libunwind/tests/ |
D | crasher.c | 50 int mib[4], error; in write_maps() local 58 mib[0] = CTL_KERN; in write_maps() 59 mib[1] = KERN_PROC; in write_maps() 60 mib[2] = KERN_PROC_VMMAP; in write_maps() 61 mib[3] = getpid(); in write_maps() 62 error = sysctl(mib, 4, NULL, &len, NULL, 0); in write_maps() 69 error = sysctl(mib, 4, buf, &len, NULL, 0); in write_maps()
|
/external/jemalloc_new/test/integration/ |
D | overflow.c | 5 size_t mib[4]; in TEST_BEGIN() local 13 miblen = sizeof(mib) / sizeof(size_t); in TEST_BEGIN() 14 assert_d_eq(mallctlnametomib("arenas.lextent.0.size", mib, &miblen), 0, in TEST_BEGIN() 16 mib[2] = nlextents - 1; in TEST_BEGIN() 19 assert_d_eq(mallctlbymib(mib, miblen, (void *)&max_size_class, &sz, in TEST_BEGIN()
|
D | MALLOCX_ARENA.c | 25 size_t mib[3]; in thd_start() local 26 size_t miblen = sizeof(mib) / sizeof(size_t); in thd_start() 32 assert_d_eq(mallctlnametomib("arena.0.dss", mib, &miblen), 0, in thd_start() 34 mib[1] = arena_ind; in thd_start() 35 assert_d_eq(mallctlbymib(mib, miblen, NULL, NULL, (void *)&dss, in thd_start()
|
/external/jemalloc/test/integration/ |
D | overflow.c | 6 size_t mib[4]; in TEST_BEGIN() local 14 miblen = sizeof(mib) / sizeof(size_t); in TEST_BEGIN() 15 assert_d_eq(mallctlnametomib("arenas.hchunk.0.size", mib, &miblen), 0, in TEST_BEGIN() 17 mib[2] = nhchunks - 1; in TEST_BEGIN() 20 assert_d_eq(mallctlbymib(mib, miblen, (void *)&max_size_class, &sz, in TEST_BEGIN()
|
D | MALLOCX_ARENA.c | 26 size_t mib[3]; in thd_start() local 27 size_t miblen = sizeof(mib) / sizeof(size_t); in thd_start() 33 assert_d_eq(mallctlnametomib("arena.0.dss", mib, &miblen), 0, in thd_start() 35 mib[1] = arena_ind; in thd_start() 36 assert_d_eq(mallctlbymib(mib, miblen, NULL, NULL, (void *)&dss, in thd_start()
|
/external/v8/src/base/ |
D | sys-info.cc | 35 int mib[2] = {CTL_HW, HW_NCPU}; in NumberOfProcessors() local 38 if (sysctl(mib, arraysize(mib), &ncpu, &len, nullptr, 0) != 0) { in NumberOfProcessors() 59 int mib[2] = {CTL_HW, HW_MEMSIZE}; in AmountOfPhysicalMemory() local 62 if (sysctl(mib, arraysize(mib), &memsize, &len, nullptr, 0) != 0) { in AmountOfPhysicalMemory()
|
/external/ltp/testcases/open_posix_testsuite/include/ |
D | ncpu.h | 44 int mib[2]; in get_ncpu() local 46 mib[0] = CTL_HW; in get_ncpu() 47 mib[1] = HW_NCPU; in get_ncpu() 48 sysctl(mib, 2, &ncpu, &len, NULL, 0); in get_ncpu()
|
/external/libchrome/base/debug/ |
D | debugger_posix.cc | 82 int mib[] = { in BeingDebugged() local 99 if (sysctl(mib, arraysize(mib), NULL, &info_size, NULL, 0) < 0) in BeingDebugged() 102 mib[5] = (info_size / sizeof(struct kinfo_proc)); in BeingDebugged() 105 int sysctl_result = sysctl(mib, arraysize(mib), &info, &info_size, NULL, 0); in BeingDebugged()
|
/external/mesa3d/src/gallium/auxiliary/hud/ |
D | hud_cpu.c | 114 int mib[] = { CTL_KERN, KERN_CP_TIME }; in get_cpu_stats() local 116 if (sysctl(mib, ARRAY_SIZE(mib), cp_time, &len, NULL, 0) == -1) in get_cpu_stats() 119 int mib[] = { CTL_KERN, KERN_CPTIME }; in get_cpu_stats() local 123 if (sysctl(mib, ARRAY_SIZE(mib), sum_cp_time, &len, NULL, 0) == -1) in get_cpu_stats() 134 int mib[] = { CTL_KERN, KERN_CP_TIME, cpu_index }; in get_cpu_stats() local 137 if (sysctl(mib, ARRAY_SIZE(mib), cp_time, &len, NULL, 0) == -1) in get_cpu_stats() 140 int mib[] = { CTL_KERN, KERN_CPTIME2, cpu_index }; in get_cpu_stats() 143 if (sysctl(mib, ARRAY_SIZE(mib), cp_time, &len, NULL, 0) == -1) in get_cpu_stats()
|
/external/v8/src/base/platform/ |
D | platform-freebsd.cc | 52 int mib[4] = {CTL_KERN, KERN_PROC, KERN_PROC_VMMAP, getpid()}; in GetSharedLibraryAddresses() local 53 size_t miblen = sizeof(mib) / sizeof(mib[0]); in GetSharedLibraryAddresses() 55 if (sysctl(mib, miblen, nullptr, &buffer_size, nullptr, 0) == 0) { in GetSharedLibraryAddresses() 61 int ret = sysctl(mib, miblen, buffer.data(), &buffer_size, nullptr, 0); in GetSharedLibraryAddresses()
|