Home
last modified time | relevance | path

Searched full:stat (Results 1 – 25 of 3294) sorted by relevance

12345678910>>...132

/freebsd-src/tools/tools/net80211/wlanstats/
H A Dwlanstats.c676 #define STAT(x) \ in wlan_get_curstat() macro
684 case S_RX_BADVERSION: STAT(rx_badversion); in wlan_get_curstat()
685 case S_RX_TOOSHORT: STAT(rx_tooshort); in wlan_get_curstat()
686 case S_RX_WRONGBSS: STAT(rx_wrongbss); in wlan_get_curstat()
687 case S_RX_DUP: STAT(rx_dup); in wlan_get_curstat()
688 case S_RX_WRONGDIR: STAT(rx_wrongdir); in wlan_get_curstat()
689 case S_RX_MCASTECHO: STAT(rx_mcastecho); in wlan_get_curstat()
690 case S_RX_NOTASSOC: STAT(rx_notassoc); in wlan_get_curstat()
691 case S_RX_NOPRIVACY: STAT(rx_noprivacy); in wlan_get_curstat()
692 case S_RX_UNENCRYPTED: STAT(rx_unencrypted); in wlan_get_curstat()
[all …]
H A Dmain.c90 #define STAT(x,fmt) \
110 STAT(rx_data, "%u");
111 STAT(rx_mgmt, "%u");
112 STAT(rx_ctrl, "%u");
113 STAT(rx_beacons, "%u");
114 STAT(rx_proberesp, "%u");
115 STAT(rx_ucast, "%u");
116 STAT(rx_mcast, "%u");
117 STAT(rx_bytes, "%llu");
118 STAT(rx_dup, "%u");
[all …]
/freebsd-src/tools/tools/ath/athstats/
H A Dathstats.c553 #define STAT(x) \ in ath_get_curstat() macro
583 case S_WATCHDOG: STAT(watchdog); in ath_get_curstat()
584 case S_FATAL: STAT(hardware); in ath_get_curstat()
585 case S_BMISS: STAT(bmiss); in ath_get_curstat()
586 case S_BMISS_PHANTOM: STAT(bmiss_phantom); in ath_get_curstat()
588 case S_BSTUCK: STAT(bstuck); in ath_get_curstat()
590 case S_RXORN: STAT(rxorn); in ath_get_curstat()
591 case S_RXEOL: STAT(rxeol); in ath_get_curstat()
592 case S_TXURN: STAT(txurn); in ath_get_curstat()
593 case S_MIB: STAT(mib); in ath_get_curstat()
[all …]
/freebsd-src/sbin/kldstat/
H A Dkldstat.c52 struct module_stat stat; in printmod() local
54 bzero(&stat, sizeof(stat)); in printmod()
55 stat.version = sizeof(struct module_stat); in printmod()
56 if (modstat(modid, &stat) < 0) { in printmod()
57 warn("can't stat module id %d", modid); in printmod()
61 printf("\t\t%3d %s (%d, %u, 0x%lx)\n", stat.id, in printmod()
62 stat.name, stat.data.intval, stat.data.uintval, in printmod()
63 stat.data.ulongval); in printmod()
65 printf("\t\t%3d %s\n", stat.id, stat.name); in printmod()
71 struct kld_file_stat stat; in printfile() local
[all …]
/freebsd-src/tools/tools/npe/npestats/
H A Dnpestats.c96 * Stat block returned by NPE with NPE_GETSTATS msg.
179 #define STAT(x) \ in npe_get_curstat() macro
183 case S_ALIGN: STAT(dot3StatsAlignmentErrors); in npe_get_curstat()
184 case S_FCS: STAT(dot3StatsFCSErrors); in npe_get_curstat()
185 case S_MACRX: STAT(dot3StatsInternalMacReceiveErrors); in npe_get_curstat()
186 case S_RXORN: STAT(RxOverrunDiscards); in npe_get_curstat()
187 case S_LEARN: STAT(RxLearnedEntryDiscards); in npe_get_curstat()
188 case S_LARGE: STAT(RxLargeFramesDiscards); in npe_get_curstat()
189 case S_STP: STAT(RxSTPBlockedDiscards); in npe_get_curstat()
190 case S_RX_VLAN_TYPE: STAT(RxVLANTypeFilterDiscards); in npe_get_curstat()
[all …]
/freebsd-src/sys/dev/sfxge/common/
H A Def10_mac.c606 __inout_ecount(EFX_MAC_NSTATS) efsys_stat_t *stat, in ef10_mac_stats_update()
652 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_PKTS]), &value); in ef10_mac_stats_update()
655 EFSYS_STAT_SUBR_QWORD(&(stat[EFX_MAC_TX_PKTS]), &value); in ef10_mac_stats_update()
658 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_PAUSE_PKTS]), &value); in ef10_mac_stats_update()
661 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_UNICST_PKTS]), &value); in ef10_mac_stats_update()
664 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_MULTICST_PKTS]), &value); in ef10_mac_stats_update()
667 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_BRDCST_PKTS]), &value); in ef10_mac_stats_update()
670 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_OCTETS]), &value); in ef10_mac_stats_update()
673 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_LE_64_PKTS]), &value); in ef10_mac_stats_update()
675 EFSYS_STAT_INCR_QWORD(&(stat[EFX_MAC_TX_LE_64_PKTS]), &value); in ef10_mac_stats_update()
[all …]
H A Dsiena_mac.c271 __inout_ecount(EFX_MAC_NSTATS) efsys_stat_t *stat, in siena_mac_stats_update()
300 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_PKTS]), &value); in siena_mac_stats_update()
302 EFSYS_STAT_SUBR_QWORD(&(stat[EFX_MAC_TX_PKTS]), &value); in siena_mac_stats_update()
305 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_PAUSE_PKTS]), &value); in siena_mac_stats_update()
308 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_UNICST_PKTS]), &value); in siena_mac_stats_update()
311 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_MULTICST_PKTS]), &value); in siena_mac_stats_update()
314 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_BRDCST_PKTS]), &value); in siena_mac_stats_update()
317 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_OCTETS]), &value); in siena_mac_stats_update()
320 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_LE_64_PKTS]), &value); in siena_mac_stats_update()
322 EFSYS_STAT_INCR_QWORD(&(stat[EFX_MAC_TX_LE_64_PKTS]), &value); in siena_mac_stats_update()
[all …]
/freebsd-src/contrib/sendmail/src/
H A Dstats.c20 static struct statistics Stat; variable
39 ** changes static Stat structure
52 Stat.stat_nq[e->e_from.q_mailer->m_mno]++;
59 Stat.stat_nd[e->e_from.q_mailer->m_mno]++;
61 Stat.stat_nr[e->e_from.q_mailer->m_mno]++;
63 Stat.stat_cr++;
68 Stat.stat_cf++;
70 Stat.stat_ct++;
78 Stat.stat_nf[e->e_from.q_mailer->m_mno]++;
79 Stat.stat_bf[e->e_from.q_mailer->m_mno] +=
[all …]
/freebsd-src/contrib/pjdfstest/tests/unlink/
H A D00.t53 ctime1=`${fstest} stat ${n0} ctime`
56 ctime2=`${fstest} stat ${n0} ctime`
62 ctime1=`${fstest} stat ${n0} ctime`
65 ctime2=`${fstest} stat ${n0} ctime`
71 ctime1=`${fstest} stat ${n0} ctime`
74 ctime2=`${fstest} stat ${n0} ctime`
80 ctime1=`${fstest} stat ${n0} ctime`
83 ctime2=`${fstest} stat ${n0} ctime`
89 ctime1=`${fstest} stat ${n0} ctime`
92 ctime2=`${fstest} stat ${n0} ctime`
[all …]
/freebsd-src/usr.bin/stat/tests/
H A Dstat_test.sh41 atf_check -o match:'.* a' stat -Fn a
42 atf_check -o match:'.* b/' stat -Fn b
43 atf_check -o match:'.* c\*' stat -Fn c
44 atf_check -o match:'.* d@' stat -Fn d
45 atf_check -o match:'.* f\|' stat -Fn f
63 stat_out=stat.output
66 # - Even though stat -l claims to be equivalent to `ls -lT`, the
73 atf_check -o save:$stat_out stat -l $path
90 atf_check -o inline:"$(stat a | tr -d '\n')" stat -n a
91 atf_check -o inline:"$(stat a b | tr -d '\n')" stat -n a b
[all …]
/freebsd-src/contrib/netbsd-tests/lib/libc/sys/
H A Dt_stat.c34 #include <sys/stat.h>
51 static const char *path = "stat";
56 atf_tc_set_md_var(tc, "descr", "Test chflags(2) with stat(2)"); in ATF_TC_HEAD()
61 struct stat sa, sb; in ATF_TC_BODY()
64 (void)memset(&sa, 0, sizeof(struct stat)); in ATF_TC_BODY()
65 (void)memset(&sb, 0, sizeof(struct stat)); in ATF_TC_BODY()
70 ATF_REQUIRE(stat(path, &sa) == 0); in ATF_TC_BODY()
72 ATF_REQUIRE(stat(path, &sb) == 0); in ATF_TC_BODY()
75 atf_tc_fail("stat(2) did not detect chflags(2)"); in ATF_TC_BODY()
89 atf_tc_set_md_var(tc, "descr", "Test stat(2) with directories"); in ATF_TC_HEAD()
[all …]
/freebsd-src/contrib/pjdfstest/tests/chown/
H A D00.t37 expect 123,456 stat ${n1} uid,gid
38 expect 123,456 stat ${n0} uid,gid
75 expect 65534,65533 stat ${n0} uid,gid
76 expect 65534,65533 stat ${n1} uid,gid
79 expect 65534,65532 stat ${n0} uid,gid
80 expect 65534,65532 stat ${n1} uid,gid
83 expect 65534,65531 stat ${n0} uid,gid
84 expect 65534,65531 stat ${n1} uid,gid
117 expect 65534,65533 stat ${n0} uid,gid
122 expect 65534,65533 stat ${n0} uid,gid
[all …]
/freebsd-src/usr.bin/systat/
H A Dzarc.c114 #define DO(stat) \ in domode() argument
115 delta->hits.stat = (curstat.hits.stat - oldstat.hits.stat); \ in domode()
116 delta->misses.stat = (curstat.misses.stat - oldstat.misses.stat); \ in domode()
117 rate->current.stat = calc_rate(delta->hits.stat, delta->misses.stat); \ in domode()
118 rate->total.stat = calc_rate(curstat.hits.stat, curstat.misses.stat) in domode()
145 #define DO(stat, col, width) \ in showzarc() argument
146 sysputuint64(wnd, row, col, width, stat, HN_DIVISOR_1000) in showzarc()
147 #define RATES(stat) mvwprintw(wnd, row, 31+1, "%3"PRIu64, rate.current.stat);\ in showzarc() argument
148 mvwprintw(wnd, row, 31+1+5+7+7+8, "%3"PRIu64, rate.total.stat) in showzarc()
149 #define HITS(stat) DO(delta.hits.stat, 31+1+5, 6); \ in showzarc() argument
[all …]
/freebsd-src/contrib/netbsd-tests/fs/tmpfs/
H A Dt_times.sh42 eval $(stat -s a | sed -e 's|st_|ost_|g') || atf_fail "stat failed"
49 eval $(stat -s a) || atf_fail "stat failed"
57 eval $(stat -s a) || atf_fail "stat failed"
76 eval $(stat -s a | sed -e 's|st_|ost_|g') || atf_fail "stat failed"
83 eval $(stat -s a) || atf_fail "stat failed"
101 eval $(stat -s b | sed -e 's|st_|ost_|g') || atf_fail "stat failed"
105 eval $(stat -s b) || atf_fail "stat failed"
123 eval $(stat -s c | sed -e 's|st_|ost_|g') || atf_fail "stat failed"
127 eval $(stat -s c) || atf_fail "stat failed"
146 eval $(stat -s e | sed -e 's|st_|dost_|g') || atf_fail "stat failed"
[all …]
/freebsd-src/contrib/pjdfstest/tests/chflags/
H A D00.t42 expect none stat ${n0} flags
44 expect ${allflags} stat ${n0} flags
46 expect ${userflags} stat ${n0} flags
48 expect ${systemflags} stat ${n0} flags
50 expect none stat ${n0} flags
58 expect none stat ${n0} flags
60 expect ${allflags} stat ${n0} flags
62 expect ${userflags} stat ${n0} flags
64 expect ${systemflags} stat ${n0} flags
66 expect none stat ${n0} flags
[all …]
/freebsd-src/tools/tools/mwl/mwlstats/
H A Dmwlstats.c306 #define STAT(x) \ in mwl_get_curstat() macro
352 case S_TX_MGMT: STAT(tx_mgmt); in mwl_get_curstat()
353 case S_TX_DISCARD: STAT(tx_discard); in mwl_get_curstat()
354 case S_TX_QSTOP: STAT(tx_qstop); in mwl_get_curstat()
355 case S_TX_ENCAP: STAT(tx_encap); in mwl_get_curstat()
356 case S_TX_NOMBUF: STAT(tx_nombuf); in mwl_get_curstat()
357 case S_TX_LINEAR: STAT(tx_linear); in mwl_get_curstat()
358 case S_TX_NODATA: STAT(tx_nodata); in mwl_get_curstat()
359 case S_TX_BUSDMA: STAT(tx_busdma); in mwl_get_curstat()
360 case S_TX_SHORTPRE: STAT(tx_shortpre); in mwl_get_curstat()
[all …]
/freebsd-src/contrib/pjdfstest/tests/link/
H A D12.t28 expect 1 stat ${n0} nlink
30 expect 2 stat ${n0} nlink
32 expect 1 stat ${n0} nlink
36 expect 1 stat ${n0} nlink
39 expect 2 stat ${n0} nlink
41 expect 1 stat ${n0} nlink
45 expect 2 stat ${n0} nlink
48 expect 1 stat ${n0} nlink
54 expect 2 stat ${n0} nlink
56 expect 1 stat ${n0} nlink
[all …]
H A D13.t30 expect 1 stat ${n0}/${n1} nlink
32 expect 2 stat ${n0}/${n1} nlink
34 expect 1 stat ${n0}/${n1} nlink
38 expect 1 stat ${n0}/${n1} nlink
41 expect 2 stat ${n0}/${n1} nlink
43 expect 1 stat ${n0}/${n1} nlink
47 expect 2 stat ${n0}/${n1} nlink
50 expect 1 stat ${n0}/${n1} nlink
54 expect 2 stat ${n0}/${n1} nlink
57 expect 1 stat ${n0}/${n1} nlink
[all …]
/freebsd-src/sys/dev/rtwn/usb/
H A Drtwn_usb_rx.c69 struct rtwn_rx_stat_common *stat) in rtwn_rx_check_pre_alloc() argument
83 rxdw0 = le32toh(stat->rxdw0); in rtwn_rx_check_pre_alloc()
109 rtwn_rx_copy_to_mbuf(struct rtwn_softc *sc, struct rtwn_rx_stat_common *stat, in rtwn_rx_copy_to_mbuf() argument
120 __func__, le32toh(stat->rxdw0), le32toh(stat->rxdw1), in rtwn_rx_copy_to_mbuf()
121 le32toh(stat->rxdw2), le32toh(stat->rxdw3), le32toh(stat->rxdw4), in rtwn_rx_copy_to_mbuf()
122 le32toh(stat->tsf_low)); in rtwn_rx_copy_to_mbuf()
124 if (rtwn_rx_check_pre_alloc(sc, stat) ! in rtwn_rx_copy_to_mbuf()
155 struct rtwn_rx_stat_common *stat = &uc->uc_rx_stat; rtwn_rxeof_fragmented() local
241 struct rtwn_rx_stat_common *stat; rtwn_rxeof() local
352 struct rtwn_rx_stat_common stat; rtwn_rx_frame() local
[all...]
/freebsd-src/contrib/pjdfstest/tests/chmod/
H A D08.t29 expect 0644 stat ${n0} mode
32 expect 0600 stat ${n0} mode
34 supported lchmod && expect 0400 stat ${n0} mode
40 expect 0600 stat ${n0} mode
42 supported lchmod && expect 0400 stat ${n0} mode
51 expect 0600 stat ${n0} mode
53 supported lchmod && expect 0500 stat ${n0} mode
56 expect 0400 stat ${n0} mode
64 expect 0644 stat ${n0} mode
67 expect 0600 stat ${n0} mode
[all …]
/freebsd-src/contrib/pjdfstest/tests/open/
H A D00.t59 time=`${fstest} stat . ctime`
62 atime=`${fstest} stat ${n0} atime`
64 mtime=`${fstest} stat ${n0} mtime`
66 ctime=`${fstest} stat ${n0} ctime`
68 mtime=`${fstest} stat . mtime`
70 ctime=`${fstest} stat . ctime`
76 dmtime=`${fstest} stat . mtime`
77 dctime=`${fstest} stat . ctime`
80 mtime=`${fstest} stat . mtime`
82 ctime=`${fstest} stat . ctime`
[all …]
/freebsd-src/contrib/netbsd-tests/lib/librumphijack/
H A Dt_vfs.sh127 # stat default format sans changetime and filename
131 atf_check -s exit:0 -o save:stat.out \
132 stat -f "${statstr}" /rump/mnt/filename
135 atf_check -s exit:0 -o file:stat.out \
136 stat -f "${statstr}" /rump/mnt/dir/same
145 atf_check -s exit:0 -o save:stat.out \
146 stat -f "${statstr}" /rump/mnt/filename
149 atf_check -s exit:0 -o file:stat.out \
150 stat -f "${statstr}" /rump/mnt/filename
151 atf_check -s exit:0 -o file:stat.out \
[all …]
/freebsd-src/bin/chmod/tests/
H A Dchmod_test.sh46 atf_check -o inline:'40755\n40777\n120777\n' stat -f '%p' A A/B A/C
48 atf_check -o inline:'40700\n40700\n120700\n' stat -f '%p' A A/B A/C
50 atf_check -o inline:'40700\n40600\n120700\n' stat -f '%p' A A/B A/C
65 atf_check -o inline:'40755\n40777\n120777\n' stat -f '%p' A A/B A/C
67 atf_check -o inline:'40700\n40700\n120777\n' stat -f '%p' A A/B A/C
69 atf_check -o inline:'40700\n40600\n120777\n' stat -f '%p' A A/B A/C
84 atf_check -o inline:'40755\n40777\n120777\n' stat -f '%p' A A/B A/C
86 atf_check -o inline:'40700\n40700\n120700\n' stat -f '%p' A A/B A/C
88 atf_check -o inline:'40700\n40700\n120600\n' stat -f '%p' A A/B A/C
110 atf_check -o inline:'100750\n100700\n' stat -f '%p' foo bar
[all …]
/freebsd-src/usr.sbin/ypserv/
H A Dyp_server.c42 #include <sys/stat.h>
146 result.stat = YP_YPERR;
151 result.stat = YP_BADARGS;
156 result.stat = yp_errno;
160 result.stat = yp_getbykey(&argp->key, &result.val);
167 if (do_dns && result.stat != YP_TRUE &&
171 if (do_dns && result.stat != YP_TRUE &&
185 result.stat = yp_async_lookup_name(rqstp, nbuf,
188 result.stat = yp_async_lookup_addr(rqstp, nbuf,
191 result.stat = yp_async_lookup_name(rqstp, nbuf,
[all …]
/freebsd-src/sys/nlm/
H A Dnlm_advlock.c87 static int nlm_map_status(nlm4_stats stat);
562 dst->stat.stat = (enum nlm4_stats) src->stat.stat; in nlm_convert_to_nlm4_res()
574 enum clnt_stat stat; in nlm_test_rpc() local
581 stat = nlm_test_1(&args1, &res1, client, ext, timo); in nlm_test_rpc()
583 if (stat == RPC_SUCCESS) { in nlm_test_rpc()
585 res->stat.stat = (enum nlm4_stats) res1.stat.stat; in nlm_test_rpc()
586 if (res1.stat.stat == nlm_denied) in nlm_test_rpc()
588 &res->stat.nlm4_testrply_u.holder, in nlm_test_rpc()
589 &res1.stat.nlm_testrply_u.holder); in nlm_test_rpc()
592 return (stat); in nlm_test_rpc()
[all …]

12345678910>>...132