History log of /freebsd-10-stable/tools/tools/ath/athstats/statfoo.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 231863 17-Feb-2012 adrian

Fix up this local copy of statfoo to support > 128 statistics.

This allows all of the athstats statistics to work again.

Specifics:

* The previous code used chars < 0x80 as printable, and chars >= 0x80
as "statistics"
* .. which meant any statistic above 127 would wrap around to 0;
* .. so once I added the 802.11n TX/RX statistics to athstats, the tail
end of the statistics list weren't accessible.

This patch:

* adds a define which represents the magic character, rather than a hard
coded one
* the statistic in question is little endian encoded after the magic
character.

Notes:

* statfoo is useful enough to possibly warrant turning into a library API.


# 188558 13-Feb-2009 sam

backout r188327, it broke summary printing


# 188327 08-Feb-2009 sam

o use humanize_number to print totals
o shrink some fields now that we don't have to worry about overflow


# 174570 12-Dec-2007 sam

Some overdue tlc:
o push include paths to the Makefile
o use the AFTER trick to simplify adding new items
o prepare stat blocks for additional data
o align values for verbose output
o fillin some missing stats

MFC after: 1 week


# 174245 04-Dec-2007 sam

update copyrights


# 161200 10-Aug-2006 sam

checkpoint new version