提交 61c0d48f 编写于 作者: J Johannes Berg 提交者: John W. Linville

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: NJohannes Berg <johannes.berg@intel.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 30789eb6
...@@ -247,15 +247,3 @@ config MAC80211_DEBUG_COUNTERS ...@@ -247,15 +247,3 @@ config MAC80211_DEBUG_COUNTERS
and show them in debugfs. and show them in debugfs.
If unsure, say N. If unsure, say N.
config MAC80211_DRIVER_API_TRACER
bool "Driver API tracer"
depends on MAC80211_DEBUG_MENU
depends on EVENT_TRACING
help
Say Y here to make mac80211 register with the ftrace
framework for the driver API -- you can then see which
driver methods it is calling and which API functions
drivers are calling by looking at the trace.
If unsure, say Y.
...@@ -24,7 +24,8 @@ mac80211-y := \ ...@@ -24,7 +24,8 @@ mac80211-y := \
util.o \ util.o \
wme.o \ wme.o \
event.o \ event.o \
chan.o chan.o \
driver-trace.o
mac80211-$(CONFIG_MAC80211_LEDS) += led.o mac80211-$(CONFIG_MAC80211_LEDS) += led.o
mac80211-$(CONFIG_MAC80211_DEBUGFS) += \ mac80211-$(CONFIG_MAC80211_DEBUGFS) += \
...@@ -41,7 +42,6 @@ mac80211-$(CONFIG_MAC80211_MESH) += \ ...@@ -41,7 +42,6 @@ mac80211-$(CONFIG_MAC80211_MESH) += \
mac80211-$(CONFIG_PM) += pm.o mac80211-$(CONFIG_PM) += pm.o
mac80211-$(CONFIG_MAC80211_DRIVER_API_TRACER) += driver-trace.o
CFLAGS_driver-trace.o := -I$(src) CFLAGS_driver-trace.o := -I$(src)
# objects for PID algorithm # objects for PID algorithm
......
...@@ -5,17 +5,6 @@ ...@@ -5,17 +5,6 @@
#include <net/mac80211.h> #include <net/mac80211.h>
#include "ieee80211_i.h" #include "ieee80211_i.h"
#if !defined(CONFIG_MAC80211_DRIVER_API_TRACER) || defined(__CHECKER__)
#undef TRACE_EVENT
#define TRACE_EVENT(name, proto, ...) \
static inline void trace_ ## name(proto) {}
#undef DECLARE_EVENT_CLASS
#define DECLARE_EVENT_CLASS(...)
#undef DEFINE_EVENT
#define DEFINE_EVENT(evt_class, name, proto, ...) \
static inline void trace_ ## name(proto) {}
#endif
#undef TRACE_SYSTEM #undef TRACE_SYSTEM
#define TRACE_SYSTEM mac80211 #define TRACE_SYSTEM mac80211
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册