diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-12-21 06:36:33 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-01-16 17:57:51 -0500 |
commit | 5a32aff37a02ebc959837f08d09ac8ba65d4f1b0 (patch) | |
tree | 0697e2856f6756fc11539c7777ea62325a7f07f4 /net | |
parent | 11c4a075db2f8774d37544342c8cb9752b4db9e1 (diff) |
mac80211: split out chandef tracing macros
Some new APIs will require tracing a chandef without
it being part of a channel context, so separate out
the tracing macros for that.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/mac80211/trace.h | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/net/mac80211/trace.h b/net/mac80211/trace.h index a8270b441a6f..41861b91daa3 100644 --- a/net/mac80211/trace.h +++ b/net/mac80211/trace.h | |||
@@ -28,21 +28,27 @@ | |||
28 | #define VIF_PR_FMT " vif:%s(%d%s)" | 28 | #define VIF_PR_FMT " vif:%s(%d%s)" |
29 | #define VIF_PR_ARG __get_str(vif_name), __entry->vif_type, __entry->p2p ? "/p2p" : "" | 29 | #define VIF_PR_ARG __get_str(vif_name), __entry->vif_type, __entry->p2p ? "/p2p" : "" |
30 | 30 | ||
31 | #define CHANCTX_ENTRY __field(u32, control_freq) \ | 31 | #define CHANDEF_ENTRY __field(u32, control_freq) \ |
32 | __field(u32, chan_width) \ | 32 | __field(u32, chan_width) \ |
33 | __field(u32, center_freq1) \ | 33 | __field(u32, center_freq1) \ |
34 | __field(u32, center_freq2) \ | 34 | __field(u32, center_freq2) |
35 | #define CHANDEF_ASSIGN(c) \ | ||
36 | __entry->control_freq = (c)->chan->center_freq; \ | ||
37 | __entry->chan_width = (c)->width; \ | ||
38 | __entry->center_freq1 = (c)->center_freq1; \ | ||
39 | __entry->center_freq1 = (c)->center_freq2; | ||
40 | #define CHANDEF_PR_FMT " control:%d MHz width:%d center: %d/%d MHz" | ||
41 | #define CHANDEF_PR_ARG __entry->control_freq, __entry->chan_width, \ | ||
42 | __entry->center_freq1, __entry->center_freq2 | ||
43 | |||
44 | #define CHANCTX_ENTRY CHANDEF_ENTRY \ | ||
35 | __field(u8, rx_chains_static) \ | 45 | __field(u8, rx_chains_static) \ |
36 | __field(u8, rx_chains_dynamic) | 46 | __field(u8, rx_chains_dynamic) |
37 | #define CHANCTX_ASSIGN __entry->control_freq = ctx->conf.def.chan->center_freq;\ | 47 | #define CHANCTX_ASSIGN CHANDEF_ASSIGN(&ctx->conf.def) \ |
38 | __entry->chan_width = ctx->conf.def.width; \ | ||
39 | __entry->center_freq1 = ctx->conf.def.center_freq1; \ | ||
40 | __entry->center_freq2 = ctx->conf.def.center_freq2; \ | ||
41 | __entry->rx_chains_static = ctx->conf.rx_chains_static; \ | 48 | __entry->rx_chains_static = ctx->conf.rx_chains_static; \ |
42 | __entry->rx_chains_dynamic = ctx->conf.rx_chains_dynamic | 49 | __entry->rx_chains_dynamic = ctx->conf.rx_chains_dynamic |
43 | #define CHANCTX_PR_FMT " control:%d MHz width:%d center: %d/%d MHz chains:%d/%d" | 50 | #define CHANCTX_PR_FMT CHANDEF_PR_FMT " chains:%d/%d" |
44 | #define CHANCTX_PR_ARG __entry->control_freq, __entry->chan_width, \ | 51 | #define CHANCTX_PR_ARG CHANDEF_PR_ARG, \ |
45 | __entry->center_freq1, __entry->center_freq2, \ | ||
46 | __entry->rx_chains_static, __entry->rx_chains_dynamic | 52 | __entry->rx_chains_static, __entry->rx_chains_dynamic |
47 | 53 | ||
48 | 54 | ||