diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/mac80211/Kconfig | 12 | ||||
-rw-r--r-- | net/mac80211/Makefile | 4 | ||||
-rw-r--r-- | net/mac80211/driver-trace.h | 11 |
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 | |||
251 | config 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 | ||
29 | mac80211-$(CONFIG_MAC80211_LEDS) += led.o | 30 | mac80211-$(CONFIG_MAC80211_LEDS) += led.o |
30 | mac80211-$(CONFIG_MAC80211_DEBUGFS) += \ | 31 | mac80211-$(CONFIG_MAC80211_DEBUGFS) += \ |
@@ -41,7 +42,6 @@ mac80211-$(CONFIG_MAC80211_MESH) += \ | |||
41 | 42 | ||
42 | mac80211-$(CONFIG_PM) += pm.o | 43 | mac80211-$(CONFIG_PM) += pm.o |
43 | 44 | ||
44 | mac80211-$(CONFIG_MAC80211_DRIVER_API_TRACER) += driver-trace.o | ||
45 | CFLAGS_driver-trace.o := -I$(src) | 45 | CFLAGS_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, ...) \ | ||
11 | static 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, ...) \ | ||
16 | static 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 | ||