Commit f5c4f108 authored by Seth Forshee's avatar Seth Forshee Committed by John W. Linville

brcm80211: Allow trace support to be enabled separately from debug

Since the runtime overhead of trace support is small when tracing is
disabled, users may be interested in turning on trace support while
leaving other debug features off. Add a new config option named
CONFIG_BRCM_TRACING for this purpose.
Signed-off-by: default avatarSeth Forshee <seth.forshee@canonical.com>
Reviewed-by: default avatarPieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: default avatarArend van Spriel <arend@broadcom.com>
Tested-by: default avatarDaniel Wagner <wagi@monom.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 75be3e24
...@@ -55,6 +55,17 @@ config BRCMFMAC_USB ...@@ -55,6 +55,17 @@ config BRCMFMAC_USB
IEEE802.11n embedded FullMAC WLAN driver. Say Y if you want to IEEE802.11n embedded FullMAC WLAN driver. Say Y if you want to
use the driver for an USB wireless card. use the driver for an USB wireless card.
config BRCM_TRACING
bool "Broadcom device tracing"
depends on BRCMSMAC || BRCMFMAC
---help---
If you say Y here, the Broadcom wireless drivers will register
with ftrace to dump event information into the trace ringbuffer.
Tracing can be enabled at runtime to aid in debugging wireless
issues. This option adds a small amount of overhead when tracing
is disabled. If unsure, say Y to allow developers to better help
you when wireless problems occur.
config BRCMDBG config BRCMDBG
bool "Broadcom driver debug functions" bool "Broadcom driver debug functions"
depends on BRCMSMAC || BRCMFMAC depends on BRCMSMAC || BRCMFMAC
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
#include <linux/tracepoint.h> #include <linux/tracepoint.h>
#include "mac80211_if.h" #include "mac80211_if.h"
#ifndef CONFIG_BRCMDBG #ifndef CONFIG_BRCM_TRACING
#undef TRACE_EVENT #undef TRACE_EVENT
#define TRACE_EVENT(name, proto, ...) \ #define TRACE_EVENT(name, proto, ...) \
static inline void trace_ ## name(proto) {} static inline void trace_ ## name(proto) {}
...@@ -80,7 +80,7 @@ TRACE_EVENT(brcms_dpc, ...@@ -80,7 +80,7 @@ TRACE_EVENT(brcms_dpc,
#endif /* __TRACE_BRCMSMAC_H */ #endif /* __TRACE_BRCMSMAC_H */
#ifdef CONFIG_BRCMDBG #ifdef CONFIG_BRCM_TRACING
#undef TRACE_INCLUDE_PATH #undef TRACE_INCLUDE_PATH
#define TRACE_INCLUDE_PATH . #define TRACE_INCLUDE_PATH .
...@@ -89,4 +89,4 @@ TRACE_EVENT(brcms_dpc, ...@@ -89,4 +89,4 @@ TRACE_EVENT(brcms_dpc,
#include <trace/define_trace.h> #include <trace/define_trace.h>
#endif /* CONFIG_BRCMDBG */ #endif /* CONFIG_BRCM_TRACING */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment