aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2011-11-25 07:31:53 -0500
committerJohn W. Linville <linville@tuxdriver.com>2011-11-28 14:44:09 -0500
commit61c0d48f1565efdbab1e913c3cfda997e6299c41 (patch)
tree02197ee36a98903d74a86191ef3fe24204d1a120 /net/mac80211
parent30789eb6cbfcead5d90d27dc4e7d7389cacc528c (diff)
mac80211: remove tracing config symbol
There's little point in this config symbol, if tracing is disabled the overhead is negligible and if you think it's too bad you can always turn off tracing completely. Also remove the part where we don't have sparse check the tracing code -- it seems that it can now deal with it (or the code changed). Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/Kconfig12
-rw-r--r--net/mac80211/Makefile4
-rw-r--r--net/mac80211/driver-trace.h11
3 files changed, 2 insertions, 25 deletions
diff --git a/net/mac80211/Kconfig b/net/mac80211/Kconfig
index 7d3b438755f0..96ddb72760b9 100644
--- a/net/mac80211/Kconfig
+++ b/net/mac80211/Kconfig
@@ -247,15 +247,3 @@ config MAC80211_DEBUG_COUNTERS
247 and show them in debugfs. 247 and show them in debugfs.
248 248
249 If unsure, say N. 249 If unsure, say N.
250
251config MAC80211_DRIVER_API_TRACER
252 bool "Driver API tracer"
253 depends on MAC80211_DEBUG_MENU
254 depends on EVENT_TRACING
255 help
256 Say Y here to make mac80211 register with the ftrace
257 framework for the driver API -- you can then see which
258 driver methods it is calling and which API functions
259 drivers are calling by looking at the trace.
260
261 If unsure, say Y.
diff --git a/net/mac80211/Makefile b/net/mac80211/Makefile
index fdb54e61d637..d540c3b160f3 100644
--- a/net/mac80211/Makefile
+++ b/net/mac80211/Makefile
@@ -24,7 +24,8 @@ mac80211-y := \
24 util.o \ 24 util.o \
25 wme.o \ 25 wme.o \
26 event.o \ 26 event.o \
27 chan.o 27 chan.o \
28 driver-trace.o
28 29
29mac80211-$(CONFIG_MAC80211_LEDS) += led.o 30mac80211-$(CONFIG_MAC80211_LEDS) += led.o
30mac80211-$(CONFIG_MAC80211_DEBUGFS) += \ 31mac80211-$(CONFIG_MAC80211_DEBUGFS) += \
@@ -41,7 +42,6 @@ mac80211-$(CONFIG_MAC80211_MESH) += \
41 42
42mac80211-$(CONFIG_PM) += pm.o 43mac80211-$(CONFIG_PM) += pm.o
43 44
44mac80211-$(CONFIG_MAC80211_DRIVER_API_TRACER) += driver-trace.o
45CFLAGS_driver-trace.o := -I$(src) 45CFLAGS_driver-trace.o := -I$(src)
46 46
47# objects for PID algorithm 47# objects for PID algorithm
diff --git a/net/mac80211/driver-trace.h b/net/mac80211/driver-trace.h
index 2af4fca55337..6e9df8fd8fb8 100644
--- a/net/mac80211/driver-trace.h
+++ b/net/mac80211/driver-trace.h
@@ -5,17 +5,6 @@
5#include <net/mac80211.h> 5#include <net/mac80211.h>
6#include "ieee80211_i.h" 6#include "ieee80211_i.h"
7 7
8#if !defined(CONFIG_MAC80211_DRIVER_API_TRACER) || defined(__CHECKER__)
9#undef TRACE_EVENT
10#define TRACE_EVENT(name, proto, ...) \
11static inline void trace_ ## name(proto) {}
12#undef DECLARE_EVENT_CLASS
13#define DECLARE_EVENT_CLASS(...)
14#undef DEFINE_EVENT
15#define DEFINE_EVENT(evt_class, name, proto, ...) \
16static inline void trace_ ## name(proto) {}
17#endif
18
19#undef TRACE_SYSTEM 8#undef TRACE_SYSTEM
20#define TRACE_SYSTEM mac80211 9#define TRACE_SYSTEM mac80211
21 10