From owner-svn-src-head@FreeBSD.ORG Fri Feb 13 05:44:19 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4F6DD106564A; Fri, 13 Feb 2009 05:44:19 +0000 (UTC) (envelope-from sam@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 3DCEC8FC13; Fri, 13 Feb 2009 05:44:19 +0000 (UTC) (envelope-from sam@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n1D5iJke077696; Fri, 13 Feb 2009 05:44:19 GMT (envelope-from sam@svn.freebsd.org) Received: (from sam@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n1D5iJQ7077695; Fri, 13 Feb 2009 05:44:19 GMT (envelope-from sam@svn.freebsd.org) Message-Id: <200902130544.n1D5iJQ7077695@svn.freebsd.org> From: Sam Leffler Date: Fri, 13 Feb 2009 05:44:19 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r188559 - head/tools/tools/ath/athstats X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Feb 2009 05:44:19 -0000 Author: sam Date: Fri Feb 13 05:44:18 2009 New Revision: 188559 URL: http://svn.freebsd.org/changeset/base/188559 Log: add stats no frags and missing stat for no dma buffers Modified: head/tools/tools/ath/athstats/athstats.c Modified: head/tools/tools/ath/athstats/athstats.c ============================================================================== --- head/tools/tools/ath/athstats/athstats.c Fri Feb 13 05:42:25 2009 (r188558) +++ head/tools/tools/ath/athstats/athstats.c Fri Feb 13 05:44:18 2009 (r188559) @@ -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 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 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);