svn commit: r248451 - head/sys/dev/ath

Adrian Chadd adrian at FreeBSD.org
Mon Mar 18 01:12:36 UTC 2013


Author: adrian
Date: Mon Mar 18 01:12:36 2013
New Revision: 248451
URL: http://svnweb.freebsd.org/changeset/base/248451

Log:
  Dump out information about the RX descriptor free list and FIFO information.

Modified:
  head/sys/dev/ath/if_ath_sysctl.c

Modified: head/sys/dev/ath/if_ath_sysctl.c
==============================================================================
--- head/sys/dev/ath/if_ath_sysctl.c	Mon Mar 18 01:11:52 2013	(r248450)
+++ head/sys/dev/ath/if_ath_sysctl.c	Mon Mar 18 01:12:36 2013	(r248451)
@@ -397,6 +397,22 @@ ath_sysctl_txagg(SYSCTL_HANDLER_ARGS)
 	printf("Total mgmt TX buffers: %d; Total mgmt TX buffers busy: %d\n",
 	    t, i);
 
+	ATH_RX_LOCK(sc);
+	for (i = 0; i < 2; i++) {
+		printf("%d: fifolen: %d; head=%d; tail=%d\n",
+		    i,
+		    sc->sc_rxedma[i].m_fifolen,
+		    sc->sc_rxedma[i].m_fifo_head,
+		    sc->sc_rxedma[i].m_fifo_tail);
+	}
+	i = 0;
+	TAILQ_FOREACH(bf, &sc->sc_rxbuf, bf_list) {
+		i++;
+	}
+	printf("Total RX buffers in free list: %d buffers\n",
+	    i);
+	ATH_RX_UNLOCK(sc);
+
 	return 0;
 }
 


More information about the svn-src-all mailing list