/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(const size_t *mib, size_t miblen, void *oldp, \ 49 static const ctl_named_node_t *n##_index(const size_t *mib, \ 911 size_t mib[CTL_MAX_DEPTH]; in ctl_byname() local 920 ret = ctl_lookup(name, nodes, mib, &depth); in ctl_byname() 926 ret = node->ctl(mib, depth, oldp, oldlenp, newp, newlen); in ctl_byname() 952 ctl_bymib(const size_t *mib, size_t miblen, void *oldp, size_t *oldlenp, in ctl_bymib() argument 971 if (node->nchildren <= (unsigned)mib[i]) { in ctl_bymib() 975 node = ctl_named_children(node, mib[i]); in ctl_bymib() 981 node = inode->index(mib, miblen, mib[i]); in ctl_bymib() 991 ret = node->ctl(mib, miblen, oldp, oldlenp, newp, newlen); in ctl_bymib() [all …]
|
D | stats.c | 10 size_t mib[6]; \ 11 size_t miblen = sizeof(mib) / sizeof(size_t); \ 13 xmallctlnametomib(n, mib, &miblen); \ 14 mib[2] = (i); \ 15 xmallctlbymib(mib, miblen, v, &sz, NULL, 0); \ 19 size_t mib[6]; \ 20 size_t miblen = sizeof(mib) / sizeof(size_t); \ 22 xmallctlnametomib(n, mib, &miblen); \ 23 mib[2] = (i); \ 24 mib[4] = (j); \ [all …]
|
/external/jemalloc/test/unit/ |
D | mallctl.c | 31 size_t mib[1]; in TEST_BEGIN() local 34 miblen = sizeof(mib)/sizeof(size_t); in TEST_BEGIN() 35 assert_d_eq(mallctlnametomib("no_such_name", mib, &miblen), ENOENT, in TEST_BEGIN() 44 size_t mib[1]; in TEST_BEGIN() local 47 miblen = sizeof(mib)/sizeof(size_t); in TEST_BEGIN() 48 assert_d_eq(mallctlnametomib("version", mib, &miblen), 0, in TEST_BEGIN() 51 assert_d_eq(mallctlbymib(mib, miblen, NULL, NULL, "0.0.0", in TEST_BEGIN() 55 miblen = sizeof(mib)/sizeof(size_t); in TEST_BEGIN() 56 assert_d_eq(mallctlnametomib("epoch", mib, &miblen), 0, in TEST_BEGIN() 59 assert_d_eq(mallctlbymib(mib, miblen, NULL, NULL, &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, &run_size, &sz, NULL, 0), 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, &lrun_size, &sz, NULL, 0), in TEST_BEGIN()
|
D | size_classes.c | 7 size_t mib[4]; in get_max_size_class() local 14 miblen = sizeof(mib) / sizeof(size_t); in get_max_size_class() 15 assert_d_eq(mallctlnametomib("arenas.hchunk.0.size", mib, &miblen), 0, in get_max_size_class() 17 mib[2] = nhchunks - 1; in get_max_size_class() 20 assert_d_eq(mallctlbymib(mib, miblen, &max_size_class, &sz, NULL, 0), 0, in get_max_size_class()
|
/external/libchrome/base/process/ |
D | process_iterator_mac.cc | 27 int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_UID, in ProcessIterator() local 38 if (sysctl(mib, arraysize(mib), NULL, &len, NULL, 0) < 0) { in ProcessIterator() 50 if (sysctl(mib, arraysize(mib), &kinfo_procs_[0], &len, NULL, 0) < 0) { in ProcessIterator() 85 int mib[] = { CTL_KERN, KERN_PROCARGS, kinfo.kp_proc.p_pid }; in CheckForNextProcess() local 89 if (sysctl(mib, arraysize(mib), NULL, &data_len, NULL, 0) < 0) { in CheckForNextProcess() 95 if (sysctl(mib, arraysize(mib), &data[0], &data_len, NULL, 0) < 0) { in CheckForNextProcess()
|
D | process_handle_mac.cc | 19 int mib[4] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, process }; in GetParentProcessId() local 20 if (sysctl(mib, 4, &info, &length, NULL, 0) < 0) { in GetParentProcessId()
|
/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()
|
D | ia64-dyn-asm.S | 4 {.mib; add r8 = 1, r32 30 {.mib; nop 0 43 {.mib; st8 [sp] = in0 // trash rp save location 65 {.mib; mov r16 = r2 78 {.mib; mov r8 = 10 92 {.mib; nop 0
|
/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, &max_size_class, &sz, NULL, 0), 0, 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()
|
D | mallocx.c | 28 size_t mib[4]; in get_size_impl() local 32 assert_d_eq(mallctlnametomib(cmd, mib, &miblen), in get_size_impl() 34 mib[2] = ind; in get_size_impl() 36 assert_d_eq(mallctlbymib(mib, miblen, &ret, &z, NULL, 0), in get_size_impl()
|
/external/v8/src/base/ |
D | sys-info.cc | 33 int mib[2] = {CTL_HW, HW_NCPU}; in NumberOfProcessors() local 36 if (sysctl(mib, arraysize(mib), &ncpu, &len, NULL, 0) != 0) { in NumberOfProcessors() 57 int mib[2] = {CTL_HW, HW_MEMSIZE}; in AmountOfPhysicalMemory() local 60 if (sysctl(mib, arraysize(mib), &memsize, &len, NULL, 0) != 0) { in AmountOfPhysicalMemory()
|
/external/avahi/avahi-autoipd/ |
D | iface-bsd.c | 130 int mib[6]; in iface_get_initial_state() local 145 mib[0] = CTL_NET; in iface_get_initial_state() 146 mib[1] = PF_ROUTE; in iface_get_initial_state() 147 mib[2] = 0; in iface_get_initial_state() 148 mib[3] = 0; in iface_get_initial_state() 149 mib[4] = NET_RT_IFLIST; in iface_get_initial_state() 150 mib[5] = ifindex; in iface_get_initial_state() 152 if (sysctl(mib, elementsof(mib), NULL, &len, NULL, 0) != 0) { in iface_get_initial_state() 164 if (sysctl(mib, elementsof(mib), buf, &len, NULL, 0) != 0) { in iface_get_initial_state()
|
/external/libchrome/base/debug/ |
D | debugger_posix.cc | 79 int mib[] = { in BeingDebugged() local 96 if (sysctl(mib, arraysize(mib), NULL, &info_size, NULL, 0) < 0) in BeingDebugged() 99 mib[5] = (info_size / sizeof(struct kinfo_proc)); in BeingDebugged() 102 int sysctl_result = sysctl(mib, arraysize(mib), &info, &info_size, NULL, 0); in BeingDebugged()
|
/external/dhcpcd-6.8.2/ |
D | if-bsd.c | 687 int mib[6]; in if_initrt() local 694 mib[0] = CTL_NET; in if_initrt() 695 mib[1] = PF_ROUTE; in if_initrt() 696 mib[2] = 0; in if_initrt() 697 mib[3] = AF_INET; in if_initrt() 698 mib[4] = NET_RT_DUMP; in if_initrt() 699 mib[5] = 0; in if_initrt() 701 if (sysctl(mib, 6, NULL, &needed, NULL, 0) == -1) in if_initrt() 707 if (sysctl(mib, 6, buf, &needed, NULL, 0) == -1) in if_initrt() 1045 int mib[6]; in if_initrt6() local [all …]
|
/external/autotest/client/cros/ |
D | hostapd_server.py | 206 mib = self.get_client_mib(client_mac_address) 207 return mib.get('dot1xAuthAuthSuccessesWhileAuthenticating', '') == '1' 217 mib = self.get_client_mib(client_mac_address) 218 return mib.get('dot1xAuthAuthEapLogoffWhileAuthenticated', '') == '1'
|
/external/avahi/avahi-core/ |
D | iface-pfroute.c | 455 int mib[6]; in avahi_interface_monitor_sync() local 462 mib[0] = CTL_NET; in avahi_interface_monitor_sync() 463 mib[1] = PF_ROUTE; in avahi_interface_monitor_sync() 464 mib[2] = 0; /* protocol */ in avahi_interface_monitor_sync() 465 mib[3] = 0; /* wildcard address family */ in avahi_interface_monitor_sync() 466 mib[4] = NET_RT_IFLIST; in avahi_interface_monitor_sync() 467 mib[5] = 0; /* no flags */ in avahi_interface_monitor_sync() 468 if (sysctl(mib, 6, NULL, &needed, NULL, 0) < 0) in avahi_interface_monitor_sync() 479 if (sysctl(mib, 6, buf, &needed, NULL, 0) < 0) { in avahi_interface_monitor_sync()
|
/external/jemalloc/include/jemalloc/internal/ |
D | ctl.h | 75 int ctl_bymib(const size_t *mib, size_t miblen, void *oldp, size_t *oldlenp, 100 #define xmallctlbymib(mib, miblen, oldp, oldlenp, newp, newlen) do { \ argument 101 if (je_mallctlbymib(mib, miblen, oldp, oldlenp, newp, \
|
/external/mesa3d/src/mesa/x86/ |
D | common_x86.c | 141 int mib[2]; in _mesa_check_os_sse_support() 145 mib[0] = CTL_MACHDEP; in _mesa_check_os_sse_support() 146 mib[1] = CPU_SSE; in _mesa_check_os_sse_support() 148 ret = sysctl(mib, 2, &enabled, &len, NULL, 0); in _mesa_check_os_sse_support()
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_cpu_detect.c | 239 int mib[2], ncpu; in util_cpu_detect() local 242 mib[0] = CTL_HW; in util_cpu_detect() 243 mib[1] = HW_NCPU; in util_cpu_detect() 246 sysctl(mib, 2, &ncpu, &len, NULL, 0); in util_cpu_detect()
|
/external/opencv3/modules/core/src/ |
D | parallel.cpp | 516 int mib[4]; in getNumberOfCPUs() 520 mib[0] = CTL_HW; in getNumberOfCPUs() 521 mib[1] = HW_AVAILCPU; // alternatively, try HW_NCPU; in getNumberOfCPUs() 524 sysctl(mib, 2, &numCPU, &len, NULL, 0); in getNumberOfCPUs() 528 mib[1] = HW_NCPU; in getNumberOfCPUs() 529 sysctl( mib, 2, &numCPU, &len, NULL, 0 ); in getNumberOfCPUs()
|
/external/libevent/ |
D | arc4random.c | 180 int mib[] = { CTL_KERN, KERN_RANDOM, RANDOM_UUID }; in arc4_seed_sysctl_linux() local 191 if (0 != sysctl(mib, 3, &buf[len], &n, NULL, 0)) in arc4_seed_sysctl_linux() 217 int mib[] = { CTL_KERN, KERN_ARND }; in arc4_seed_sysctl_bsd() local 225 if (sysctl(mib, 2, buf, &len, NULL, 0) == -1) { in arc4_seed_sysctl_bsd() 230 if (sysctl(mib, 2, &buf[len], &n, NULL, 0) == -1) in arc4_seed_sysctl_bsd()
|
/external/fio/os/ |
D | os-openbsd.h | 43 int mib[2] = { CTL_HW, HW_PHYSMEM64 }; in os_phys_mem() local 47 sysctl(mib, 2, &mem, &len, NULL, 0); in os_phys_mem()
|