Home
last modified time | relevance | path

Searched refs:mib (Results 1 – 25 of 142) sorted by relevance

123456

/external/jemalloc_new/test/unit/
Dmallctl.c33 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 …]
Dpack.c29 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 …]
Ddecay.c44 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 …]
Dextent_quantize.c6 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()
Darena_reset.c36 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 …]
Dretained.c25 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()
/external/cronet/base/process/
Dprocess_handle_openbsd.cc17 int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, process, in GetParentProcessId() local
20 if (sysctl(mib, std::size(mib), NULL, &length, NULL, 0) < 0) in GetParentProcessId()
23 mib[5] = (length / sizeof(struct kinfo_proc)); in GetParentProcessId()
25 if (sysctl(mib, std::size(mib), &info, &length, NULL, 0) < 0) in GetParentProcessId()
34 int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, process, in GetProcessExecutablePath() local
37 if (sysctl(mib, std::size(mib), NULL, &len, NULL, 0) == -1) in GetProcessExecutablePath()
39 mib[5] = (len / sizeof(struct kinfo_proc)); in GetProcessExecutablePath()
40 if (sysctl(mib, std::size(mib), &kp, &len, NULL, 0) < 0) in GetProcessExecutablePath()
Dprocess_metrics_openbsd.cc30 int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, pid, in GetProcessCPU() local
33 if (sysctl(mib, std::size(mib), NULL, &length, NULL, 0) < 0) in GetProcessCPU()
36 mib[5] = (length / sizeof(struct kinfo_proc)); in GetProcessCPU()
38 if (sysctl(mib, std::size(mib), &info, &length, NULL, 0) < 0) in GetProcessCPU()
71 int mib[] = { CTL_VM, VM_METER }; in GetSystemCommitCharge() local
77 if (sysctl(mib, std::size(mib), &vmtotal, &len, NULL, 0) < 0) in GetSystemCommitCharge()
Dprocess_iterator_openbsd.cc19 int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_UID, getuid(), in ProcessIterator() local
28 if (sysctl(mib, std::size(mib), NULL, &len, NULL, 0) < 0) { in ProcessIterator()
39 if (sysctl(mib, std::size(mib), &kinfo_procs_[0], &len, NULL, 0) < 0) { in ProcessIterator()
73 int mib[] = { CTL_KERN, KERN_PROC_ARGS, kinfo.p_pid }; in CheckForNextProcess() local
77 if (sysctl(mib, std::size(mib), NULL, &data_len, NULL, 0) < 0) { in CheckForNextProcess()
83 if (sysctl(mib, std::size(mib), &data[0], &data_len, NULL, 0) < 0) { in CheckForNextProcess()
Dprocess_iterator_freebsd.cc21 int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_UID, getuid() }; in ProcessIterator() local
29 if (sysctl(mib, std::size(mib), NULL, &len, NULL, 0) < 0) { in ProcessIterator()
40 if (sysctl(mib, std::size(mib), &kinfo_procs_[0], &len, NULL, 0) < 0) { in ProcessIterator()
71 int mib[] = { CTL_KERN, KERN_PROC_ARGS, kinfo.ki_pid }; in CheckForNextProcess() local
77 if (sysctl(mib, std::size(mib), NULL, &length, NULL, 0) < 0) { in CheckForNextProcess()
84 if (sysctl(mib, std::size(mib), &data[0], &length, NULL, 0) < 0) { in CheckForNextProcess()
Dprocess_iterator_mac.cc25 int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_UID, in ProcessIterator() local
36 if (sysctl(mib, std::size(mib), NULL, &len, NULL, 0) < 0) { in ProcessIterator()
48 if (sysctl(mib, std::size(mib), &kinfo_procs_[0], &len, NULL, 0) < 0) { in ProcessIterator()
81 int mib[] = { CTL_KERN, KERN_PROCARGS, kinfo.kp_proc.p_pid }; in CheckForNextProcess() local
85 if (sysctl(mib, std::size(mib), NULL, &data_len, NULL, 0) < 0) { in CheckForNextProcess()
91 if (sysctl(mib, std::size(mib), &data[0], &data_len, NULL, 0) < 0) { in CheckForNextProcess()
Dprocess_handle_freebsd.cc19 int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, process }; in GetParentProcessId() local
21 if (sysctl(mib, std::size(mib), &info, &length, NULL, 0) < 0) in GetParentProcessId()
30 int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PATHNAME, process }; in GetProcessExecutablePath() local
34 if (sysctl(mib, std::size(mib), pathname, &length, NULL, 0) < 0 || in GetProcessExecutablePath()
Dprocess_metrics_freebsd.cc29 int mib[] = {CTL_KERN, KERN_PROC, KERN_PROC_PID, process_}; in GetPlatformIndependentCPUUsage() local
32 if (sysctl(mib, std::size(mib), &info, &length, NULL, 0) < 0) in GetPlatformIndependentCPUUsage()
48 int mib[2], pagesize; in GetSystemCommitCharge() local
52 if (sysctl(mib, std::size(mib), &mem_total, &length, NULL, 0) < 0) in GetSystemCommitCharge()
Dprocess_mac.cc63 int mib[] = {CTL_KERN, KERN_PROC, KERN_PROC_PID, Pid()}; in CreationTime() local
65 if (sysctl(mib, std::size(mib), NULL, &len, NULL, 0) < 0) in CreationTime()
70 if (sysctl(mib, std::size(mib), proc.get(), &len, NULL, 0) < 0) in CreationTime()
/external/cronet/base/system/
Dsys_info_openbsd.cc31 int mib[] = {CTL_HW, HW_NCPU}; in NumberOfProcessors() local
34 if (sysctl(mib, std::size(mib), &ncpu, &size, NULL, 0) < 0) { in NumberOfProcessors()
55 int mib[] = {CTL_KERN, KERN_SHMINFO, KERN_SHMINFO_SHMMAX}; in MaxSharedMemorySize() local
58 if (sysctl(mib, std::size(mib), &limit, &size, NULL, 0) < 0) { in MaxSharedMemorySize()
67 int mib[] = {CTL_HW, HW_MODEL}; in CPUModelName() local
70 if (sysctl(mib, std::size(mib), name, &len, NULL, 0) < 0) { in CPUModelName()
/external/jemalloc_new/src/
Dctl.c50 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/virglrenderer/src/mesa/util/
Dos_misc.c237 int mib[2]; in os_get_total_physical_memory()
239 mib[0] = CTL_HW; in os_get_total_physical_memory()
241 mib[1] = HW_MEMSIZE; in os_get_total_physical_memory()
243 mib[1] = HW_PHYSMEM64; in os_get_total_physical_memory()
245 mib[1] = HW_REALMEM; in os_get_total_physical_memory()
247 mib[1] = HW_PHYSMEM; in os_get_total_physical_memory()
252 return (sysctl(mib, 2, size, &len, NULL, 0) == 0); in os_get_total_physical_memory()
303 int mib[] = { CTL_HW, HW_USERMEM64 }; in os_get_available_system_memory()
305 int mib[] = { CTL_HW, HW_USERMEM }; in os_get_available_system_memory()
311 if (sysctl(mib, 2, &mem_available, &len, NULL, 0) == -1) in os_get_available_system_memory()
[all …]
/external/catch2/include/internal/
Dcatch_debugger.cpp38 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/mesa3d/src/util/
Dos_misc.c153 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/jemalloc_new/test/integration/
Doverflow.c5 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()
DMALLOCX_ARENA.c25 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/libchrome/base/debug/
Ddebugger_posix.cc82 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/
Dhud_cpu.c114 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/ltp/testcases/open_posix_testsuite/include/
Dncpu.h44 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/cronet/base/debug/
Ddebugger_posix.cc84 int mib[] = { in BeingDebugged() local
102 if (sysctl(mib, std::size(mib), NULL, &info_size, NULL, 0) < 0) in BeingDebugged()
105 mib[5] = (info_size / sizeof(struct kinfo_proc)); in BeingDebugged()
108 int sysctl_result = sysctl(mib, std::size(mib), &info, &info_size, NULL, 0); in BeingDebugged()

123456