Home
last modified time | relevance | path

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

123

/third_party/libunwind/src/
Dos-freebsd.c55 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/
Dsnmp_core.c774 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 …]
Dsnmp_core_priv.h69 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/
Dopenbsd.c62 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 …]
Dfreebsd.c61 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 …]
Dnetbsd.c73 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/
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 …]
/third_party/openssl/crypto/
Dia64cpuid.S20 { .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/
Dcrasher.c50 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()
Dia64-dyn-asm.S4 {.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/
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()
/third_party/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()
/third_party/flutter/skia/third_party/externals/sdl/src/filesystem/unix/
DSDL_sysfilesystem.c85 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/
Dprogram_location_impl.hpp66 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/
DsljitWXExecAllocator.c79 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/
Dexe_path.cc63 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/
Dcommon_x86.c150 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/
Dgtest-port.cc163 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/
Dgtest-port.cc162 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/
Dutil.c286 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/
Dptrace_ios.cc47 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/
Dgthread.c1104 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/
Dpixman-ppc.c60 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/
Dprocess_name.cpp130 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/
Dia64.S190 { .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 …]

123