mac80211: bracket driver tracing
authorJohannes Berg <johannes.berg@intel.com>
Thu, 10 Jun 2010 08:56:20 +0000 (10:56 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 14 Jun 2010 19:39:29 +0000 (15:39 -0400)
commit4efc76bdbf9bfd2b8624c4dd52b9d8ffed176b31
tree49be6ee8edf101521f45c72773bc73a6351f11c8
parent8b58ff832df9222e1fb3c58ae7f745f95569b55e
mac80211: bracket driver tracing

Currently, driver tracing is sometimes invoked
after and sometimes before the actual driver
callback. This is fine as long as the driver
has no tracing itself, but as soon as it does
it gets confusing.

To make traces containing such information
easier to read, introduce a return tracer in
mac80211 that essentially brackets any driver
tracing, and invoke the real trace before the
driver's callback, only showing the return
value, if any, afterwards.

Since tracing records the process, there's no
problem with overlapping calls if that should
happen.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/driver-ops.h
net/mac80211/driver-trace.h