/freebsd/sys/netinet/ |
H A D | in_kdtrace.h | 58 SDT_PROVIDER_DECLARE(mib); 60 SDT_PROBE_DECLARE(mib, ip, count, ips_total); 61 SDT_PROBE_DECLARE(mib, ip, count, ips_badsum); 62 SDT_PROBE_DECLARE(mib, ip, count, ips_tooshort); 63 SDT_PROBE_DECLARE(mib, ip, count, ips_toosmall); 64 SDT_PROBE_DECLARE(mib, ip, count, ips_badhlen); 65 SDT_PROBE_DECLARE(mib, ip, count, ips_badlen); 66 SDT_PROBE_DECLARE(mib, ip, count, ips_fragments); 67 SDT_PROBE_DECLARE(mib, ip, count, ips_fragdropped); 68 SDT_PROBE_DECLARE(mib, ip, count, ips_fragtimeout); [all …]
|
/freebsd/lib/libc/gen/ |
H A D | sysconf.c | 75 int mib[2], sverrno, value; in sysconf() local 83 mib[0] = CTL_KERN; in sysconf() 84 mib[1] = KERN_ARGMAX; in sysconf() 99 mib[0] = CTL_KERN; in sysconf() 100 mib[1] = KERN_NGROUPS; in sysconf() 135 mib[0] = CTL_KERN; in sysconf() 136 mib[1] = KERN_SAVED_IDS; in sysconf() 139 mib[0] = CTL_KERN; in sysconf() 140 mib[1] = KERN_POSIX1; in sysconf() 194 mib[0] = CTL_P1003_1B; in sysconf() [all …]
|
H A D | __xuname.c | 42 int mib[2], rval; in __xuname() local 50 mib[0] = CTL_KERN; in __xuname() 55 mib[1] = KERN_OSTYPE; in __xuname() 58 if (sysctl(mib, 2, q, &len, NULL, 0) == -1) { in __xuname() 68 mib[1] = KERN_HOSTNAME; in __xuname() 71 if (sysctl(mib, 2, q, &len, NULL, 0) == -1) { in __xuname() 83 mib[1] = KERN_OSRELEASE; in __xuname() 86 if (sysctl(mib, 2, q, &len, NULL, 0) == -1) { in __xuname() 104 mib[1] = KERN_VERSION; in __xuname() 107 if (sysctl(mib, 2, q, &len, NULL, 0) == -1) { in __xuname() [all …]
|
H A D | feature_present.c | 47 char *mib; in feature_present() local 51 if (asprintf(&mib, "kern.features.%s", feature) < 0) in feature_present() 54 if (sysctlbyname(mib, &i, &len, NULL, 0) < 0) { in feature_present() 55 free(mib); in feature_present() 58 free(mib); in feature_present()
|
/freebsd/tests/sys/kern/ |
H A D | sysctl_kern_proc.c | 33 int mib[4], pid_max; in sysctl_kern_proc_all() local 40 mib[0] = CTL_KERN; in sysctl_kern_proc_all() 41 mib[1] = KERN_PROC; in sysctl_kern_proc_all() 42 mib[2] = cmd; in sysctl_kern_proc_all() 44 mib[3] = i; in sysctl_kern_proc_all() 46 if (sysctl(mib, 4, NULL, &sz, NULL, 0) == 0) { in sysctl_kern_proc_all() 49 (void)sysctl(mib, 4, buf, &sz, NULL, 0); in sysctl_kern_proc_all() 54 mib[3] = -1; in sysctl_kern_proc_all() 55 ATF_REQUIRE_ERRNO(ESRCH, sysctl(mib, 4, NULL, &sz, NULL, 0) != 0); in sysctl_kern_proc_all() 66 int cmd, mib[4]; in ATF_TC_BODY() local [all …]
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7915/ |
H A D | debugfs.c | 289 phy->mib.dl_cck_cnt, in mt7915_muru_stats_show() 290 phy->mib.dl_ofdm_cnt, in mt7915_muru_stats_show() 291 phy->mib.dl_htmix_cnt, in mt7915_muru_stats_show() 292 phy->mib.dl_htgf_cnt, in mt7915_muru_stats_show() 293 phy->mib.dl_vht_su_cnt); in mt7915_muru_stats_show() 302 phy->mib.dl_vht_2mu_cnt, in mt7915_muru_stats_show() 303 phy->mib.dl_vht_3mu_cnt, in mt7915_muru_stats_show() 304 phy->mib.dl_vht_4mu_cnt); in mt7915_muru_stats_show() 306 sub_total_cnt = phy->mib.dl_vht_2mu_cnt + in mt7915_muru_stats_show() 307 phy->mib.dl_vht_3mu_cnt + in mt7915_muru_stats_show() [all …]
|
H A D | main.c | 902 struct mt76_mib_stats *mib = &phy->mib; in mt7915_get_stats() local 906 stats->dot11RTSSuccessCount = mib->rts_cnt; in mt7915_get_stats() 907 stats->dot11RTSFailureCount = mib->rts_retries_cnt; in mt7915_get_stats() 908 stats->dot11FCSErrorCount = mib->fcs_err_cnt; in mt7915_get_stats() 909 stats->dot11ACKFailureCount = mib->ack_fail_cnt; in mt7915_get_stats() 1423 struct mt76_mib_stats *mib = &phy->mib; in mt7915_get_et_stats() local 1435 data[ei++] = mib->tx_ampdu_cnt; in mt7915_get_et_stats() 1436 data[ei++] = mib->tx_stop_q_empty_cnt; in mt7915_get_et_stats() 1437 data[ei++] = mib->tx_mpdu_attempts_cnt; in mt7915_get_et_stats() 1438 data[ei++] = mib->tx_mpdu_success_cnt; in mt7915_get_et_stats() [all …]
|
/freebsd/sbin/ipf/ipsend/ |
H A D | 44arp.c | 60 int mib[6]; in arp() local 75 mib[0] = CTL_NET; in arp() 76 mib[1] = PF_ROUTE; in arp() 77 mib[2] = 0; in arp() 78 mib[3] = AF_INET; in arp() 79 mib[4] = NET_RT_FLAGS; in arp() 81 mib[5] = RTF_LLINFO; in arp() 83 mib[5] = 0; in arp() 86 if (sysctl(mib, 6, NULL, &needed, NULL, 0) == -1) in arp() 96 if (sysctl(mib, 6, buf, &needed, NULL, 0) == -1) in arp()
|
/freebsd/contrib/jemalloc/src/ |
H A 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); 1297 size_t mib[CTL_MAX_DEPTH]; in ctl_byname() local 1306 ret = ctl_lookup(tsd_tsdn(tsd), name, nodes, mib, &depth); in ctl_byname() 1313 ret = node->ctl(tsd, mib, depth, oldp, oldlenp, newp, newlen); in ctl_byname() 1338 ctl_bymib(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp, in ctl_bymib() argument 1356 if (node->nchildren <= mib[i]) { in ctl_bymib() 1360 node = ctl_named_children(node, mib[i]); in ctl_bymib() 1366 node = inode->index(tsd_tsdn(tsd), mib, miblen, mib[i]); in ctl_bymib() 1376 ret = node->ctl(tsd, mib, miblen, oldp, oldlenp, newp, newlen); in ctl_bymib() [all …]
|
/freebsd/lib/libutil/ |
H A D | kinfo_getfile.c | 13 int mib[4]; in kinfo_getfile() local 22 mib[0] = CTL_KERN; in kinfo_getfile() 23 mib[1] = KERN_PROC; in kinfo_getfile() 24 mib[2] = KERN_PROC_FILEDESC; in kinfo_getfile() 25 mib[3] = pid; in kinfo_getfile() 27 error = sysctl(mib, nitems(mib), NULL, &len, NULL, 0); in kinfo_getfile() 34 error = sysctl(mib, nitems(mib), buf, &len, NULL, 0); in kinfo_getfile()
|
H A D | kinfo_getvmmap.c | 13 int mib[4]; in kinfo_getvmmap() local 22 mib[0] = CTL_KERN; in kinfo_getvmmap() 23 mib[1] = KERN_PROC; in kinfo_getvmmap() 24 mib[2] = KERN_PROC_VMMAP; in kinfo_getvmmap() 25 mib[3] = pid; in kinfo_getvmmap() 27 error = sysctl(mib, nitems(mib), NULL, &len, NULL, 0); in kinfo_getvmmap() 34 error = sysctl(mib, nitems(mib), buf, &len, NULL, 0); in kinfo_getvmmap()
|
H A D | kinfo_getallproc.c | 68 int mib[3]; in kinfo_getallproc() local 70 mib[0] = CTL_KERN; in kinfo_getallproc() 71 mib[1] = KERN_PROC; in kinfo_getallproc() 72 mib[2] = KERN_PROC_PROC; in kinfo_getallproc() 75 if (sysctl(mib, nitems(mib), NULL, &len, NULL, 0) < 0) in kinfo_getallproc() 82 if (sysctl(mib, nitems(mib), kipp, &len, NULL, 0) < 0) in kinfo_getallproc()
|
H A D | kinfo_getproc.c | 41 int mib[4]; in kinfo_getproc() local 49 mib[0] = CTL_KERN; in kinfo_getproc() 50 mib[1] = KERN_PROC; in kinfo_getproc() 51 mib[2] = KERN_PROC_PID; in kinfo_getproc() 52 mib[3] = pid; in kinfo_getproc() 54 if (sysctl(mib, nitems(mib), kipp, &len, NULL, 0) < 0) in kinfo_getproc()
|
/freebsd/sys/contrib/dev/mediatek/mt76/ |
H A D | mt792x_mac.c | 82 struct mt76_mib_stats *mib = &phy->mib; in mt792x_mac_update_mib_stats() local 87 mib->fcs_err_cnt += mt76_get_field(dev, MT_MIB_SDR3(0), in mt792x_mac_update_mib_stats() 89 mib->ack_fail_cnt += mt76_get_field(dev, MT_MIB_MB_BSDR3(0), in mt792x_mac_update_mib_stats() 91 mib->ba_miss_cnt += mt76_get_field(dev, MT_MIB_MB_BSDR2(0), in mt792x_mac_update_mib_stats() 93 mib->rts_cnt += mt76_get_field(dev, MT_MIB_MB_BSDR0(0), in mt792x_mac_update_mib_stats() 95 mib->rts_retries_cnt += mt76_get_field(dev, MT_MIB_MB_BSDR1(0), in mt792x_mac_update_mib_stats() 98 mib->tx_ampdu_cnt += mt76_rr(dev, MT_MIB_SDR12(0)); in mt792x_mac_update_mib_stats() 99 mib->tx_mpdu_attempts_cnt += mt76_rr(dev, MT_MIB_SDR14(0)); in mt792x_mac_update_mib_stats() 100 mib->tx_mpdu_success_cnt += mt76_rr(dev, MT_MIB_SDR15(0)); in mt792x_mac_update_mib_stats() 103 mib->tx_pkt_ebf_cnt += FIELD_GET(MT_MIB_SDR9_EBF_CNT_MASK, val); in mt792x_mac_update_mib_stats() [all …]
|
/freebsd/contrib/bsnmp/snmp_mibII/ |
H A D | mibII_interfaces.c | 261 value->v.integer = ifp->mib.ifmd_data.ifi_type; in op_ifentry() 265 value->v.integer = ifp->mib.ifmd_data.ifi_mtu; in op_ifentry() 269 value->v.integer = ifp->mib.ifmd_data.ifi_baudrate; in op_ifentry() 279 (ifp->mib.ifmd_flags & IFF_UP) ? 1 : 2; in op_ifentry() 291 if (ifp->mib.ifmd_flags & IFF_RUNNING) { in op_ifentry() 292 if (ifp->mib.ifmd_data.ifi_link_state != LINK_STATE_UP) in op_ifentry() 302 ticks_get_timeval(&ifp->mib.ifmd_data.ifi_lastchange); in op_ifentry() 306 value->v.uint32 = ifp->mib.ifmd_data.ifi_ibytes; in op_ifentry() 310 value->v.uint32 = ifp->mib.ifmd_data.ifi_ipackets - in op_ifentry() 311 ifp->mib.ifmd_data.ifi_imcasts; in op_ifentry() [all …]
|
/freebsd/usr.sbin/bsnmpd/modules/snmp_lm75/ |
H A D | snmp_lm75.c | 137 int mib[12]; in sysctlname() local 139 if (nlen > (int)(sizeof(mib) / sizeof(int) - 2)) in sysctlname() 142 mib[0] = 0; in sysctlname() 143 mib[1] = 1; in sysctlname() 144 memcpy(mib + 2, oid, nlen * sizeof(int)); in sysctlname() 146 if (sysctl(mib, nlen + 2, name, &len, 0, 0) == -1) in sysctlname() 155 int mib[12]; in sysctlgetnext() local 157 if (nlen > (int)(sizeof(mib) / sizeof(int) - 2)) in sysctlgetnext() 160 mib[0] = 0; in sysctlgetnext() 161 mib[1] = 2; in sysctlgetnext() [all …]
|
/freebsd/lib/libopenbsd/ |
H A D | getdtablecount.c | 40 int mib[4]; in getdtablecount() local 46 mib[0] = CTL_KERN; in getdtablecount() 47 mib[1] = KERN_PROC; in getdtablecount() 48 mib[2] = KERN_PROC_NFDS; in getdtablecount() 49 mib[3] = 0; in getdtablecount() 51 error = sysctl(mib, 4, &nfds, &len, NULL, 0); in getdtablecount()
|
/freebsd/crypto/openssl/crypto/ |
H A 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 …]
|
/freebsd/sys/compat/linux/ |
H A D | check_error.d | 59 linuxulator*:mib:linux_sysctl_osname:sysctl_string_error, 60 linuxulator*:mib:linux_sysctl_osrelease:sysctl_string_error, 61 linuxulator*:mib:linux_sysctl_oss_version:sysctl_string_error, 62 linuxulator*:mib:linux_prison_create:vfs_copyopt_error, 63 linuxulator*:mib:linux_prison_check:vfs_copyopt_error, 64 linuxulator*:mib:linux_prison_check:vfs_getopt_error, 65 linuxulator*:mib:linux_prison_set:vfs_copyopt_error, 66 linuxulator*:mib:linux_prison_set:vfs_getopt_error, 67 linuxulator*:mib:linux_prison_get:vfs_setopt_error, 68 linuxulator*:mib:linux_prison_get:vfs_setopts_error
|
H A D | linux_sysctl.c | 104 l_int *mib; in linux_sysctl() local 120 mib = malloc(la.nlen * sizeof(l_int), M_LINUX, M_WAITOK); in linux_sysctl() 121 error = copyin(PTRIN(la.name), mib, la.nlen * sizeof(l_int)); in linux_sysctl() 124 free(mib, M_LINUX); in linux_sysctl() 128 switch (mib[0]) { in linux_sysctl() 133 switch (mib[1]) { in linux_sysctl() 136 free(mib, M_LINUX); in linux_sysctl() 154 sbuf_printf(sb, "%c%d", (i) ? ',' : '{', mib[i]); in linux_sysctl() 164 free(mib, M_LINUX); in linux_sysctl()
|
/freebsd/contrib/netbsd-tests/rump/rumpkern/ |
H A D | t_modcmd.c | 66 int mib[3]; in disable_autoload() local 71 mib[0] = CTL_KERN; in disable_autoload() 72 mib[1] = CTL_QUERY; in disable_autoload() 78 if (rump_sys___sysctl(mib, 2, ans, &alen, &q, sizeof(q)) == -1) in disable_autoload() 89 mib[1] = ans[i].sysctl_num; in disable_autoload() 90 mib[2] = CTL_QUERY; in disable_autoload() 92 if (rump_sys___sysctl(mib, 3, ans, &alen, &q, sizeof(q)) == -1) in disable_autoload() 103 mib[2] = ans[i].sysctl_num; in disable_autoload() 107 if (rump_sys___sysctl(mib, 3, NULL, &alen, &no, sizeof(no)) == -1) in disable_autoload()
|
/freebsd/sys/dev/bfe/ |
H A D | if_bfe.c | 1243 uint32_t mib[BFE_MIB_CNT]; in bfe_stats_update() local 1248 val = mib; in bfe_stats_update() 1258 stats->tx_good_octets += mib[MIB_TX_GOOD_O]; in bfe_stats_update() 1259 stats->tx_good_frames += mib[MIB_TX_GOOD_P]; in bfe_stats_update() 1260 stats->tx_octets += mib[MIB_TX_O]; in bfe_stats_update() 1261 stats->tx_frames += mib[MIB_TX_P]; in bfe_stats_update() 1262 stats->tx_bcast_frames += mib[MIB_TX_BCAST]; in bfe_stats_update() 1263 stats->tx_mcast_frames += mib[MIB_TX_MCAST]; in bfe_stats_update() 1264 stats->tx_pkts_64 += mib[MIB_TX_64]; in bfe_stats_update() 1265 stats->tx_pkts_65_127 += mib[MIB_TX_65_127]; in bfe_stats_update() [all …]
|
/freebsd/lib/libc/net/ |
H A D | getifmaddrs.c | 58 int mib[6]; in getifmaddrs() local 69 mib[0] = CTL_NET; in getifmaddrs() 70 mib[1] = PF_ROUTE; in getifmaddrs() 71 mib[2] = 0; /* protocol */ in getifmaddrs() 72 mib[3] = 0; /* wildcard address family */ in getifmaddrs() 73 mib[4] = NET_RT_IFMALIST; in getifmaddrs() 74 mib[5] = 0; /* no flags */ in getifmaddrs() 76 if (sysctl(mib, 6, NULL, &needed, NULL, 0) < 0) in getifmaddrs() 80 if (sysctl(mib, 6, buf, &needed, NULL, 0) < 0) { in getifmaddrs()
|
/freebsd/libexec/rpc.rstatd/ |
H A D | rstat_proc.c | 162 int mib[6]; in updatestat() local 183 mib[0] = CTL_KERN; in updatestat() 184 mib[1] = KERN_CLOCKRATE; in updatestat() 186 if (sysctl(mib, 2, &clockrate, &len, 0, 0) < 0) { in updatestat() 206 mib[0] = CTL_KERN; in updatestat() 207 mib[1] = KERN_BOOTTIME; in updatestat() 209 if (sysctl(mib, 2, &btm, &len, 0, 0) < 0) { in updatestat() 245 mib[0] = CTL_NET; in updatestat() 246 mib[1] = PF_LINK; in updatestat() 247 mib[2] = NETLINK_GENERIC; in updatestat() [all …]
|
/freebsd/usr.sbin/ppp/ |
H A D | route.c | 211 int mib[6], have, had; in Index2Nam() local 224 mib[0] = CTL_NET; in Index2Nam() 225 mib[1] = PF_ROUTE; in Index2Nam() 226 mib[2] = 0; in Index2Nam() 227 mib[3] = 0; in Index2Nam() 228 mib[4] = NET_RT_IFLIST; in Index2Nam() 229 mib[5] = 0; in Index2Nam() 231 if (sysctl(mib, 6, NULL, &needed, NULL, 0) < 0) { in Index2Nam() 238 if (sysctl(mib, 6, buf, &needed, NULL, 0) < 0) { in Index2Nam() 333 int mib[6]; in route_Show() local [all …]
|