diff options
author | sam <sam@FreeBSD.org> | 2009-02-13 05:44:18 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2009-02-13 05:44:18 +0000 |
commit | 6a08d937057508530a3fe32a0eed96764a432b7e (patch) | |
tree | fd5be65000e8c7b1c41483455b4efba4d2179054 | |
parent | 07d2dfe72c800ada7fced522503dd5de2422f356 (diff) | |
download | FreeBSD-src-6a08d937057508530a3fe32a0eed96764a432b7e.zip FreeBSD-src-6a08d937057508530a3fe32a0eed96764a432b7e.tar.gz |
add stats no frags and missing stat for no dma buffers
-rw-r--r-- | tools/tools/ath/athstats/athstats.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/tools/ath/athstats/athstats.c b/tools/tools/ath/athstats/athstats.c index d644745..0bb05a4 100644 --- a/tools/tools/ath/athstats/athstats.c +++ b/tools/tools/ath/athstats/athstats.c @@ -116,7 +116,11 @@ static const struct fmt athstats[] = { { 5, "txencode", "txencode", "tx encapsulation failed" }, #define S_TX_NONODE AFTER(S_TX_ENCAP) { 5, "txnonode", "txnonode", "tx failed 'cuz no node" }, -#define S_TX_NOMBUF AFTER(S_TX_NONODE) +#define S_TX_NOBUF AFTER(S_TX_NONODE) + { 5, "txnobuf", "txnobuf", "tx failed 'cuz dma buffer allocation failed" }, +#define S_TX_NOFRAG AFTER(S_TX_NOBUF) + { 5, "txnofrag", "txnofrag", "tx failed 'cuz frag buffer allocation(s) failed" }, +#define S_TX_NOMBUF AFTER(S_TX_NOFRAG) { 5, "txnombuf", "txnombuf", "tx failed 'cuz mbuf allocation failed" }, #ifndef __linux__ #define S_TX_NOMCL AFTER(S_TX_NOMBUF) @@ -542,6 +546,8 @@ ath_get_curstat(struct statfoo *sf, int s, char b[], size_t bs) case S_TX_QSTOP: STAT(tx_qstop); case S_TX_ENCAP: STAT(tx_encap); case S_TX_NONODE: STAT(tx_nonode); + case S_TX_NOBUF: STAT(tx_nobuf); + case S_TX_NOFRAG: STAT(tx_nofrag); case S_TX_NOMBUF: STAT(tx_nombuf); #ifdef S_TX_NOMCL case S_TX_NOMCL: STAT(tx_nomcl); @@ -759,6 +765,8 @@ ath_get_totstat(struct statfoo *sf, int s, char b[], size_t bs) case S_TX_QSTOP: STAT(tx_qstop); case S_TX_ENCAP: STAT(tx_encap); case S_TX_NONODE: STAT(tx_nonode); + case S_TX_NOBUF: STAT(tx_nobuf); + case S_TX_NOFRAG: STAT(tx_nofrag); case S_TX_NOMBUF: STAT(tx_nombuf); #ifdef S_TX_NOMCL case S_TX_NOMCL: STAT(tx_nomcl); |