/third_party/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 tdep_get_elf_image() local 101 mib[0] = CTL_KERN; in tdep_get_elf_image() 102 mib[1] = KERN_PROC; in tdep_get_elf_image() 103 mib[2] = KERN_PROC_VMMAP; in tdep_get_elf_image() [all …]
|
/third_party/lwip/src/apps/snmp/ |
D | snmp_core.c | 774 const struct snmp_mib *mib; in snmp_get_node_instance_from_oid() local 777 mib = snmp_get_mib_from_oid(oid, oid_len); in snmp_get_node_instance_from_oid() 778 if (mib != NULL) { in snmp_get_node_instance_from_oid() 781 mn = snmp_mib_tree_resolve_exact(mib, oid, oid_len, &oid_instance_len); in snmp_get_node_instance_from_oid() 813 const struct snmp_mib *mib; in snmp_get_next_node_instance_from_oid() local 819 mib = snmp_get_mib_from_oid(oid, oid_len); in snmp_get_next_node_instance_from_oid() 820 if (mib == NULL) { in snmp_get_next_node_instance_from_oid() 822 mib = snmp_get_next_mib(oid, oid_len); in snmp_get_next_node_instance_from_oid() 824 if (mib != NULL) { in snmp_get_next_node_instance_from_oid() 825 start_oid = mib->base_oid; in snmp_get_next_node_instance_from_oid() [all …]
|
D | snmp_core_priv.h | 69 const struct snmp_node *snmp_mib_tree_resolve_exact(const struct snmp_mib *mib, const u32_t *oid, u… 70 const struct snmp_node *snmp_mib_tree_resolve_next(const struct snmp_mib *mib, const u32_t *oid, u8…
|
/third_party/libuv/src/unix/ |
D | openbsd.c | 62 int mib[4]; in uv_exepath() local 78 mib[0] = CTL_KERN; in uv_exepath() 79 mib[1] = KERN_PROC_ARGS; in uv_exepath() 80 mib[2] = mypid; in uv_exepath() 81 mib[3] = KERN_PROC_ARGV; in uv_exepath() 82 if (sysctl(mib, ARRAY_SIZE(mib), argsbuf, &argsbuf_size, NULL, 0) == 0) { in uv_exepath() 146 int mib[6]; in uv_resident_set_memory() local 148 mib[0] = CTL_KERN; in uv_resident_set_memory() 149 mib[1] = KERN_PROC; in uv_resident_set_memory() 150 mib[2] = KERN_PROC_PID; in uv_resident_set_memory() [all …]
|
D | freebsd.c | 61 int mib[4]; in uv_exepath() local 67 mib[0] = CTL_KERN; in uv_exepath() 68 mib[1] = KERN_PROC; in uv_exepath() 69 mib[2] = KERN_PROC_PATHNAME; in uv_exepath() 70 mib[3] = -1; in uv_exepath() 73 if (sysctl(mib, ARRAY_SIZE(mib), abspath, &abspath_size, NULL, 0)) in uv_exepath() 136 int mib[4]; in uv_resident_set_memory() local 138 mib[0] = CTL_KERN; in uv_resident_set_memory() 139 mib[1] = KERN_PROC; in uv_resident_set_memory() 140 mib[2] = KERN_PROC_PID; in uv_resident_set_memory() [all …]
|
D | netbsd.c | 73 int mib[4]; in uv_exepath() local 78 mib[0] = CTL_KERN; in uv_exepath() 79 mib[1] = KERN_PROC_ARGS; in uv_exepath() 80 mib[2] = -1; in uv_exepath() 81 mib[3] = KERN_PROC_PATHNAME; in uv_exepath() 84 if (sysctl(mib, 4, int_buf, &int_size, NULL, 0)) in uv_exepath()
|
/third_party/mesa3d/src/util/ |
D | os_misc.c | 237 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 …]
|
/third_party/openssl/crypto/ |
D | ia64cpuid.S | 20 { .mib; br.ret.sptk.many b0 };; 26 { .mib; mov r8=ar.itc 44 { .mib; cmp.ne p6,p0=r2,r3 47 { .mib; nop.m 0 67 { .mib; alloc r2=ar.pfs,0,96,0,96 137 { .mib; mov r8=sp 145 { .mib; cmp.eq p6,p0=0,r33 // len==0 148 { .mib; and r2=7,r32 153 { .mib; st1 [r32]=r0,1 160 { .mib; cmp.eq p6,p0=0,r2 [all …]
|
/third_party/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
|
/third_party/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()
|
/third_party/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()
|
/third_party/flutter/skia/third_party/externals/sdl/src/filesystem/unix/ |
D | SDL_sysfilesystem.c | 85 const int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PATHNAME, -1 }; in SDL_GetBasePath() local 86 if (sysctl(mib, SDL_arraysize(mib), fullpath, &buflen, NULL, 0) != -1) { in SDL_GetBasePath() 97 const int mib[] = { CTL_KERN, KERN_PROC_ARGS, getpid(), KERN_PROC_ARGV }; in SDL_GetBasePath() local 98 if (sysctl(mib, 4, NULL, &len, NULL, 0) != -1) { in SDL_GetBasePath() 104 sysctl(mib, 4, retvalargs, &len, NULL, 0); in SDL_GetBasePath()
|
/third_party/boost/boost/dll/detail/posix/ |
D | program_location_impl.hpp | 66 int mib[4]; in program_location_impl() local 67 mib[0] = CTL_KERN; in program_location_impl() 68 mib[1] = KERN_PROC; in program_location_impl() 69 mib[2] = KERN_PROC_PATHNAME; in program_location_impl() 70 mib[3] = -1; in program_location_impl() 73 sysctl(mib, 4, buf, &cb, NULL, 0); in program_location_impl()
|
/third_party/pcre2/pcre2/src/sljit/ |
D | sljitWXExecAllocator.c | 79 int mib[3]; in netbsd_se_protected() local 83 mib[0] = CTL_PROC; in netbsd_se_protected() 84 mib[1] = getpid(); in netbsd_se_protected() 85 mib[2] = PROC_PID_PAXFLAGS; in netbsd_se_protected() 87 if (SLJIT_UNLIKELY(sysctl(mib, 3, &paxflags, &len, NULL, 0) < 0)) in netbsd_se_protected()
|
/third_party/gn/src/util/ |
D | exe_path.cc | 63 int mib[] = {CTL_KERN, KERN_PROC, KERN_PROC_PATHNAME, -1}; in GetExePath() local 66 if (sysctl(mib, 4, buf, &buf_size, nullptr, 0) == -1) { in GetExePath() 75 int mib[] = {CTL_KERN, KERN_PROC_ARGS, getpid(), KERN_PROC_PATHNAME}; in GetExePath() local 78 if (sysctl(mib, 4, buf, &buf_size, nullptr, 0) == -1) { in GetExePath()
|
/third_party/mesa3d/src/mesa/x86/ |
D | common_x86.c | 150 int mib[2]; in _mesa_check_os_sse_support() 154 mib[0] = CTL_MACHDEP; in _mesa_check_os_sse_support() 155 mib[1] = CPU_SSE; in _mesa_check_os_sse_support() 157 ret = sysctl(mib, 2, &enabled, &len, NULL, 0); in _mesa_check_os_sse_support()
|
/third_party/googletest/googletest/src/ |
D | gtest-port.cc | 163 int mib[] = { in GetThreadCount() local 173 u_int miblen = sizeof(mib) / sizeof(mib[0]); in GetThreadCount() 176 if (sysctl(mib, miblen, &info, &size, NULL, 0)) { in GetThreadCount() 186 int mib[] = { in GetThreadCount() local 194 u_int miblen = sizeof(mib) / sizeof(mib[0]); in GetThreadCount() 198 if (sysctl(mib, miblen, NULL, &size, NULL, 0)) { in GetThreadCount() 202 mib[5] = static_cast<int>(size / static_cast<size_t>(mib[4])); in GetThreadCount() 205 struct kinfo_proc info[mib[5]]; in GetThreadCount() 206 if (sysctl(mib, miblen, &info, &size, NULL, 0)) { in GetThreadCount() 212 for (size_t i = 0; i < size / static_cast<size_t>(mib[4]); i++) { in GetThreadCount()
|
/third_party/mesa3d/src/gtest/src/ |
D | gtest-port.cc | 162 int mib[] = { in GetThreadCount() local 172 u_int miblen = sizeof(mib) / sizeof(mib[0]); in GetThreadCount() 175 if (sysctl(mib, miblen, &info, &size, NULL, 0)) { in GetThreadCount() 185 int mib[] = { in GetThreadCount() local 193 u_int miblen = sizeof(mib) / sizeof(mib[0]); in GetThreadCount() 197 if (sysctl(mib, miblen, NULL, &size, NULL, 0)) { in GetThreadCount() 200 mib[5] = size / mib[4]; in GetThreadCount() 203 struct kinfo_proc info[mib[5]]; in GetThreadCount() 204 if (sysctl(mib, miblen, &info, &size, NULL, 0)) { in GetThreadCount() 210 for (int i = 0; i < size / mib[4]; i++) { in GetThreadCount()
|
/third_party/pulseaudio/src/pulse/ |
D | util.c | 286 int mib[] = { CTL_KERN, KERN_PROCARGS, getpid(), 0 }; in pa_get_binary_name() local 287 size_t len, nmib = (sizeof(mib) / sizeof(mib[0])) - 1; in pa_get_binary_name() 290 sysctl(mib, nmib, NULL, &len, NULL, 0); in pa_get_binary_name() 293 if (sysctl(mib, nmib, buf, &len, NULL, 0) == 0) { in pa_get_binary_name()
|
/third_party/flutter/engine/flutter/runtime/ |
D | ptrace_ios.cc | 47 int mib[5] = {CTL_KERN, KERN_PROC, KERN_PROC_PID, self, 0}; in DebuggedIOS() local 51 if (sysctl(mib, 4, proc.get(), &proc_size, nullptr, 0) < 0) { in DebuggedIOS()
|
/third_party/glib/glib/ |
D | gthread.c | 1104 int mib[2], count = 0; in g_get_num_processors() 1107 mib[0] = CTL_HW; in g_get_num_processors() 1108 mib[1] = HW_NCPU; in g_get_num_processors() 1111 if (sysctl (mib, 2, &count, &len, NULL, 0) == 0 && count > 0) in g_get_num_processors()
|
/third_party/pixman/pixman/ |
D | pixman-ppc.c | 60 int mib[2] = { CTL_MACHDEP, CPU_ALTIVEC }; in pixman_have_vmx() local 63 error = sysctl (mib, 2, &have_vmx, &length, NULL, 0); in pixman_have_vmx()
|
/third_party/boost/libs/log/src/ |
D | process_name.cpp | 130 int mib[4] = { CTL_KERN, KERN_PROC, KERN_PROC_PATHNAME, -1 }; in get_process_name() local 133 if (sysctl(mib, 4, buf, &cb, NULL, 0) == 0) in get_process_name()
|
/third_party/openssl/crypto/bn/asm/ |
D | ia64.S | 190 { .mib; sub r10=r35,r0,1 195 { .mib; ADDP r14=0,r32 // rp 202 { .mib; ADDP r16=0,r34 // bp 243 { .mib; sub r10=r35,r0,1 248 { .mib; ADDP r14=0,r32 // rp 255 { .mib; ADDP r16=0,r34 // bp 302 { .mib; mov r8=r0 // return value 313 { .mib; setf.sig f8=r35 // w 415 { .mib; mov r8=r0 // return value 419 { .mib; setf.sig f8=r35 // w [all …]
|