]> git.baikalelectronics.ru Git - kernel.git/commit
ath5k: use tracing for packet tx/rx dump
authorBob Copeland <me@bobcopeland.com>
Tue, 25 Jan 2011 04:32:55 +0000 (23:32 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 28 Jan 2011 20:44:27 +0000 (15:44 -0500)
commitdcbd1402d175c3371de507b0ac31e13df9c713a5
tree57815e9ba376d4b26cabde9b4ff4092b5b1217c4
parenta20cbd6b5d05a7eee7d707602414cf4980246661
ath5k: use tracing for packet tx/rx dump

This adds a few tracepoints to ath5k driver transmit and
receive callbacks in order to record packet traffic.
We record the entire packet in the trace buffer so that
the data can be extracted with trace-cmd and external
plugins.

Compared to the previous debugging calls, this approach
removes an out-of-line function call from the tx and rx
paths in the compiled-in-but-disabled case, while
improving the ability to process the logged data.

A new option, CONFIG_ATH5K_TRACER, is added so that one
may disable the tracepoints completely.

Signed-off-by: Bob Copeland <me@bobcopeland.com>
Acked-by: Bruno Randolf <br1@einfach.org>
Acked-by: Nick Kossifidis <mickflemm@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/Kconfig
drivers/net/wireless/ath/ath5k/base.c
drivers/net/wireless/ath/ath5k/trace.h [new file with mode: 0644]