Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 1 | #if !defined(__MAC80211_DRIVER_TRACE) || defined(TRACE_HEADER_MULTI_READ) |
| 2 | #define __MAC80211_DRIVER_TRACE |
| 3 | |
| 4 | #include <linux/tracepoint.h> |
| 5 | #include <net/mac80211.h> |
| 6 | #include "ieee80211_i.h" |
| 7 | |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 8 | #undef TRACE_SYSTEM |
| 9 | #define TRACE_SYSTEM mac80211 |
| 10 | |
| 11 | #define MAXNAME 32 |
| 12 | #define LOCAL_ENTRY __array(char, wiphy_name, 32) |
| 13 | #define LOCAL_ASSIGN strlcpy(__entry->wiphy_name, wiphy_name(local->hw.wiphy), MAXNAME) |
| 14 | #define LOCAL_PR_FMT "%s" |
| 15 | #define LOCAL_PR_ARG __entry->wiphy_name |
| 16 | |
| 17 | #define STA_ENTRY __array(char, sta_addr, ETH_ALEN) |
| 18 | #define STA_ASSIGN (sta ? memcpy(__entry->sta_addr, sta->addr, ETH_ALEN) : memset(__entry->sta_addr, 0, ETH_ALEN)) |
| 19 | #define STA_PR_FMT " sta:%pM" |
| 20 | #define STA_PR_ARG __entry->sta_addr |
| 21 | |
Johannes Berg | 2ca27bc | 2010-09-16 14:58:23 +0200 | [diff] [blame] | 22 | #define VIF_ENTRY __field(enum nl80211_iftype, vif_type) __field(void *, sdata) \ |
| 23 | __field(bool, p2p) \ |
Johannes Berg | 12375ef | 2009-11-25 20:30:31 +0100 | [diff] [blame] | 24 | __string(vif_name, sdata->dev ? sdata->dev->name : "<nodev>") |
Johannes Berg | 2ca27bc | 2010-09-16 14:58:23 +0200 | [diff] [blame] | 25 | #define VIF_ASSIGN __entry->vif_type = sdata->vif.type; __entry->sdata = sdata; \ |
| 26 | __entry->p2p = sdata->vif.p2p; \ |
Johannes Berg | f142c6b | 2012-06-18 20:07:15 +0200 | [diff] [blame] | 27 | __assign_str(vif_name, sdata->dev ? sdata->dev->name : sdata->name) |
Johannes Berg | 2ca27bc | 2010-09-16 14:58:23 +0200 | [diff] [blame] | 28 | #define VIF_PR_FMT " vif:%s(%d%s)" |
| 29 | #define VIF_PR_ARG __get_str(vif_name), __entry->vif_type, __entry->p2p ? "/p2p" : "" |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 30 | |
Johannes Berg | 5a32aff | 2012-12-21 12:36:33 +0100 | [diff] [blame] | 31 | #define CHANDEF_ENTRY __field(u32, control_freq) \ |
Johannes Berg | 4bf8853 | 2012-11-09 11:39:59 +0100 | [diff] [blame] | 32 | __field(u32, chan_width) \ |
| 33 | __field(u32, center_freq1) \ |
Johannes Berg | 5a32aff | 2012-12-21 12:36:33 +0100 | [diff] [blame] | 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; \ |
Johannes Berg | 757af6f | 2013-02-08 21:29:59 +0100 | [diff] [blame] | 39 | __entry->center_freq2 = (c)->center_freq2; |
Johannes Berg | 5a32aff | 2012-12-21 12:36:33 +0100 | [diff] [blame] | 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 \ |
Johannes Berg | 04ecd25 | 2012-09-11 14:34:12 +0200 | [diff] [blame] | 45 | __field(u8, rx_chains_static) \ |
| 46 | __field(u8, rx_chains_dynamic) |
Johannes Berg | 5a32aff | 2012-12-21 12:36:33 +0100 | [diff] [blame] | 47 | #define CHANCTX_ASSIGN CHANDEF_ASSIGN(&ctx->conf.def) \ |
Johannes Berg | 04ecd25 | 2012-09-11 14:34:12 +0200 | [diff] [blame] | 48 | __entry->rx_chains_static = ctx->conf.rx_chains_static; \ |
| 49 | __entry->rx_chains_dynamic = ctx->conf.rx_chains_dynamic |
Johannes Berg | 5a32aff | 2012-12-21 12:36:33 +0100 | [diff] [blame] | 50 | #define CHANCTX_PR_FMT CHANDEF_PR_FMT " chains:%d/%d" |
| 51 | #define CHANCTX_PR_ARG CHANDEF_PR_ARG, \ |
Johannes Berg | 04ecd25 | 2012-09-11 14:34:12 +0200 | [diff] [blame] | 52 | __entry->rx_chains_static, __entry->rx_chains_dynamic |
Michal Kazior | c3645ea | 2012-06-26 14:37:17 +0200 | [diff] [blame] | 53 | |
| 54 | |
| 55 | |
Johannes Berg | b5878a2 | 2010-04-07 16:48:40 +0200 | [diff] [blame] | 56 | /* |
| 57 | * Tracing for driver callbacks. |
| 58 | */ |
| 59 | |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 60 | DECLARE_EVENT_CLASS(local_only_evt, |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 61 | TP_PROTO(struct ieee80211_local *local), |
| 62 | TP_ARGS(local), |
| 63 | TP_STRUCT__entry( |
| 64 | LOCAL_ENTRY |
| 65 | ), |
| 66 | TP_fast_assign( |
| 67 | LOCAL_ASSIGN; |
| 68 | ), |
| 69 | TP_printk(LOCAL_PR_FMT, LOCAL_PR_ARG) |
| 70 | ); |
| 71 | |
Luciano Coelho | 92ddc11 | 2011-05-09 14:40:06 +0300 | [diff] [blame] | 72 | DECLARE_EVENT_CLASS(local_sdata_addr_evt, |
| 73 | TP_PROTO(struct ieee80211_local *local, |
| 74 | struct ieee80211_sub_if_data *sdata), |
| 75 | TP_ARGS(local, sdata), |
| 76 | |
| 77 | TP_STRUCT__entry( |
| 78 | LOCAL_ENTRY |
| 79 | VIF_ENTRY |
| 80 | __array(char, addr, 6) |
| 81 | ), |
| 82 | |
| 83 | TP_fast_assign( |
| 84 | LOCAL_ASSIGN; |
| 85 | VIF_ASSIGN; |
| 86 | memcpy(__entry->addr, sdata->vif.addr, 6); |
| 87 | ), |
| 88 | |
| 89 | TP_printk( |
| 90 | LOCAL_PR_FMT VIF_PR_FMT " addr:%pM", |
| 91 | LOCAL_PR_ARG, VIF_PR_ARG, __entry->addr |
| 92 | ) |
| 93 | ); |
| 94 | |
| 95 | DECLARE_EVENT_CLASS(local_u32_evt, |
| 96 | TP_PROTO(struct ieee80211_local *local, u32 value), |
| 97 | TP_ARGS(local, value), |
| 98 | |
| 99 | TP_STRUCT__entry( |
| 100 | LOCAL_ENTRY |
| 101 | __field(u32, value) |
| 102 | ), |
| 103 | |
| 104 | TP_fast_assign( |
| 105 | LOCAL_ASSIGN; |
| 106 | __entry->value = value; |
| 107 | ), |
| 108 | |
| 109 | TP_printk( |
| 110 | LOCAL_PR_FMT " value:%d", |
| 111 | LOCAL_PR_ARG, __entry->value |
| 112 | ) |
| 113 | ); |
| 114 | |
Luciano Coelho | 79f460c | 2011-05-11 17:09:36 +0300 | [diff] [blame] | 115 | DECLARE_EVENT_CLASS(local_sdata_evt, |
| 116 | TP_PROTO(struct ieee80211_local *local, |
| 117 | struct ieee80211_sub_if_data *sdata), |
| 118 | TP_ARGS(local, sdata), |
| 119 | |
| 120 | TP_STRUCT__entry( |
| 121 | LOCAL_ENTRY |
| 122 | VIF_ENTRY |
| 123 | ), |
| 124 | |
| 125 | TP_fast_assign( |
| 126 | LOCAL_ASSIGN; |
| 127 | VIF_ASSIGN; |
| 128 | ), |
| 129 | |
| 130 | TP_printk( |
| 131 | LOCAL_PR_FMT VIF_PR_FMT, |
| 132 | LOCAL_PR_ARG, VIF_PR_ARG |
| 133 | ) |
| 134 | ); |
| 135 | |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 136 | DEFINE_EVENT(local_only_evt, drv_return_void, |
| 137 | TP_PROTO(struct ieee80211_local *local), |
| 138 | TP_ARGS(local) |
| 139 | ); |
| 140 | |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 141 | TRACE_EVENT(drv_return_int, |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 142 | TP_PROTO(struct ieee80211_local *local, int ret), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 143 | TP_ARGS(local, ret), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 144 | TP_STRUCT__entry( |
| 145 | LOCAL_ENTRY |
| 146 | __field(int, ret) |
| 147 | ), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 148 | TP_fast_assign( |
| 149 | LOCAL_ASSIGN; |
| 150 | __entry->ret = ret; |
| 151 | ), |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 152 | TP_printk(LOCAL_PR_FMT " - %d", LOCAL_PR_ARG, __entry->ret) |
| 153 | ); |
| 154 | |
Vivek Natarajan | e8306f9 | 2011-04-06 11:41:10 +0530 | [diff] [blame] | 155 | TRACE_EVENT(drv_return_bool, |
| 156 | TP_PROTO(struct ieee80211_local *local, bool ret), |
| 157 | TP_ARGS(local, ret), |
| 158 | TP_STRUCT__entry( |
| 159 | LOCAL_ENTRY |
| 160 | __field(bool, ret) |
| 161 | ), |
| 162 | TP_fast_assign( |
| 163 | LOCAL_ASSIGN; |
| 164 | __entry->ret = ret; |
| 165 | ), |
| 166 | TP_printk(LOCAL_PR_FMT " - %s", LOCAL_PR_ARG, (__entry->ret) ? |
| 167 | "true" : "false") |
| 168 | ); |
| 169 | |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 170 | TRACE_EVENT(drv_return_u64, |
| 171 | TP_PROTO(struct ieee80211_local *local, u64 ret), |
| 172 | TP_ARGS(local, ret), |
| 173 | TP_STRUCT__entry( |
| 174 | LOCAL_ENTRY |
| 175 | __field(u64, ret) |
| 176 | ), |
| 177 | TP_fast_assign( |
| 178 | LOCAL_ASSIGN; |
| 179 | __entry->ret = ret; |
| 180 | ), |
| 181 | TP_printk(LOCAL_PR_FMT " - %llu", LOCAL_PR_ARG, __entry->ret) |
| 182 | ); |
| 183 | |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 184 | DEFINE_EVENT(local_only_evt, drv_start, |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 185 | TP_PROTO(struct ieee80211_local *local), |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 186 | TP_ARGS(local) |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 187 | ); |
| 188 | |
Ben Greear | e352114 | 2012-04-23 12:50:31 -0700 | [diff] [blame] | 189 | DEFINE_EVENT(local_u32_evt, drv_get_et_strings, |
| 190 | TP_PROTO(struct ieee80211_local *local, u32 sset), |
| 191 | TP_ARGS(local, sset) |
| 192 | ); |
| 193 | |
| 194 | DEFINE_EVENT(local_u32_evt, drv_get_et_sset_count, |
| 195 | TP_PROTO(struct ieee80211_local *local, u32 sset), |
| 196 | TP_ARGS(local, sset) |
| 197 | ); |
| 198 | |
| 199 | DEFINE_EVENT(local_only_evt, drv_get_et_stats, |
| 200 | TP_PROTO(struct ieee80211_local *local), |
| 201 | TP_ARGS(local) |
| 202 | ); |
| 203 | |
Johannes Berg | eecc480 | 2011-05-04 15:37:29 +0200 | [diff] [blame] | 204 | DEFINE_EVENT(local_only_evt, drv_suspend, |
| 205 | TP_PROTO(struct ieee80211_local *local), |
| 206 | TP_ARGS(local) |
| 207 | ); |
| 208 | |
| 209 | DEFINE_EVENT(local_only_evt, drv_resume, |
| 210 | TP_PROTO(struct ieee80211_local *local), |
| 211 | TP_ARGS(local) |
| 212 | ); |
| 213 | |
Johannes Berg | 6d52563 | 2012-04-04 15:05:25 +0200 | [diff] [blame] | 214 | TRACE_EVENT(drv_set_wakeup, |
| 215 | TP_PROTO(struct ieee80211_local *local, bool enabled), |
| 216 | TP_ARGS(local, enabled), |
| 217 | TP_STRUCT__entry( |
| 218 | LOCAL_ENTRY |
| 219 | __field(bool, enabled) |
| 220 | ), |
| 221 | TP_fast_assign( |
| 222 | LOCAL_ASSIGN; |
| 223 | __entry->enabled = enabled; |
| 224 | ), |
| 225 | TP_printk(LOCAL_PR_FMT " enabled:%d", LOCAL_PR_ARG, __entry->enabled) |
| 226 | ); |
| 227 | |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 228 | DEFINE_EVENT(local_only_evt, drv_stop, |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 229 | TP_PROTO(struct ieee80211_local *local), |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 230 | TP_ARGS(local) |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 231 | ); |
| 232 | |
Luciano Coelho | 92ddc11 | 2011-05-09 14:40:06 +0300 | [diff] [blame] | 233 | DEFINE_EVENT(local_sdata_addr_evt, drv_add_interface, |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 234 | TP_PROTO(struct ieee80211_local *local, |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 235 | struct ieee80211_sub_if_data *sdata), |
Luciano Coelho | 92ddc11 | 2011-05-09 14:40:06 +0300 | [diff] [blame] | 236 | TP_ARGS(local, sdata) |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 237 | ); |
| 238 | |
Johannes Berg | 34d4bc4 | 2010-08-27 12:35:58 +0200 | [diff] [blame] | 239 | TRACE_EVENT(drv_change_interface, |
| 240 | TP_PROTO(struct ieee80211_local *local, |
| 241 | struct ieee80211_sub_if_data *sdata, |
Johannes Berg | 2ca27bc | 2010-09-16 14:58:23 +0200 | [diff] [blame] | 242 | enum nl80211_iftype type, bool p2p), |
Johannes Berg | 34d4bc4 | 2010-08-27 12:35:58 +0200 | [diff] [blame] | 243 | |
Johannes Berg | 2ca27bc | 2010-09-16 14:58:23 +0200 | [diff] [blame] | 244 | TP_ARGS(local, sdata, type, p2p), |
Johannes Berg | 34d4bc4 | 2010-08-27 12:35:58 +0200 | [diff] [blame] | 245 | |
| 246 | TP_STRUCT__entry( |
| 247 | LOCAL_ENTRY |
| 248 | VIF_ENTRY |
| 249 | __field(u32, new_type) |
Johannes Berg | 2ca27bc | 2010-09-16 14:58:23 +0200 | [diff] [blame] | 250 | __field(bool, new_p2p) |
Johannes Berg | 34d4bc4 | 2010-08-27 12:35:58 +0200 | [diff] [blame] | 251 | ), |
| 252 | |
| 253 | TP_fast_assign( |
| 254 | LOCAL_ASSIGN; |
| 255 | VIF_ASSIGN; |
| 256 | __entry->new_type = type; |
Johannes Berg | 2ca27bc | 2010-09-16 14:58:23 +0200 | [diff] [blame] | 257 | __entry->new_p2p = p2p; |
Johannes Berg | 34d4bc4 | 2010-08-27 12:35:58 +0200 | [diff] [blame] | 258 | ), |
| 259 | |
| 260 | TP_printk( |
Johannes Berg | 2ca27bc | 2010-09-16 14:58:23 +0200 | [diff] [blame] | 261 | LOCAL_PR_FMT VIF_PR_FMT " new type:%d%s", |
| 262 | LOCAL_PR_ARG, VIF_PR_ARG, __entry->new_type, |
| 263 | __entry->new_p2p ? "/p2p" : "" |
Johannes Berg | 34d4bc4 | 2010-08-27 12:35:58 +0200 | [diff] [blame] | 264 | ) |
| 265 | ); |
| 266 | |
Luciano Coelho | 92ddc11 | 2011-05-09 14:40:06 +0300 | [diff] [blame] | 267 | DEFINE_EVENT(local_sdata_addr_evt, drv_remove_interface, |
| 268 | TP_PROTO(struct ieee80211_local *local, |
| 269 | struct ieee80211_sub_if_data *sdata), |
| 270 | TP_ARGS(local, sdata) |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 271 | ); |
| 272 | |
| 273 | TRACE_EVENT(drv_config, |
| 274 | TP_PROTO(struct ieee80211_local *local, |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 275 | u32 changed), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 276 | |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 277 | TP_ARGS(local, changed), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 278 | |
| 279 | TP_STRUCT__entry( |
| 280 | LOCAL_ENTRY |
| 281 | __field(u32, changed) |
Johannes Berg | f911ab8 | 2009-11-25 19:07:20 +0100 | [diff] [blame] | 282 | __field(u32, flags) |
| 283 | __field(int, power_level) |
| 284 | __field(int, dynamic_ps_timeout) |
| 285 | __field(int, max_sleep_period) |
| 286 | __field(u16, listen_interval) |
| 287 | __field(u8, long_frame_max_tx_count) |
| 288 | __field(u8, short_frame_max_tx_count) |
| 289 | __field(int, center_freq) |
| 290 | __field(int, channel_type) |
Johannes Berg | 0f78231 | 2009-12-01 13:37:02 +0100 | [diff] [blame] | 291 | __field(int, smps) |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 292 | ), |
| 293 | |
| 294 | TP_fast_assign( |
| 295 | LOCAL_ASSIGN; |
| 296 | __entry->changed = changed; |
Johannes Berg | f911ab8 | 2009-11-25 19:07:20 +0100 | [diff] [blame] | 297 | __entry->flags = local->hw.conf.flags; |
| 298 | __entry->power_level = local->hw.conf.power_level; |
| 299 | __entry->dynamic_ps_timeout = local->hw.conf.dynamic_ps_timeout; |
| 300 | __entry->max_sleep_period = local->hw.conf.max_sleep_period; |
| 301 | __entry->listen_interval = local->hw.conf.listen_interval; |
Johannes Berg | 3d01be7 | 2012-07-26 14:27:39 +0200 | [diff] [blame] | 302 | __entry->long_frame_max_tx_count = |
| 303 | local->hw.conf.long_frame_max_tx_count; |
| 304 | __entry->short_frame_max_tx_count = |
| 305 | local->hw.conf.short_frame_max_tx_count; |
| 306 | __entry->center_freq = local->hw.conf.channel ? |
| 307 | local->hw.conf.channel->center_freq : 0; |
Johannes Berg | f911ab8 | 2009-11-25 19:07:20 +0100 | [diff] [blame] | 308 | __entry->channel_type = local->hw.conf.channel_type; |
Johannes Berg | 0f78231 | 2009-12-01 13:37:02 +0100 | [diff] [blame] | 309 | __entry->smps = local->hw.conf.smps_mode; |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 310 | ), |
| 311 | |
| 312 | TP_printk( |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 313 | LOCAL_PR_FMT " ch:%#x freq:%d", |
| 314 | LOCAL_PR_ARG, __entry->changed, __entry->center_freq |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 315 | ) |
| 316 | ); |
| 317 | |
| 318 | TRACE_EVENT(drv_bss_info_changed, |
| 319 | TP_PROTO(struct ieee80211_local *local, |
Johannes Berg | 12375ef | 2009-11-25 20:30:31 +0100 | [diff] [blame] | 320 | struct ieee80211_sub_if_data *sdata, |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 321 | struct ieee80211_bss_conf *info, |
| 322 | u32 changed), |
| 323 | |
Johannes Berg | 12375ef | 2009-11-25 20:30:31 +0100 | [diff] [blame] | 324 | TP_ARGS(local, sdata, info, changed), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 325 | |
| 326 | TP_STRUCT__entry( |
| 327 | LOCAL_ENTRY |
| 328 | VIF_ENTRY |
Johannes Berg | 1724ffb | 2012-10-24 11:38:30 +0200 | [diff] [blame] | 329 | __field(u32, changed) |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 330 | __field(bool, assoc) |
Johannes Berg | 1724ffb | 2012-10-24 11:38:30 +0200 | [diff] [blame] | 331 | __field(bool, ibss_joined) |
| 332 | __field(bool, ibss_creator) |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 333 | __field(u16, aid) |
| 334 | __field(bool, cts) |
| 335 | __field(bool, shortpre) |
| 336 | __field(bool, shortslot) |
Johannes Berg | 1724ffb | 2012-10-24 11:38:30 +0200 | [diff] [blame] | 337 | __field(bool, enable_beacon) |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 338 | __field(u8, dtimper) |
| 339 | __field(u16, bcnint) |
| 340 | __field(u16, assoc_cap) |
Johannes Berg | 8c358bc | 2012-05-22 22:13:05 +0200 | [diff] [blame] | 341 | __field(u64, sync_tsf) |
| 342 | __field(u32, sync_device_ts) |
Johannes Berg | ef429da | 2013-02-05 17:48:40 +0100 | [diff] [blame] | 343 | __field(u8, sync_dtim_count) |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 344 | __field(u32, basic_rates) |
Johannes Berg | 1724ffb | 2012-10-24 11:38:30 +0200 | [diff] [blame] | 345 | __array(int, mcast_rate, IEEE80211_NUM_BANDS) |
Johannes Berg | f911ab8 | 2009-11-25 19:07:20 +0100 | [diff] [blame] | 346 | __field(u16, ht_operation_mode) |
Johannes Berg | 1724ffb | 2012-10-24 11:38:30 +0200 | [diff] [blame] | 347 | __field(s32, cqm_rssi_thold); |
| 348 | __field(s32, cqm_rssi_hyst); |
Johannes Berg | 4bf8853 | 2012-11-09 11:39:59 +0100 | [diff] [blame] | 349 | __field(u32, channel_width); |
| 350 | __field(u32, channel_cfreq1); |
Johannes Berg | 0f19b41 | 2013-01-14 16:39:07 +0100 | [diff] [blame] | 351 | __dynamic_array(u32, arp_addr_list, |
| 352 | info->arp_addr_cnt > IEEE80211_BSS_ARP_ADDR_LIST_LEN ? |
| 353 | IEEE80211_BSS_ARP_ADDR_LIST_LEN : |
| 354 | info->arp_addr_cnt); |
| 355 | __field(int, arp_addr_cnt); |
Johannes Berg | 1724ffb | 2012-10-24 11:38:30 +0200 | [diff] [blame] | 356 | __field(bool, qos); |
| 357 | __field(bool, idle); |
| 358 | __field(bool, ps); |
| 359 | __dynamic_array(u8, ssid, info->ssid_len); |
| 360 | __field(bool, hidden_ssid); |
Johannes Berg | 1ea6f9c | 2012-10-24 10:59:25 +0200 | [diff] [blame] | 361 | __field(int, txpower) |
Johannes Berg | 488dd7b | 2012-10-29 20:08:01 +0100 | [diff] [blame] | 362 | __field(u8, p2p_ctwindow) |
| 363 | __field(bool, p2p_oppps) |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 364 | ), |
| 365 | |
| 366 | TP_fast_assign( |
| 367 | LOCAL_ASSIGN; |
| 368 | VIF_ASSIGN; |
| 369 | __entry->changed = changed; |
| 370 | __entry->aid = info->aid; |
| 371 | __entry->assoc = info->assoc; |
Johannes Berg | 1724ffb | 2012-10-24 11:38:30 +0200 | [diff] [blame] | 372 | __entry->ibss_joined = info->ibss_joined; |
| 373 | __entry->ibss_creator = info->ibss_creator; |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 374 | __entry->shortpre = info->use_short_preamble; |
| 375 | __entry->cts = info->use_cts_prot; |
| 376 | __entry->shortslot = info->use_short_slot; |
Johannes Berg | 1724ffb | 2012-10-24 11:38:30 +0200 | [diff] [blame] | 377 | __entry->enable_beacon = info->enable_beacon; |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 378 | __entry->dtimper = info->dtim_period; |
| 379 | __entry->bcnint = info->beacon_int; |
| 380 | __entry->assoc_cap = info->assoc_capability; |
Johannes Berg | 8c358bc | 2012-05-22 22:13:05 +0200 | [diff] [blame] | 381 | __entry->sync_tsf = info->sync_tsf; |
| 382 | __entry->sync_device_ts = info->sync_device_ts; |
Johannes Berg | ef429da | 2013-02-05 17:48:40 +0100 | [diff] [blame] | 383 | __entry->sync_dtim_count = info->sync_dtim_count; |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 384 | __entry->basic_rates = info->basic_rates; |
Johannes Berg | 1724ffb | 2012-10-24 11:38:30 +0200 | [diff] [blame] | 385 | memcpy(__entry->mcast_rate, info->mcast_rate, |
| 386 | sizeof(__entry->mcast_rate)); |
Johannes Berg | f911ab8 | 2009-11-25 19:07:20 +0100 | [diff] [blame] | 387 | __entry->ht_operation_mode = info->ht_operation_mode; |
Johannes Berg | 1724ffb | 2012-10-24 11:38:30 +0200 | [diff] [blame] | 388 | __entry->cqm_rssi_thold = info->cqm_rssi_thold; |
| 389 | __entry->cqm_rssi_hyst = info->cqm_rssi_hyst; |
Johannes Berg | 4bf8853 | 2012-11-09 11:39:59 +0100 | [diff] [blame] | 390 | __entry->channel_width = info->chandef.width; |
| 391 | __entry->channel_cfreq1 = info->chandef.center_freq1; |
Johannes Berg | 0f19b41 | 2013-01-14 16:39:07 +0100 | [diff] [blame] | 392 | __entry->arp_addr_cnt = info->arp_addr_cnt; |
Johannes Berg | 1724ffb | 2012-10-24 11:38:30 +0200 | [diff] [blame] | 393 | memcpy(__get_dynamic_array(arp_addr_list), info->arp_addr_list, |
Johannes Berg | 0f19b41 | 2013-01-14 16:39:07 +0100 | [diff] [blame] | 394 | sizeof(u32) * (info->arp_addr_cnt > IEEE80211_BSS_ARP_ADDR_LIST_LEN ? |
| 395 | IEEE80211_BSS_ARP_ADDR_LIST_LEN : |
| 396 | info->arp_addr_cnt)); |
Johannes Berg | 1724ffb | 2012-10-24 11:38:30 +0200 | [diff] [blame] | 397 | __entry->qos = info->qos; |
| 398 | __entry->idle = info->idle; |
| 399 | __entry->ps = info->ps; |
| 400 | memcpy(__get_dynamic_array(ssid), info->ssid, info->ssid_len); |
| 401 | __entry->hidden_ssid = info->hidden_ssid; |
Johannes Berg | 1ea6f9c | 2012-10-24 10:59:25 +0200 | [diff] [blame] | 402 | __entry->txpower = info->txpower; |
Johannes Berg | 488dd7b | 2012-10-29 20:08:01 +0100 | [diff] [blame] | 403 | __entry->p2p_ctwindow = info->p2p_ctwindow; |
| 404 | __entry->p2p_oppps = info->p2p_oppps; |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 405 | ), |
| 406 | |
| 407 | TP_printk( |
| 408 | LOCAL_PR_FMT VIF_PR_FMT " changed:%#x", |
| 409 | LOCAL_PR_ARG, VIF_PR_ARG, __entry->changed |
| 410 | ) |
| 411 | ); |
| 412 | |
Johannes Berg | 3ac64be | 2009-08-17 16:16:53 +0200 | [diff] [blame] | 413 | TRACE_EVENT(drv_prepare_multicast, |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 414 | TP_PROTO(struct ieee80211_local *local, int mc_count), |
Johannes Berg | 3ac64be | 2009-08-17 16:16:53 +0200 | [diff] [blame] | 415 | |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 416 | TP_ARGS(local, mc_count), |
Johannes Berg | 3ac64be | 2009-08-17 16:16:53 +0200 | [diff] [blame] | 417 | |
| 418 | TP_STRUCT__entry( |
| 419 | LOCAL_ENTRY |
| 420 | __field(int, mc_count) |
Johannes Berg | 3ac64be | 2009-08-17 16:16:53 +0200 | [diff] [blame] | 421 | ), |
| 422 | |
| 423 | TP_fast_assign( |
| 424 | LOCAL_ASSIGN; |
| 425 | __entry->mc_count = mc_count; |
Johannes Berg | 3ac64be | 2009-08-17 16:16:53 +0200 | [diff] [blame] | 426 | ), |
| 427 | |
| 428 | TP_printk( |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 429 | LOCAL_PR_FMT " prepare mc (%d)", |
| 430 | LOCAL_PR_ARG, __entry->mc_count |
Johannes Berg | 3ac64be | 2009-08-17 16:16:53 +0200 | [diff] [blame] | 431 | ) |
| 432 | ); |
| 433 | |
Alexander Bondar | 488b366 | 2013-02-11 14:56:29 +0200 | [diff] [blame] | 434 | TRACE_EVENT(drv_set_multicast_list, |
| 435 | TP_PROTO(struct ieee80211_local *local, |
| 436 | struct ieee80211_sub_if_data *sdata, int mc_count), |
| 437 | |
| 438 | TP_ARGS(local, sdata, mc_count), |
| 439 | |
| 440 | TP_STRUCT__entry( |
| 441 | LOCAL_ENTRY |
| 442 | __field(bool, allmulti) |
| 443 | __field(int, mc_count) |
| 444 | ), |
| 445 | |
| 446 | TP_fast_assign( |
| 447 | LOCAL_ASSIGN; |
| 448 | __entry->allmulti = sdata->flags & IEEE80211_SDATA_ALLMULTI; |
| 449 | __entry->mc_count = mc_count; |
| 450 | ), |
| 451 | |
| 452 | TP_printk( |
| 453 | LOCAL_PR_FMT " configure mc filter, count=%d, allmulti=%d", |
| 454 | LOCAL_PR_ARG, __entry->mc_count, __entry->allmulti |
| 455 | ) |
| 456 | ); |
| 457 | |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 458 | TRACE_EVENT(drv_configure_filter, |
| 459 | TP_PROTO(struct ieee80211_local *local, |
| 460 | unsigned int changed_flags, |
| 461 | unsigned int *total_flags, |
Johannes Berg | 3ac64be | 2009-08-17 16:16:53 +0200 | [diff] [blame] | 462 | u64 multicast), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 463 | |
Johannes Berg | 3ac64be | 2009-08-17 16:16:53 +0200 | [diff] [blame] | 464 | TP_ARGS(local, changed_flags, total_flags, multicast), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 465 | |
| 466 | TP_STRUCT__entry( |
| 467 | LOCAL_ENTRY |
| 468 | __field(unsigned int, changed) |
| 469 | __field(unsigned int, total) |
Johannes Berg | 3ac64be | 2009-08-17 16:16:53 +0200 | [diff] [blame] | 470 | __field(u64, multicast) |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 471 | ), |
| 472 | |
| 473 | TP_fast_assign( |
| 474 | LOCAL_ASSIGN; |
| 475 | __entry->changed = changed_flags; |
| 476 | __entry->total = *total_flags; |
Johannes Berg | 3ac64be | 2009-08-17 16:16:53 +0200 | [diff] [blame] | 477 | __entry->multicast = multicast; |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 478 | ), |
| 479 | |
| 480 | TP_printk( |
Johannes Berg | 3ac64be | 2009-08-17 16:16:53 +0200 | [diff] [blame] | 481 | LOCAL_PR_FMT " changed:%#x total:%#x", |
| 482 | LOCAL_PR_ARG, __entry->changed, __entry->total |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 483 | ) |
| 484 | ); |
| 485 | |
| 486 | TRACE_EVENT(drv_set_tim, |
| 487 | TP_PROTO(struct ieee80211_local *local, |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 488 | struct ieee80211_sta *sta, bool set), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 489 | |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 490 | TP_ARGS(local, sta, set), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 491 | |
| 492 | TP_STRUCT__entry( |
| 493 | LOCAL_ENTRY |
| 494 | STA_ENTRY |
| 495 | __field(bool, set) |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 496 | ), |
| 497 | |
| 498 | TP_fast_assign( |
| 499 | LOCAL_ASSIGN; |
| 500 | STA_ASSIGN; |
| 501 | __entry->set = set; |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 502 | ), |
| 503 | |
| 504 | TP_printk( |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 505 | LOCAL_PR_FMT STA_PR_FMT " set:%d", |
Seth Forshee | 15ac7c47 | 2013-02-15 13:15:48 -0600 | [diff] [blame] | 506 | LOCAL_PR_ARG, STA_PR_ARG, __entry->set |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 507 | ) |
| 508 | ); |
| 509 | |
| 510 | TRACE_EVENT(drv_set_key, |
| 511 | TP_PROTO(struct ieee80211_local *local, |
Johannes Berg | 12375ef | 2009-11-25 20:30:31 +0100 | [diff] [blame] | 512 | enum set_key_cmd cmd, struct ieee80211_sub_if_data *sdata, |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 513 | struct ieee80211_sta *sta, |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 514 | struct ieee80211_key_conf *key), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 515 | |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 516 | TP_ARGS(local, cmd, sdata, sta, key), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 517 | |
| 518 | TP_STRUCT__entry( |
| 519 | LOCAL_ENTRY |
| 520 | VIF_ENTRY |
| 521 | STA_ENTRY |
Johannes Berg | 97359d1 | 2010-08-10 09:46:38 +0200 | [diff] [blame] | 522 | __field(u32, cipher) |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 523 | __field(u8, hw_key_idx) |
| 524 | __field(u8, flags) |
| 525 | __field(s8, keyidx) |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 526 | ), |
| 527 | |
| 528 | TP_fast_assign( |
| 529 | LOCAL_ASSIGN; |
| 530 | VIF_ASSIGN; |
| 531 | STA_ASSIGN; |
Johannes Berg | 97359d1 | 2010-08-10 09:46:38 +0200 | [diff] [blame] | 532 | __entry->cipher = key->cipher; |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 533 | __entry->flags = key->flags; |
| 534 | __entry->keyidx = key->keyidx; |
| 535 | __entry->hw_key_idx = key->hw_key_idx; |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 536 | ), |
| 537 | |
| 538 | TP_printk( |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 539 | LOCAL_PR_FMT VIF_PR_FMT STA_PR_FMT, |
| 540 | LOCAL_PR_ARG, VIF_PR_ARG, STA_PR_ARG |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 541 | ) |
| 542 | ); |
| 543 | |
| 544 | TRACE_EVENT(drv_update_tkip_key, |
| 545 | TP_PROTO(struct ieee80211_local *local, |
Johannes Berg | b3fbdcf | 2010-01-21 11:40:47 +0100 | [diff] [blame] | 546 | struct ieee80211_sub_if_data *sdata, |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 547 | struct ieee80211_key_conf *conf, |
Johannes Berg | b3fbdcf | 2010-01-21 11:40:47 +0100 | [diff] [blame] | 548 | struct ieee80211_sta *sta, u32 iv32), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 549 | |
Johannes Berg | b3fbdcf | 2010-01-21 11:40:47 +0100 | [diff] [blame] | 550 | TP_ARGS(local, sdata, conf, sta, iv32), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 551 | |
| 552 | TP_STRUCT__entry( |
| 553 | LOCAL_ENTRY |
Johannes Berg | b3fbdcf | 2010-01-21 11:40:47 +0100 | [diff] [blame] | 554 | VIF_ENTRY |
| 555 | STA_ENTRY |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 556 | __field(u32, iv32) |
| 557 | ), |
| 558 | |
| 559 | TP_fast_assign( |
| 560 | LOCAL_ASSIGN; |
Johannes Berg | b3fbdcf | 2010-01-21 11:40:47 +0100 | [diff] [blame] | 561 | VIF_ASSIGN; |
| 562 | STA_ASSIGN; |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 563 | __entry->iv32 = iv32; |
| 564 | ), |
| 565 | |
| 566 | TP_printk( |
Johannes Berg | b3fbdcf | 2010-01-21 11:40:47 +0100 | [diff] [blame] | 567 | LOCAL_PR_FMT VIF_PR_FMT STA_PR_FMT " iv32:%#x", |
| 568 | LOCAL_PR_ARG,VIF_PR_ARG,STA_PR_ARG, __entry->iv32 |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 569 | ) |
| 570 | ); |
| 571 | |
Luciano Coelho | 79f460c | 2011-05-11 17:09:36 +0300 | [diff] [blame] | 572 | DEFINE_EVENT(local_sdata_evt, drv_hw_scan, |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 573 | TP_PROTO(struct ieee80211_local *local, |
Luciano Coelho | 79f460c | 2011-05-11 17:09:36 +0300 | [diff] [blame] | 574 | struct ieee80211_sub_if_data *sdata), |
| 575 | TP_ARGS(local, sdata) |
| 576 | ); |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 577 | |
Eliad Peller | b856439 | 2011-06-13 12:47:30 +0300 | [diff] [blame] | 578 | DEFINE_EVENT(local_sdata_evt, drv_cancel_hw_scan, |
| 579 | TP_PROTO(struct ieee80211_local *local, |
| 580 | struct ieee80211_sub_if_data *sdata), |
| 581 | TP_ARGS(local, sdata) |
| 582 | ); |
| 583 | |
Luciano Coelho | 79f460c | 2011-05-11 17:09:36 +0300 | [diff] [blame] | 584 | DEFINE_EVENT(local_sdata_evt, drv_sched_scan_start, |
| 585 | TP_PROTO(struct ieee80211_local *local, |
| 586 | struct ieee80211_sub_if_data *sdata), |
| 587 | TP_ARGS(local, sdata) |
| 588 | ); |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 589 | |
Luciano Coelho | 79f460c | 2011-05-11 17:09:36 +0300 | [diff] [blame] | 590 | DEFINE_EVENT(local_sdata_evt, drv_sched_scan_stop, |
| 591 | TP_PROTO(struct ieee80211_local *local, |
| 592 | struct ieee80211_sub_if_data *sdata), |
| 593 | TP_ARGS(local, sdata) |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 594 | ); |
| 595 | |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 596 | DEFINE_EVENT(local_only_evt, drv_sw_scan_start, |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 597 | TP_PROTO(struct ieee80211_local *local), |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 598 | TP_ARGS(local) |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 599 | ); |
| 600 | |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 601 | DEFINE_EVENT(local_only_evt, drv_sw_scan_complete, |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 602 | TP_PROTO(struct ieee80211_local *local), |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 603 | TP_ARGS(local) |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 604 | ); |
| 605 | |
| 606 | TRACE_EVENT(drv_get_stats, |
| 607 | TP_PROTO(struct ieee80211_local *local, |
| 608 | struct ieee80211_low_level_stats *stats, |
| 609 | int ret), |
| 610 | |
| 611 | TP_ARGS(local, stats, ret), |
| 612 | |
| 613 | TP_STRUCT__entry( |
| 614 | LOCAL_ENTRY |
| 615 | __field(int, ret) |
| 616 | __field(unsigned int, ackfail) |
| 617 | __field(unsigned int, rtsfail) |
| 618 | __field(unsigned int, fcserr) |
| 619 | __field(unsigned int, rtssucc) |
| 620 | ), |
| 621 | |
| 622 | TP_fast_assign( |
| 623 | LOCAL_ASSIGN; |
| 624 | __entry->ret = ret; |
| 625 | __entry->ackfail = stats->dot11ACKFailureCount; |
| 626 | __entry->rtsfail = stats->dot11RTSFailureCount; |
| 627 | __entry->fcserr = stats->dot11FCSErrorCount; |
| 628 | __entry->rtssucc = stats->dot11RTSSuccessCount; |
| 629 | ), |
| 630 | |
| 631 | TP_printk( |
| 632 | LOCAL_PR_FMT " ret:%d", |
| 633 | LOCAL_PR_ARG, __entry->ret |
| 634 | ) |
| 635 | ); |
| 636 | |
| 637 | TRACE_EVENT(drv_get_tkip_seq, |
| 638 | TP_PROTO(struct ieee80211_local *local, |
| 639 | u8 hw_key_idx, u32 *iv32, u16 *iv16), |
| 640 | |
| 641 | TP_ARGS(local, hw_key_idx, iv32, iv16), |
| 642 | |
| 643 | TP_STRUCT__entry( |
| 644 | LOCAL_ENTRY |
| 645 | __field(u8, hw_key_idx) |
| 646 | __field(u32, iv32) |
| 647 | __field(u16, iv16) |
| 648 | ), |
| 649 | |
| 650 | TP_fast_assign( |
| 651 | LOCAL_ASSIGN; |
| 652 | __entry->hw_key_idx = hw_key_idx; |
| 653 | __entry->iv32 = *iv32; |
| 654 | __entry->iv16 = *iv16; |
| 655 | ), |
| 656 | |
| 657 | TP_printk( |
| 658 | LOCAL_PR_FMT, LOCAL_PR_ARG |
| 659 | ) |
| 660 | ); |
| 661 | |
Luciano Coelho | 92ddc11 | 2011-05-09 14:40:06 +0300 | [diff] [blame] | 662 | DEFINE_EVENT(local_u32_evt, drv_set_frag_threshold, |
Arik Nemtsov | f23a478 | 2010-11-08 11:51:06 +0200 | [diff] [blame] | 663 | TP_PROTO(struct ieee80211_local *local, u32 value), |
Luciano Coelho | 92ddc11 | 2011-05-09 14:40:06 +0300 | [diff] [blame] | 664 | TP_ARGS(local, value) |
Arik Nemtsov | f23a478 | 2010-11-08 11:51:06 +0200 | [diff] [blame] | 665 | ); |
| 666 | |
Luciano Coelho | 92ddc11 | 2011-05-09 14:40:06 +0300 | [diff] [blame] | 667 | DEFINE_EVENT(local_u32_evt, drv_set_rts_threshold, |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 668 | TP_PROTO(struct ieee80211_local *local, u32 value), |
Luciano Coelho | 92ddc11 | 2011-05-09 14:40:06 +0300 | [diff] [blame] | 669 | TP_ARGS(local, value) |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 670 | ); |
| 671 | |
Lukáš Turek | 310bc67 | 2009-12-21 22:50:48 +0100 | [diff] [blame] | 672 | TRACE_EVENT(drv_set_coverage_class, |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 673 | TP_PROTO(struct ieee80211_local *local, u8 value), |
Lukáš Turek | 310bc67 | 2009-12-21 22:50:48 +0100 | [diff] [blame] | 674 | |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 675 | TP_ARGS(local, value), |
Lukáš Turek | 310bc67 | 2009-12-21 22:50:48 +0100 | [diff] [blame] | 676 | |
| 677 | TP_STRUCT__entry( |
| 678 | LOCAL_ENTRY |
| 679 | __field(u8, value) |
Lukáš Turek | 310bc67 | 2009-12-21 22:50:48 +0100 | [diff] [blame] | 680 | ), |
| 681 | |
| 682 | TP_fast_assign( |
| 683 | LOCAL_ASSIGN; |
Lukáš Turek | 310bc67 | 2009-12-21 22:50:48 +0100 | [diff] [blame] | 684 | __entry->value = value; |
| 685 | ), |
| 686 | |
| 687 | TP_printk( |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 688 | LOCAL_PR_FMT " value:%d", |
| 689 | LOCAL_PR_ARG, __entry->value |
Lukáš Turek | 310bc67 | 2009-12-21 22:50:48 +0100 | [diff] [blame] | 690 | ) |
| 691 | ); |
| 692 | |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 693 | TRACE_EVENT(drv_sta_notify, |
| 694 | TP_PROTO(struct ieee80211_local *local, |
Johannes Berg | 12375ef | 2009-11-25 20:30:31 +0100 | [diff] [blame] | 695 | struct ieee80211_sub_if_data *sdata, |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 696 | enum sta_notify_cmd cmd, |
| 697 | struct ieee80211_sta *sta), |
| 698 | |
Johannes Berg | 12375ef | 2009-11-25 20:30:31 +0100 | [diff] [blame] | 699 | TP_ARGS(local, sdata, cmd, sta), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 700 | |
| 701 | TP_STRUCT__entry( |
| 702 | LOCAL_ENTRY |
| 703 | VIF_ENTRY |
| 704 | STA_ENTRY |
| 705 | __field(u32, cmd) |
| 706 | ), |
| 707 | |
| 708 | TP_fast_assign( |
| 709 | LOCAL_ASSIGN; |
| 710 | VIF_ASSIGN; |
| 711 | STA_ASSIGN; |
| 712 | __entry->cmd = cmd; |
| 713 | ), |
| 714 | |
| 715 | TP_printk( |
| 716 | LOCAL_PR_FMT VIF_PR_FMT STA_PR_FMT " cmd:%d", |
| 717 | LOCAL_PR_ARG, VIF_PR_ARG, STA_PR_ARG, __entry->cmd |
| 718 | ) |
| 719 | ); |
| 720 | |
Johannes Berg | f09603a | 2012-01-20 13:55:21 +0100 | [diff] [blame] | 721 | TRACE_EVENT(drv_sta_state, |
| 722 | TP_PROTO(struct ieee80211_local *local, |
| 723 | struct ieee80211_sub_if_data *sdata, |
| 724 | struct ieee80211_sta *sta, |
| 725 | enum ieee80211_sta_state old_state, |
| 726 | enum ieee80211_sta_state new_state), |
| 727 | |
| 728 | TP_ARGS(local, sdata, sta, old_state, new_state), |
| 729 | |
| 730 | TP_STRUCT__entry( |
| 731 | LOCAL_ENTRY |
| 732 | VIF_ENTRY |
| 733 | STA_ENTRY |
| 734 | __field(u32, old_state) |
| 735 | __field(u32, new_state) |
| 736 | ), |
| 737 | |
| 738 | TP_fast_assign( |
| 739 | LOCAL_ASSIGN; |
| 740 | VIF_ASSIGN; |
| 741 | STA_ASSIGN; |
| 742 | __entry->old_state = old_state; |
| 743 | __entry->new_state = new_state; |
| 744 | ), |
| 745 | |
| 746 | TP_printk( |
| 747 | LOCAL_PR_FMT VIF_PR_FMT STA_PR_FMT " state: %d->%d", |
| 748 | LOCAL_PR_ARG, VIF_PR_ARG, STA_PR_ARG, |
| 749 | __entry->old_state, __entry->new_state |
| 750 | ) |
| 751 | ); |
| 752 | |
Johannes Berg | 8f727ef | 2012-03-30 08:43:32 +0200 | [diff] [blame] | 753 | TRACE_EVENT(drv_sta_rc_update, |
| 754 | TP_PROTO(struct ieee80211_local *local, |
| 755 | struct ieee80211_sub_if_data *sdata, |
| 756 | struct ieee80211_sta *sta, |
| 757 | u32 changed), |
| 758 | |
| 759 | TP_ARGS(local, sdata, sta, changed), |
| 760 | |
| 761 | TP_STRUCT__entry( |
| 762 | LOCAL_ENTRY |
| 763 | VIF_ENTRY |
| 764 | STA_ENTRY |
| 765 | __field(u32, changed) |
| 766 | ), |
| 767 | |
| 768 | TP_fast_assign( |
| 769 | LOCAL_ASSIGN; |
| 770 | VIF_ASSIGN; |
| 771 | STA_ASSIGN; |
| 772 | __entry->changed = changed; |
| 773 | ), |
| 774 | |
| 775 | TP_printk( |
| 776 | LOCAL_PR_FMT VIF_PR_FMT STA_PR_FMT " changed: 0x%x", |
| 777 | LOCAL_PR_ARG, VIF_PR_ARG, STA_PR_ARG, __entry->changed |
| 778 | ) |
| 779 | ); |
| 780 | |
Johannes Berg | 34e8950 | 2010-02-03 13:59:58 +0100 | [diff] [blame] | 781 | TRACE_EVENT(drv_sta_add, |
| 782 | TP_PROTO(struct ieee80211_local *local, |
| 783 | struct ieee80211_sub_if_data *sdata, |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 784 | struct ieee80211_sta *sta), |
Johannes Berg | 34e8950 | 2010-02-03 13:59:58 +0100 | [diff] [blame] | 785 | |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 786 | TP_ARGS(local, sdata, sta), |
Johannes Berg | 34e8950 | 2010-02-03 13:59:58 +0100 | [diff] [blame] | 787 | |
| 788 | TP_STRUCT__entry( |
| 789 | LOCAL_ENTRY |
| 790 | VIF_ENTRY |
| 791 | STA_ENTRY |
Johannes Berg | 34e8950 | 2010-02-03 13:59:58 +0100 | [diff] [blame] | 792 | ), |
| 793 | |
| 794 | TP_fast_assign( |
| 795 | LOCAL_ASSIGN; |
| 796 | VIF_ASSIGN; |
| 797 | STA_ASSIGN; |
Johannes Berg | 34e8950 | 2010-02-03 13:59:58 +0100 | [diff] [blame] | 798 | ), |
| 799 | |
| 800 | TP_printk( |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 801 | LOCAL_PR_FMT VIF_PR_FMT STA_PR_FMT, |
| 802 | LOCAL_PR_ARG, VIF_PR_ARG, STA_PR_ARG |
Johannes Berg | 34e8950 | 2010-02-03 13:59:58 +0100 | [diff] [blame] | 803 | ) |
| 804 | ); |
| 805 | |
| 806 | TRACE_EVENT(drv_sta_remove, |
| 807 | TP_PROTO(struct ieee80211_local *local, |
| 808 | struct ieee80211_sub_if_data *sdata, |
| 809 | struct ieee80211_sta *sta), |
| 810 | |
| 811 | TP_ARGS(local, sdata, sta), |
| 812 | |
| 813 | TP_STRUCT__entry( |
| 814 | LOCAL_ENTRY |
| 815 | VIF_ENTRY |
| 816 | STA_ENTRY |
| 817 | ), |
| 818 | |
| 819 | TP_fast_assign( |
| 820 | LOCAL_ASSIGN; |
| 821 | VIF_ASSIGN; |
| 822 | STA_ASSIGN; |
| 823 | ), |
| 824 | |
| 825 | TP_printk( |
| 826 | LOCAL_PR_FMT VIF_PR_FMT STA_PR_FMT, |
| 827 | LOCAL_PR_ARG, VIF_PR_ARG, STA_PR_ARG |
| 828 | ) |
| 829 | ); |
| 830 | |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 831 | TRACE_EVENT(drv_conf_tx, |
Eliad Peller | f6f3def | 2011-09-25 20:06:54 +0300 | [diff] [blame] | 832 | TP_PROTO(struct ieee80211_local *local, |
| 833 | struct ieee80211_sub_if_data *sdata, |
Johannes Berg | a3304b0 | 2012-03-28 11:04:24 +0200 | [diff] [blame] | 834 | u16 ac, const struct ieee80211_tx_queue_params *params), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 835 | |
Johannes Berg | a3304b0 | 2012-03-28 11:04:24 +0200 | [diff] [blame] | 836 | TP_ARGS(local, sdata, ac, params), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 837 | |
| 838 | TP_STRUCT__entry( |
| 839 | LOCAL_ENTRY |
Eliad Peller | f6f3def | 2011-09-25 20:06:54 +0300 | [diff] [blame] | 840 | VIF_ENTRY |
Johannes Berg | a3304b0 | 2012-03-28 11:04:24 +0200 | [diff] [blame] | 841 | __field(u16, ac) |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 842 | __field(u16, txop) |
| 843 | __field(u16, cw_min) |
| 844 | __field(u16, cw_max) |
| 845 | __field(u8, aifs) |
Eliad Peller | f6f3def | 2011-09-25 20:06:54 +0300 | [diff] [blame] | 846 | __field(bool, uapsd) |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 847 | ), |
| 848 | |
| 849 | TP_fast_assign( |
| 850 | LOCAL_ASSIGN; |
Eliad Peller | f6f3def | 2011-09-25 20:06:54 +0300 | [diff] [blame] | 851 | VIF_ASSIGN; |
Johannes Berg | a3304b0 | 2012-03-28 11:04:24 +0200 | [diff] [blame] | 852 | __entry->ac = ac; |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 853 | __entry->txop = params->txop; |
| 854 | __entry->cw_max = params->cw_max; |
| 855 | __entry->cw_min = params->cw_min; |
| 856 | __entry->aifs = params->aifs; |
Eliad Peller | f6f3def | 2011-09-25 20:06:54 +0300 | [diff] [blame] | 857 | __entry->uapsd = params->uapsd; |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 858 | ), |
| 859 | |
| 860 | TP_printk( |
Johannes Berg | a3304b0 | 2012-03-28 11:04:24 +0200 | [diff] [blame] | 861 | LOCAL_PR_FMT VIF_PR_FMT " AC:%d", |
| 862 | LOCAL_PR_ARG, VIF_PR_ARG, __entry->ac |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 863 | ) |
| 864 | ); |
| 865 | |
Eliad Peller | 37a41b4 | 2011-09-21 14:06:11 +0300 | [diff] [blame] | 866 | DEFINE_EVENT(local_sdata_evt, drv_get_tsf, |
| 867 | TP_PROTO(struct ieee80211_local *local, |
| 868 | struct ieee80211_sub_if_data *sdata), |
| 869 | TP_ARGS(local, sdata) |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 870 | ); |
| 871 | |
| 872 | TRACE_EVENT(drv_set_tsf, |
Eliad Peller | 37a41b4 | 2011-09-21 14:06:11 +0300 | [diff] [blame] | 873 | TP_PROTO(struct ieee80211_local *local, |
| 874 | struct ieee80211_sub_if_data *sdata, |
| 875 | u64 tsf), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 876 | |
Eliad Peller | 37a41b4 | 2011-09-21 14:06:11 +0300 | [diff] [blame] | 877 | TP_ARGS(local, sdata, tsf), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 878 | |
| 879 | TP_STRUCT__entry( |
| 880 | LOCAL_ENTRY |
Eliad Peller | 37a41b4 | 2011-09-21 14:06:11 +0300 | [diff] [blame] | 881 | VIF_ENTRY |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 882 | __field(u64, tsf) |
| 883 | ), |
| 884 | |
| 885 | TP_fast_assign( |
| 886 | LOCAL_ASSIGN; |
Eliad Peller | 37a41b4 | 2011-09-21 14:06:11 +0300 | [diff] [blame] | 887 | VIF_ASSIGN; |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 888 | __entry->tsf = tsf; |
| 889 | ), |
| 890 | |
| 891 | TP_printk( |
Eliad Peller | 37a41b4 | 2011-09-21 14:06:11 +0300 | [diff] [blame] | 892 | LOCAL_PR_FMT VIF_PR_FMT " tsf:%llu", |
| 893 | LOCAL_PR_ARG, VIF_PR_ARG, (unsigned long long)__entry->tsf |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 894 | ) |
| 895 | ); |
| 896 | |
Eliad Peller | 37a41b4 | 2011-09-21 14:06:11 +0300 | [diff] [blame] | 897 | DEFINE_EVENT(local_sdata_evt, drv_reset_tsf, |
| 898 | TP_PROTO(struct ieee80211_local *local, |
| 899 | struct ieee80211_sub_if_data *sdata), |
| 900 | TP_ARGS(local, sdata) |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 901 | ); |
| 902 | |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 903 | DEFINE_EVENT(local_only_evt, drv_tx_last_beacon, |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 904 | TP_PROTO(struct ieee80211_local *local), |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 905 | TP_ARGS(local) |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 906 | ); |
| 907 | |
| 908 | TRACE_EVENT(drv_ampdu_action, |
| 909 | TP_PROTO(struct ieee80211_local *local, |
Johannes Berg | 12375ef | 2009-11-25 20:30:31 +0100 | [diff] [blame] | 910 | struct ieee80211_sub_if_data *sdata, |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 911 | enum ieee80211_ampdu_mlme_action action, |
| 912 | struct ieee80211_sta *sta, u16 tid, |
Johannes Berg | 0b01f03 | 2011-01-18 13:51:05 +0100 | [diff] [blame] | 913 | u16 *ssn, u8 buf_size), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 914 | |
Johannes Berg | 0b01f03 | 2011-01-18 13:51:05 +0100 | [diff] [blame] | 915 | TP_ARGS(local, sdata, action, sta, tid, ssn, buf_size), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 916 | |
| 917 | TP_STRUCT__entry( |
| 918 | LOCAL_ENTRY |
| 919 | STA_ENTRY |
| 920 | __field(u32, action) |
| 921 | __field(u16, tid) |
| 922 | __field(u16, ssn) |
Johannes Berg | 0b01f03 | 2011-01-18 13:51:05 +0100 | [diff] [blame] | 923 | __field(u8, buf_size) |
Johannes Berg | c951ad3 | 2009-11-16 12:00:38 +0100 | [diff] [blame] | 924 | VIF_ENTRY |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 925 | ), |
| 926 | |
| 927 | TP_fast_assign( |
| 928 | LOCAL_ASSIGN; |
Johannes Berg | c951ad3 | 2009-11-16 12:00:38 +0100 | [diff] [blame] | 929 | VIF_ASSIGN; |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 930 | STA_ASSIGN; |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 931 | __entry->action = action; |
| 932 | __entry->tid = tid; |
Zhu Yi | 3092ad0 | 2010-01-26 15:58:57 +0800 | [diff] [blame] | 933 | __entry->ssn = ssn ? *ssn : 0; |
Johannes Berg | 0b01f03 | 2011-01-18 13:51:05 +0100 | [diff] [blame] | 934 | __entry->buf_size = buf_size; |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 935 | ), |
| 936 | |
| 937 | TP_printk( |
Johannes Berg | 0b01f03 | 2011-01-18 13:51:05 +0100 | [diff] [blame] | 938 | LOCAL_PR_FMT VIF_PR_FMT STA_PR_FMT " action:%d tid:%d buf:%d", |
| 939 | LOCAL_PR_ARG, VIF_PR_ARG, STA_PR_ARG, __entry->action, |
| 940 | __entry->tid, __entry->buf_size |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 941 | ) |
| 942 | ); |
Johannes Berg | a80f7c0 | 2009-12-23 13:15:32 +0100 | [diff] [blame] | 943 | |
John W. Linville | c466d4e | 2010-06-29 14:51:23 -0400 | [diff] [blame] | 944 | TRACE_EVENT(drv_get_survey, |
| 945 | TP_PROTO(struct ieee80211_local *local, int idx, |
| 946 | struct survey_info *survey), |
| 947 | |
| 948 | TP_ARGS(local, idx, survey), |
| 949 | |
| 950 | TP_STRUCT__entry( |
| 951 | LOCAL_ENTRY |
| 952 | __field(int, idx) |
| 953 | ), |
| 954 | |
| 955 | TP_fast_assign( |
| 956 | LOCAL_ASSIGN; |
| 957 | __entry->idx = idx; |
| 958 | ), |
| 959 | |
| 960 | TP_printk( |
| 961 | LOCAL_PR_FMT " idx:%d", |
| 962 | LOCAL_PR_ARG, __entry->idx |
| 963 | ) |
| 964 | ); |
| 965 | |
Johannes Berg | a80f7c0 | 2009-12-23 13:15:32 +0100 | [diff] [blame] | 966 | TRACE_EVENT(drv_flush, |
Johannes Berg | 39ecc01 | 2013-02-13 12:11:00 +0100 | [diff] [blame^] | 967 | TP_PROTO(struct ieee80211_local *local, |
| 968 | u32 queues, bool drop), |
Johannes Berg | a80f7c0 | 2009-12-23 13:15:32 +0100 | [diff] [blame] | 969 | |
Johannes Berg | 39ecc01 | 2013-02-13 12:11:00 +0100 | [diff] [blame^] | 970 | TP_ARGS(local, queues, drop), |
Johannes Berg | a80f7c0 | 2009-12-23 13:15:32 +0100 | [diff] [blame] | 971 | |
| 972 | TP_STRUCT__entry( |
| 973 | LOCAL_ENTRY |
| 974 | __field(bool, drop) |
Johannes Berg | 39ecc01 | 2013-02-13 12:11:00 +0100 | [diff] [blame^] | 975 | __field(u32, queues) |
Johannes Berg | a80f7c0 | 2009-12-23 13:15:32 +0100 | [diff] [blame] | 976 | ), |
| 977 | |
| 978 | TP_fast_assign( |
| 979 | LOCAL_ASSIGN; |
| 980 | __entry->drop = drop; |
Johannes Berg | 39ecc01 | 2013-02-13 12:11:00 +0100 | [diff] [blame^] | 981 | __entry->queues = queues; |
Johannes Berg | a80f7c0 | 2009-12-23 13:15:32 +0100 | [diff] [blame] | 982 | ), |
| 983 | |
| 984 | TP_printk( |
Johannes Berg | 39ecc01 | 2013-02-13 12:11:00 +0100 | [diff] [blame^] | 985 | LOCAL_PR_FMT " queues:0x%x drop:%d", |
| 986 | LOCAL_PR_ARG, __entry->queues, __entry->drop |
Johannes Berg | a80f7c0 | 2009-12-23 13:15:32 +0100 | [diff] [blame] | 987 | ) |
| 988 | ); |
Johannes Berg | b5878a2 | 2010-04-07 16:48:40 +0200 | [diff] [blame] | 989 | |
Johannes Berg | 5ce6e43 | 2010-05-11 16:20:57 +0200 | [diff] [blame] | 990 | TRACE_EVENT(drv_channel_switch, |
| 991 | TP_PROTO(struct ieee80211_local *local, |
| 992 | struct ieee80211_channel_switch *ch_switch), |
| 993 | |
| 994 | TP_ARGS(local, ch_switch), |
| 995 | |
| 996 | TP_STRUCT__entry( |
| 997 | LOCAL_ENTRY |
| 998 | __field(u64, timestamp) |
| 999 | __field(bool, block_tx) |
| 1000 | __field(u16, freq) |
| 1001 | __field(u8, count) |
| 1002 | ), |
| 1003 | |
| 1004 | TP_fast_assign( |
| 1005 | LOCAL_ASSIGN; |
| 1006 | __entry->timestamp = ch_switch->timestamp; |
| 1007 | __entry->block_tx = ch_switch->block_tx; |
| 1008 | __entry->freq = ch_switch->channel->center_freq; |
| 1009 | __entry->count = ch_switch->count; |
| 1010 | ), |
| 1011 | |
| 1012 | TP_printk( |
| 1013 | LOCAL_PR_FMT " new freq:%u count:%d", |
| 1014 | LOCAL_PR_ARG, __entry->freq, __entry->count |
| 1015 | ) |
| 1016 | ); |
| 1017 | |
Bruno Randolf | 15d9675 | 2010-11-10 12:50:56 +0900 | [diff] [blame] | 1018 | TRACE_EVENT(drv_set_antenna, |
| 1019 | TP_PROTO(struct ieee80211_local *local, u32 tx_ant, u32 rx_ant, int ret), |
| 1020 | |
| 1021 | TP_ARGS(local, tx_ant, rx_ant, ret), |
| 1022 | |
| 1023 | TP_STRUCT__entry( |
| 1024 | LOCAL_ENTRY |
| 1025 | __field(u32, tx_ant) |
| 1026 | __field(u32, rx_ant) |
| 1027 | __field(int, ret) |
| 1028 | ), |
| 1029 | |
| 1030 | TP_fast_assign( |
| 1031 | LOCAL_ASSIGN; |
| 1032 | __entry->tx_ant = tx_ant; |
| 1033 | __entry->rx_ant = rx_ant; |
| 1034 | __entry->ret = ret; |
| 1035 | ), |
| 1036 | |
| 1037 | TP_printk( |
| 1038 | LOCAL_PR_FMT " tx_ant:%d rx_ant:%d ret:%d", |
| 1039 | LOCAL_PR_ARG, __entry->tx_ant, __entry->rx_ant, __entry->ret |
| 1040 | ) |
| 1041 | ); |
| 1042 | |
| 1043 | TRACE_EVENT(drv_get_antenna, |
| 1044 | TP_PROTO(struct ieee80211_local *local, u32 tx_ant, u32 rx_ant, int ret), |
| 1045 | |
| 1046 | TP_ARGS(local, tx_ant, rx_ant, ret), |
| 1047 | |
| 1048 | TP_STRUCT__entry( |
| 1049 | LOCAL_ENTRY |
| 1050 | __field(u32, tx_ant) |
| 1051 | __field(u32, rx_ant) |
| 1052 | __field(int, ret) |
| 1053 | ), |
| 1054 | |
| 1055 | TP_fast_assign( |
| 1056 | LOCAL_ASSIGN; |
| 1057 | __entry->tx_ant = tx_ant; |
| 1058 | __entry->rx_ant = rx_ant; |
| 1059 | __entry->ret = ret; |
| 1060 | ), |
| 1061 | |
| 1062 | TP_printk( |
| 1063 | LOCAL_PR_FMT " tx_ant:%d rx_ant:%d ret:%d", |
| 1064 | LOCAL_PR_ARG, __entry->tx_ant, __entry->rx_ant, __entry->ret |
| 1065 | ) |
| 1066 | ); |
| 1067 | |
Johannes Berg | 21f8358 | 2010-12-18 17:20:47 +0100 | [diff] [blame] | 1068 | TRACE_EVENT(drv_remain_on_channel, |
Eliad Peller | 4988456 | 2012-11-19 17:05:09 +0200 | [diff] [blame] | 1069 | TP_PROTO(struct ieee80211_local *local, |
| 1070 | struct ieee80211_sub_if_data *sdata, |
| 1071 | struct ieee80211_channel *chan, |
Ilan Peer | d339d5c | 2013-02-12 09:34:13 +0200 | [diff] [blame] | 1072 | unsigned int duration, |
| 1073 | enum ieee80211_roc_type type), |
Johannes Berg | 21f8358 | 2010-12-18 17:20:47 +0100 | [diff] [blame] | 1074 | |
Ilan Peer | d339d5c | 2013-02-12 09:34:13 +0200 | [diff] [blame] | 1075 | TP_ARGS(local, sdata, chan, duration, type), |
Johannes Berg | 21f8358 | 2010-12-18 17:20:47 +0100 | [diff] [blame] | 1076 | |
| 1077 | TP_STRUCT__entry( |
| 1078 | LOCAL_ENTRY |
Eliad Peller | 4988456 | 2012-11-19 17:05:09 +0200 | [diff] [blame] | 1079 | VIF_ENTRY |
Johannes Berg | 21f8358 | 2010-12-18 17:20:47 +0100 | [diff] [blame] | 1080 | __field(int, center_freq) |
Johannes Berg | 21f8358 | 2010-12-18 17:20:47 +0100 | [diff] [blame] | 1081 | __field(unsigned int, duration) |
Ilan Peer | d339d5c | 2013-02-12 09:34:13 +0200 | [diff] [blame] | 1082 | __field(u32, type) |
Johannes Berg | 21f8358 | 2010-12-18 17:20:47 +0100 | [diff] [blame] | 1083 | ), |
| 1084 | |
| 1085 | TP_fast_assign( |
| 1086 | LOCAL_ASSIGN; |
Eliad Peller | 4988456 | 2012-11-19 17:05:09 +0200 | [diff] [blame] | 1087 | VIF_ASSIGN; |
Johannes Berg | 21f8358 | 2010-12-18 17:20:47 +0100 | [diff] [blame] | 1088 | __entry->center_freq = chan->center_freq; |
Johannes Berg | 21f8358 | 2010-12-18 17:20:47 +0100 | [diff] [blame] | 1089 | __entry->duration = duration; |
Ilan Peer | d339d5c | 2013-02-12 09:34:13 +0200 | [diff] [blame] | 1090 | __entry->type = type; |
Johannes Berg | 21f8358 | 2010-12-18 17:20:47 +0100 | [diff] [blame] | 1091 | ), |
| 1092 | |
| 1093 | TP_printk( |
Ilan Peer | d339d5c | 2013-02-12 09:34:13 +0200 | [diff] [blame] | 1094 | LOCAL_PR_FMT VIF_PR_FMT " freq:%dMHz duration:%dms type=%d", |
Eliad Peller | 4988456 | 2012-11-19 17:05:09 +0200 | [diff] [blame] | 1095 | LOCAL_PR_ARG, VIF_PR_ARG, |
Ilan Peer | d339d5c | 2013-02-12 09:34:13 +0200 | [diff] [blame] | 1096 | __entry->center_freq, __entry->duration, __entry->type |
Johannes Berg | 21f8358 | 2010-12-18 17:20:47 +0100 | [diff] [blame] | 1097 | ) |
| 1098 | ); |
| 1099 | |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 1100 | DEFINE_EVENT(local_only_evt, drv_cancel_remain_on_channel, |
Johannes Berg | 21f8358 | 2010-12-18 17:20:47 +0100 | [diff] [blame] | 1101 | TP_PROTO(struct ieee80211_local *local), |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 1102 | TP_ARGS(local) |
Johannes Berg | 21f8358 | 2010-12-18 17:20:47 +0100 | [diff] [blame] | 1103 | ); |
| 1104 | |
John W. Linville | 38c0915 | 2011-03-07 16:19:18 -0500 | [diff] [blame] | 1105 | TRACE_EVENT(drv_set_ringparam, |
| 1106 | TP_PROTO(struct ieee80211_local *local, u32 tx, u32 rx), |
| 1107 | |
| 1108 | TP_ARGS(local, tx, rx), |
| 1109 | |
| 1110 | TP_STRUCT__entry( |
| 1111 | LOCAL_ENTRY |
| 1112 | __field(u32, tx) |
| 1113 | __field(u32, rx) |
| 1114 | ), |
| 1115 | |
| 1116 | TP_fast_assign( |
| 1117 | LOCAL_ASSIGN; |
| 1118 | __entry->tx = tx; |
| 1119 | __entry->rx = rx; |
| 1120 | ), |
| 1121 | |
| 1122 | TP_printk( |
| 1123 | LOCAL_PR_FMT " tx:%d rx %d", |
| 1124 | LOCAL_PR_ARG, __entry->tx, __entry->rx |
| 1125 | ) |
| 1126 | ); |
| 1127 | |
| 1128 | TRACE_EVENT(drv_get_ringparam, |
| 1129 | TP_PROTO(struct ieee80211_local *local, u32 *tx, u32 *tx_max, |
| 1130 | u32 *rx, u32 *rx_max), |
| 1131 | |
| 1132 | TP_ARGS(local, tx, tx_max, rx, rx_max), |
| 1133 | |
| 1134 | TP_STRUCT__entry( |
| 1135 | LOCAL_ENTRY |
| 1136 | __field(u32, tx) |
| 1137 | __field(u32, tx_max) |
| 1138 | __field(u32, rx) |
| 1139 | __field(u32, rx_max) |
| 1140 | ), |
| 1141 | |
| 1142 | TP_fast_assign( |
| 1143 | LOCAL_ASSIGN; |
| 1144 | __entry->tx = *tx; |
| 1145 | __entry->tx_max = *tx_max; |
| 1146 | __entry->rx = *rx; |
| 1147 | __entry->rx_max = *rx_max; |
| 1148 | ), |
| 1149 | |
| 1150 | TP_printk( |
| 1151 | LOCAL_PR_FMT " tx:%d tx_max %d rx %d rx_max %d", |
| 1152 | LOCAL_PR_ARG, |
| 1153 | __entry->tx, __entry->tx_max, __entry->rx, __entry->rx_max |
| 1154 | ) |
| 1155 | ); |
| 1156 | |
Vivek Natarajan | e8306f9 | 2011-04-06 11:41:10 +0530 | [diff] [blame] | 1157 | DEFINE_EVENT(local_only_evt, drv_tx_frames_pending, |
| 1158 | TP_PROTO(struct ieee80211_local *local), |
| 1159 | TP_ARGS(local) |
| 1160 | ); |
| 1161 | |
Johannes Berg | 5f16a43 | 2011-02-25 15:36:57 +0100 | [diff] [blame] | 1162 | DEFINE_EVENT(local_only_evt, drv_offchannel_tx_cancel_wait, |
| 1163 | TP_PROTO(struct ieee80211_local *local), |
| 1164 | TP_ARGS(local) |
| 1165 | ); |
| 1166 | |
Sujith Manoharan | bdbfd6b | 2011-04-27 16:56:51 +0530 | [diff] [blame] | 1167 | TRACE_EVENT(drv_set_bitrate_mask, |
| 1168 | TP_PROTO(struct ieee80211_local *local, |
| 1169 | struct ieee80211_sub_if_data *sdata, |
| 1170 | const struct cfg80211_bitrate_mask *mask), |
| 1171 | |
| 1172 | TP_ARGS(local, sdata, mask), |
| 1173 | |
| 1174 | TP_STRUCT__entry( |
| 1175 | LOCAL_ENTRY |
| 1176 | VIF_ENTRY |
| 1177 | __field(u32, legacy_2g) |
| 1178 | __field(u32, legacy_5g) |
| 1179 | ), |
| 1180 | |
| 1181 | TP_fast_assign( |
| 1182 | LOCAL_ASSIGN; |
| 1183 | VIF_ASSIGN; |
| 1184 | __entry->legacy_2g = mask->control[IEEE80211_BAND_2GHZ].legacy; |
| 1185 | __entry->legacy_5g = mask->control[IEEE80211_BAND_5GHZ].legacy; |
| 1186 | ), |
| 1187 | |
| 1188 | TP_printk( |
| 1189 | LOCAL_PR_FMT VIF_PR_FMT " 2G Mask:0x%x 5G Mask:0x%x", |
| 1190 | LOCAL_PR_ARG, VIF_PR_ARG, __entry->legacy_2g, __entry->legacy_5g |
| 1191 | ) |
| 1192 | ); |
| 1193 | |
Johannes Berg | c68f4b8 | 2011-07-05 16:35:41 +0200 | [diff] [blame] | 1194 | TRACE_EVENT(drv_set_rekey_data, |
| 1195 | TP_PROTO(struct ieee80211_local *local, |
| 1196 | struct ieee80211_sub_if_data *sdata, |
| 1197 | struct cfg80211_gtk_rekey_data *data), |
| 1198 | |
| 1199 | TP_ARGS(local, sdata, data), |
| 1200 | |
| 1201 | TP_STRUCT__entry( |
| 1202 | LOCAL_ENTRY |
| 1203 | VIF_ENTRY |
| 1204 | __array(u8, kek, NL80211_KEK_LEN) |
| 1205 | __array(u8, kck, NL80211_KCK_LEN) |
| 1206 | __array(u8, replay_ctr, NL80211_REPLAY_CTR_LEN) |
| 1207 | ), |
| 1208 | |
| 1209 | TP_fast_assign( |
| 1210 | LOCAL_ASSIGN; |
| 1211 | VIF_ASSIGN; |
| 1212 | memcpy(__entry->kek, data->kek, NL80211_KEK_LEN); |
| 1213 | memcpy(__entry->kck, data->kck, NL80211_KCK_LEN); |
| 1214 | memcpy(__entry->replay_ctr, data->replay_ctr, |
| 1215 | NL80211_REPLAY_CTR_LEN); |
| 1216 | ), |
| 1217 | |
| 1218 | TP_printk(LOCAL_PR_FMT VIF_PR_FMT, |
| 1219 | LOCAL_PR_ARG, VIF_PR_ARG) |
| 1220 | ); |
| 1221 | |
Meenakshi Venkataraman | 615f7b9 | 2011-07-08 08:46:22 -0700 | [diff] [blame] | 1222 | TRACE_EVENT(drv_rssi_callback, |
| 1223 | TP_PROTO(struct ieee80211_local *local, |
Emmanuel Grumbach | 887da91 | 2013-01-20 17:32:41 +0200 | [diff] [blame] | 1224 | struct ieee80211_sub_if_data *sdata, |
Meenakshi Venkataraman | 615f7b9 | 2011-07-08 08:46:22 -0700 | [diff] [blame] | 1225 | enum ieee80211_rssi_event rssi_event), |
| 1226 | |
Emmanuel Grumbach | 887da91 | 2013-01-20 17:32:41 +0200 | [diff] [blame] | 1227 | TP_ARGS(local, sdata, rssi_event), |
Meenakshi Venkataraman | 615f7b9 | 2011-07-08 08:46:22 -0700 | [diff] [blame] | 1228 | |
| 1229 | TP_STRUCT__entry( |
| 1230 | LOCAL_ENTRY |
Emmanuel Grumbach | 887da91 | 2013-01-20 17:32:41 +0200 | [diff] [blame] | 1231 | VIF_ENTRY |
Meenakshi Venkataraman | 615f7b9 | 2011-07-08 08:46:22 -0700 | [diff] [blame] | 1232 | __field(u32, rssi_event) |
| 1233 | ), |
| 1234 | |
| 1235 | TP_fast_assign( |
| 1236 | LOCAL_ASSIGN; |
Emmanuel Grumbach | 887da91 | 2013-01-20 17:32:41 +0200 | [diff] [blame] | 1237 | VIF_ASSIGN; |
Meenakshi Venkataraman | 615f7b9 | 2011-07-08 08:46:22 -0700 | [diff] [blame] | 1238 | __entry->rssi_event = rssi_event; |
| 1239 | ), |
| 1240 | |
| 1241 | TP_printk( |
Emmanuel Grumbach | 887da91 | 2013-01-20 17:32:41 +0200 | [diff] [blame] | 1242 | LOCAL_PR_FMT VIF_PR_FMT " rssi_event:%d", |
| 1243 | LOCAL_PR_ARG, VIF_PR_ARG, __entry->rssi_event |
Meenakshi Venkataraman | 615f7b9 | 2011-07-08 08:46:22 -0700 | [diff] [blame] | 1244 | ) |
| 1245 | ); |
| 1246 | |
Johannes Berg | 40b9640 | 2011-09-29 16:04:38 +0200 | [diff] [blame] | 1247 | DECLARE_EVENT_CLASS(release_evt, |
Johannes Berg | 4049e09 | 2011-09-29 16:04:32 +0200 | [diff] [blame] | 1248 | TP_PROTO(struct ieee80211_local *local, |
| 1249 | struct ieee80211_sta *sta, |
| 1250 | u16 tids, int num_frames, |
| 1251 | enum ieee80211_frame_release_type reason, |
| 1252 | bool more_data), |
| 1253 | |
| 1254 | TP_ARGS(local, sta, tids, num_frames, reason, more_data), |
| 1255 | |
| 1256 | TP_STRUCT__entry( |
| 1257 | LOCAL_ENTRY |
| 1258 | STA_ENTRY |
| 1259 | __field(u16, tids) |
| 1260 | __field(int, num_frames) |
| 1261 | __field(int, reason) |
| 1262 | __field(bool, more_data) |
| 1263 | ), |
| 1264 | |
| 1265 | TP_fast_assign( |
| 1266 | LOCAL_ASSIGN; |
| 1267 | STA_ASSIGN; |
| 1268 | __entry->tids = tids; |
| 1269 | __entry->num_frames = num_frames; |
| 1270 | __entry->reason = reason; |
| 1271 | __entry->more_data = more_data; |
| 1272 | ), |
| 1273 | |
| 1274 | TP_printk( |
| 1275 | LOCAL_PR_FMT STA_PR_FMT |
| 1276 | " TIDs:0x%.4x frames:%d reason:%d more:%d", |
| 1277 | LOCAL_PR_ARG, STA_PR_ARG, __entry->tids, __entry->num_frames, |
| 1278 | __entry->reason, __entry->more_data |
| 1279 | ) |
| 1280 | ); |
| 1281 | |
Johannes Berg | 40b9640 | 2011-09-29 16:04:38 +0200 | [diff] [blame] | 1282 | DEFINE_EVENT(release_evt, drv_release_buffered_frames, |
| 1283 | TP_PROTO(struct ieee80211_local *local, |
| 1284 | struct ieee80211_sta *sta, |
| 1285 | u16 tids, int num_frames, |
| 1286 | enum ieee80211_frame_release_type reason, |
| 1287 | bool more_data), |
| 1288 | |
| 1289 | TP_ARGS(local, sta, tids, num_frames, reason, more_data) |
| 1290 | ); |
| 1291 | |
| 1292 | DEFINE_EVENT(release_evt, drv_allow_buffered_frames, |
| 1293 | TP_PROTO(struct ieee80211_local *local, |
| 1294 | struct ieee80211_sta *sta, |
| 1295 | u16 tids, int num_frames, |
| 1296 | enum ieee80211_frame_release_type reason, |
| 1297 | bool more_data), |
| 1298 | |
| 1299 | TP_ARGS(local, sta, tids, num_frames, reason, more_data) |
| 1300 | ); |
| 1301 | |
Victor Goldenshtein | 66572cf | 2012-06-21 10:56:46 +0300 | [diff] [blame] | 1302 | TRACE_EVENT(drv_get_rssi, |
| 1303 | TP_PROTO(struct ieee80211_local *local, struct ieee80211_sta *sta, |
| 1304 | s8 rssi, int ret), |
| 1305 | |
| 1306 | TP_ARGS(local, sta, rssi, ret), |
| 1307 | |
| 1308 | TP_STRUCT__entry( |
| 1309 | LOCAL_ENTRY |
| 1310 | STA_ENTRY |
| 1311 | __field(s8, rssi) |
| 1312 | __field(int, ret) |
| 1313 | ), |
| 1314 | |
| 1315 | TP_fast_assign( |
| 1316 | LOCAL_ASSIGN; |
| 1317 | STA_ASSIGN; |
| 1318 | __entry->rssi = rssi; |
| 1319 | __entry->ret = ret; |
| 1320 | ), |
| 1321 | |
| 1322 | TP_printk( |
| 1323 | LOCAL_PR_FMT STA_PR_FMT " rssi:%d ret:%d", |
| 1324 | LOCAL_PR_ARG, STA_PR_ARG, __entry->rssi, __entry->ret |
| 1325 | ) |
| 1326 | ); |
| 1327 | |
Johannes Berg | a1845fc | 2012-06-27 13:18:36 +0200 | [diff] [blame] | 1328 | DEFINE_EVENT(local_sdata_evt, drv_mgd_prepare_tx, |
| 1329 | TP_PROTO(struct ieee80211_local *local, |
| 1330 | struct ieee80211_sub_if_data *sdata), |
| 1331 | |
| 1332 | TP_ARGS(local, sdata) |
| 1333 | ); |
| 1334 | |
Michal Kazior | c3645ea | 2012-06-26 14:37:17 +0200 | [diff] [blame] | 1335 | DECLARE_EVENT_CLASS(local_chanctx, |
| 1336 | TP_PROTO(struct ieee80211_local *local, |
| 1337 | struct ieee80211_chanctx *ctx), |
| 1338 | |
| 1339 | TP_ARGS(local, ctx), |
| 1340 | |
| 1341 | TP_STRUCT__entry( |
| 1342 | LOCAL_ENTRY |
| 1343 | CHANCTX_ENTRY |
| 1344 | ), |
| 1345 | |
| 1346 | TP_fast_assign( |
| 1347 | LOCAL_ASSIGN; |
| 1348 | CHANCTX_ASSIGN; |
| 1349 | ), |
| 1350 | |
| 1351 | TP_printk( |
| 1352 | LOCAL_PR_FMT CHANCTX_PR_FMT, |
| 1353 | LOCAL_PR_ARG, CHANCTX_PR_ARG |
| 1354 | ) |
| 1355 | ); |
| 1356 | |
| 1357 | DEFINE_EVENT(local_chanctx, drv_add_chanctx, |
| 1358 | TP_PROTO(struct ieee80211_local *local, |
| 1359 | struct ieee80211_chanctx *ctx), |
| 1360 | TP_ARGS(local, ctx) |
| 1361 | ); |
| 1362 | |
| 1363 | DEFINE_EVENT(local_chanctx, drv_remove_chanctx, |
| 1364 | TP_PROTO(struct ieee80211_local *local, |
| 1365 | struct ieee80211_chanctx *ctx), |
| 1366 | TP_ARGS(local, ctx) |
| 1367 | ); |
| 1368 | |
| 1369 | TRACE_EVENT(drv_change_chanctx, |
| 1370 | TP_PROTO(struct ieee80211_local *local, |
| 1371 | struct ieee80211_chanctx *ctx, |
| 1372 | u32 changed), |
| 1373 | |
| 1374 | TP_ARGS(local, ctx, changed), |
| 1375 | |
| 1376 | TP_STRUCT__entry( |
| 1377 | LOCAL_ENTRY |
| 1378 | CHANCTX_ENTRY |
| 1379 | __field(u32, changed) |
| 1380 | ), |
| 1381 | |
| 1382 | TP_fast_assign( |
| 1383 | LOCAL_ASSIGN; |
| 1384 | CHANCTX_ASSIGN; |
| 1385 | __entry->changed = changed; |
| 1386 | ), |
| 1387 | |
| 1388 | TP_printk( |
| 1389 | LOCAL_PR_FMT CHANCTX_PR_FMT " changed:%#x", |
| 1390 | LOCAL_PR_ARG, CHANCTX_PR_ARG, __entry->changed |
| 1391 | ) |
| 1392 | ); |
| 1393 | |
| 1394 | DECLARE_EVENT_CLASS(local_sdata_chanctx, |
| 1395 | TP_PROTO(struct ieee80211_local *local, |
| 1396 | struct ieee80211_sub_if_data *sdata, |
| 1397 | struct ieee80211_chanctx *ctx), |
| 1398 | |
| 1399 | TP_ARGS(local, sdata, ctx), |
| 1400 | |
| 1401 | TP_STRUCT__entry( |
| 1402 | LOCAL_ENTRY |
| 1403 | VIF_ENTRY |
| 1404 | CHANCTX_ENTRY |
| 1405 | ), |
| 1406 | |
| 1407 | TP_fast_assign( |
| 1408 | LOCAL_ASSIGN; |
| 1409 | VIF_ASSIGN; |
| 1410 | CHANCTX_ASSIGN; |
| 1411 | ), |
| 1412 | |
| 1413 | TP_printk( |
| 1414 | LOCAL_PR_FMT VIF_PR_FMT CHANCTX_PR_FMT, |
| 1415 | LOCAL_PR_ARG, VIF_PR_ARG, CHANCTX_PR_ARG |
| 1416 | ) |
| 1417 | ); |
| 1418 | |
| 1419 | DEFINE_EVENT(local_sdata_chanctx, drv_assign_vif_chanctx, |
| 1420 | TP_PROTO(struct ieee80211_local *local, |
| 1421 | struct ieee80211_sub_if_data *sdata, |
| 1422 | struct ieee80211_chanctx *ctx), |
| 1423 | TP_ARGS(local, sdata, ctx) |
| 1424 | ); |
| 1425 | |
| 1426 | DEFINE_EVENT(local_sdata_chanctx, drv_unassign_vif_chanctx, |
| 1427 | TP_PROTO(struct ieee80211_local *local, |
| 1428 | struct ieee80211_sub_if_data *sdata, |
| 1429 | struct ieee80211_chanctx *ctx), |
| 1430 | TP_ARGS(local, sdata, ctx) |
| 1431 | ); |
| 1432 | |
Johannes Berg | 1041638 | 2012-10-19 15:44:42 +0200 | [diff] [blame] | 1433 | TRACE_EVENT(drv_start_ap, |
| 1434 | TP_PROTO(struct ieee80211_local *local, |
| 1435 | struct ieee80211_sub_if_data *sdata, |
| 1436 | struct ieee80211_bss_conf *info), |
| 1437 | |
| 1438 | TP_ARGS(local, sdata, info), |
| 1439 | |
| 1440 | TP_STRUCT__entry( |
| 1441 | LOCAL_ENTRY |
| 1442 | VIF_ENTRY |
| 1443 | __field(u8, dtimper) |
| 1444 | __field(u16, bcnint) |
| 1445 | __dynamic_array(u8, ssid, info->ssid_len); |
| 1446 | __field(bool, hidden_ssid); |
| 1447 | ), |
| 1448 | |
| 1449 | TP_fast_assign( |
| 1450 | LOCAL_ASSIGN; |
| 1451 | VIF_ASSIGN; |
| 1452 | __entry->dtimper = info->dtim_period; |
| 1453 | __entry->bcnint = info->beacon_int; |
| 1454 | memcpy(__get_dynamic_array(ssid), info->ssid, info->ssid_len); |
| 1455 | __entry->hidden_ssid = info->hidden_ssid; |
| 1456 | ), |
| 1457 | |
| 1458 | TP_printk( |
| 1459 | LOCAL_PR_FMT VIF_PR_FMT, |
| 1460 | LOCAL_PR_ARG, VIF_PR_ARG |
| 1461 | ) |
| 1462 | ); |
| 1463 | |
| 1464 | DEFINE_EVENT(local_sdata_evt, drv_stop_ap, |
| 1465 | TP_PROTO(struct ieee80211_local *local, |
| 1466 | struct ieee80211_sub_if_data *sdata), |
| 1467 | TP_ARGS(local, sdata) |
| 1468 | ); |
| 1469 | |
Johannes Berg | 9214ad7 | 2012-11-06 19:18:13 +0100 | [diff] [blame] | 1470 | DEFINE_EVENT(local_only_evt, drv_restart_complete, |
| 1471 | TP_PROTO(struct ieee80211_local *local), |
| 1472 | TP_ARGS(local) |
| 1473 | ); |
| 1474 | |
Johannes Berg | a65240c | 2013-01-14 15:14:34 +0100 | [diff] [blame] | 1475 | #if IS_ENABLED(CONFIG_IPV6) |
| 1476 | DEFINE_EVENT(local_sdata_evt, drv_ipv6_addr_change, |
| 1477 | TP_PROTO(struct ieee80211_local *local, |
| 1478 | struct ieee80211_sub_if_data *sdata), |
| 1479 | TP_ARGS(local, sdata) |
| 1480 | ); |
| 1481 | #endif |
| 1482 | |
Johannes Berg | b5878a2 | 2010-04-07 16:48:40 +0200 | [diff] [blame] | 1483 | /* |
| 1484 | * Tracing for API calls that drivers call. |
| 1485 | */ |
| 1486 | |
| 1487 | TRACE_EVENT(api_start_tx_ba_session, |
| 1488 | TP_PROTO(struct ieee80211_sta *sta, u16 tid), |
| 1489 | |
| 1490 | TP_ARGS(sta, tid), |
| 1491 | |
| 1492 | TP_STRUCT__entry( |
| 1493 | STA_ENTRY |
| 1494 | __field(u16, tid) |
| 1495 | ), |
| 1496 | |
| 1497 | TP_fast_assign( |
| 1498 | STA_ASSIGN; |
| 1499 | __entry->tid = tid; |
| 1500 | ), |
| 1501 | |
| 1502 | TP_printk( |
| 1503 | STA_PR_FMT " tid:%d", |
| 1504 | STA_PR_ARG, __entry->tid |
| 1505 | ) |
| 1506 | ); |
| 1507 | |
| 1508 | TRACE_EVENT(api_start_tx_ba_cb, |
| 1509 | TP_PROTO(struct ieee80211_sub_if_data *sdata, const u8 *ra, u16 tid), |
| 1510 | |
| 1511 | TP_ARGS(sdata, ra, tid), |
| 1512 | |
| 1513 | TP_STRUCT__entry( |
| 1514 | VIF_ENTRY |
| 1515 | __array(u8, ra, ETH_ALEN) |
| 1516 | __field(u16, tid) |
| 1517 | ), |
| 1518 | |
| 1519 | TP_fast_assign( |
| 1520 | VIF_ASSIGN; |
| 1521 | memcpy(__entry->ra, ra, ETH_ALEN); |
| 1522 | __entry->tid = tid; |
| 1523 | ), |
| 1524 | |
| 1525 | TP_printk( |
| 1526 | VIF_PR_FMT " ra:%pM tid:%d", |
| 1527 | VIF_PR_ARG, __entry->ra, __entry->tid |
| 1528 | ) |
| 1529 | ); |
| 1530 | |
| 1531 | TRACE_EVENT(api_stop_tx_ba_session, |
Johannes Berg | 6a8579d | 2010-05-27 14:41:07 +0200 | [diff] [blame] | 1532 | TP_PROTO(struct ieee80211_sta *sta, u16 tid), |
Johannes Berg | b5878a2 | 2010-04-07 16:48:40 +0200 | [diff] [blame] | 1533 | |
Johannes Berg | 6a8579d | 2010-05-27 14:41:07 +0200 | [diff] [blame] | 1534 | TP_ARGS(sta, tid), |
Johannes Berg | b5878a2 | 2010-04-07 16:48:40 +0200 | [diff] [blame] | 1535 | |
| 1536 | TP_STRUCT__entry( |
| 1537 | STA_ENTRY |
| 1538 | __field(u16, tid) |
Johannes Berg | b5878a2 | 2010-04-07 16:48:40 +0200 | [diff] [blame] | 1539 | ), |
| 1540 | |
| 1541 | TP_fast_assign( |
| 1542 | STA_ASSIGN; |
| 1543 | __entry->tid = tid; |
Johannes Berg | b5878a2 | 2010-04-07 16:48:40 +0200 | [diff] [blame] | 1544 | ), |
| 1545 | |
| 1546 | TP_printk( |
Johannes Berg | 6a8579d | 2010-05-27 14:41:07 +0200 | [diff] [blame] | 1547 | STA_PR_FMT " tid:%d", |
| 1548 | STA_PR_ARG, __entry->tid |
Johannes Berg | b5878a2 | 2010-04-07 16:48:40 +0200 | [diff] [blame] | 1549 | ) |
| 1550 | ); |
| 1551 | |
| 1552 | TRACE_EVENT(api_stop_tx_ba_cb, |
| 1553 | TP_PROTO(struct ieee80211_sub_if_data *sdata, const u8 *ra, u16 tid), |
| 1554 | |
| 1555 | TP_ARGS(sdata, ra, tid), |
| 1556 | |
| 1557 | TP_STRUCT__entry( |
| 1558 | VIF_ENTRY |
| 1559 | __array(u8, ra, ETH_ALEN) |
| 1560 | __field(u16, tid) |
| 1561 | ), |
| 1562 | |
| 1563 | TP_fast_assign( |
| 1564 | VIF_ASSIGN; |
| 1565 | memcpy(__entry->ra, ra, ETH_ALEN); |
| 1566 | __entry->tid = tid; |
| 1567 | ), |
| 1568 | |
| 1569 | TP_printk( |
| 1570 | VIF_PR_FMT " ra:%pM tid:%d", |
| 1571 | VIF_PR_ARG, __entry->ra, __entry->tid |
| 1572 | ) |
| 1573 | ); |
| 1574 | |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 1575 | DEFINE_EVENT(local_only_evt, api_restart_hw, |
Johannes Berg | b5878a2 | 2010-04-07 16:48:40 +0200 | [diff] [blame] | 1576 | TP_PROTO(struct ieee80211_local *local), |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 1577 | TP_ARGS(local) |
Johannes Berg | b5878a2 | 2010-04-07 16:48:40 +0200 | [diff] [blame] | 1578 | ); |
| 1579 | |
| 1580 | TRACE_EVENT(api_beacon_loss, |
| 1581 | TP_PROTO(struct ieee80211_sub_if_data *sdata), |
| 1582 | |
| 1583 | TP_ARGS(sdata), |
| 1584 | |
| 1585 | TP_STRUCT__entry( |
| 1586 | VIF_ENTRY |
| 1587 | ), |
| 1588 | |
| 1589 | TP_fast_assign( |
| 1590 | VIF_ASSIGN; |
| 1591 | ), |
| 1592 | |
| 1593 | TP_printk( |
| 1594 | VIF_PR_FMT, |
| 1595 | VIF_PR_ARG |
| 1596 | ) |
| 1597 | ); |
| 1598 | |
| 1599 | TRACE_EVENT(api_connection_loss, |
| 1600 | TP_PROTO(struct ieee80211_sub_if_data *sdata), |
| 1601 | |
| 1602 | TP_ARGS(sdata), |
| 1603 | |
| 1604 | TP_STRUCT__entry( |
| 1605 | VIF_ENTRY |
| 1606 | ), |
| 1607 | |
| 1608 | TP_fast_assign( |
| 1609 | VIF_ASSIGN; |
| 1610 | ), |
| 1611 | |
| 1612 | TP_printk( |
| 1613 | VIF_PR_FMT, |
| 1614 | VIF_PR_ARG |
| 1615 | ) |
| 1616 | ); |
| 1617 | |
| 1618 | TRACE_EVENT(api_cqm_rssi_notify, |
| 1619 | TP_PROTO(struct ieee80211_sub_if_data *sdata, |
| 1620 | enum nl80211_cqm_rssi_threshold_event rssi_event), |
| 1621 | |
| 1622 | TP_ARGS(sdata, rssi_event), |
| 1623 | |
| 1624 | TP_STRUCT__entry( |
| 1625 | VIF_ENTRY |
| 1626 | __field(u32, rssi_event) |
| 1627 | ), |
| 1628 | |
| 1629 | TP_fast_assign( |
| 1630 | VIF_ASSIGN; |
| 1631 | __entry->rssi_event = rssi_event; |
| 1632 | ), |
| 1633 | |
| 1634 | TP_printk( |
| 1635 | VIF_PR_FMT " event:%d", |
| 1636 | VIF_PR_ARG, __entry->rssi_event |
| 1637 | ) |
| 1638 | ); |
| 1639 | |
| 1640 | TRACE_EVENT(api_scan_completed, |
| 1641 | TP_PROTO(struct ieee80211_local *local, bool aborted), |
| 1642 | |
| 1643 | TP_ARGS(local, aborted), |
| 1644 | |
| 1645 | TP_STRUCT__entry( |
| 1646 | LOCAL_ENTRY |
| 1647 | __field(bool, aborted) |
| 1648 | ), |
| 1649 | |
| 1650 | TP_fast_assign( |
| 1651 | LOCAL_ASSIGN; |
| 1652 | __entry->aborted = aborted; |
| 1653 | ), |
| 1654 | |
| 1655 | TP_printk( |
| 1656 | LOCAL_PR_FMT " aborted:%d", |
| 1657 | LOCAL_PR_ARG, __entry->aborted |
| 1658 | ) |
| 1659 | ); |
| 1660 | |
Luciano Coelho | 79f460c | 2011-05-11 17:09:36 +0300 | [diff] [blame] | 1661 | TRACE_EVENT(api_sched_scan_results, |
| 1662 | TP_PROTO(struct ieee80211_local *local), |
| 1663 | |
| 1664 | TP_ARGS(local), |
| 1665 | |
| 1666 | TP_STRUCT__entry( |
| 1667 | LOCAL_ENTRY |
| 1668 | ), |
| 1669 | |
| 1670 | TP_fast_assign( |
| 1671 | LOCAL_ASSIGN; |
| 1672 | ), |
| 1673 | |
| 1674 | TP_printk( |
| 1675 | LOCAL_PR_FMT, LOCAL_PR_ARG |
| 1676 | ) |
| 1677 | ); |
| 1678 | |
| 1679 | TRACE_EVENT(api_sched_scan_stopped, |
| 1680 | TP_PROTO(struct ieee80211_local *local), |
| 1681 | |
| 1682 | TP_ARGS(local), |
| 1683 | |
| 1684 | TP_STRUCT__entry( |
| 1685 | LOCAL_ENTRY |
| 1686 | ), |
| 1687 | |
| 1688 | TP_fast_assign( |
| 1689 | LOCAL_ASSIGN; |
| 1690 | ), |
| 1691 | |
| 1692 | TP_printk( |
| 1693 | LOCAL_PR_FMT, LOCAL_PR_ARG |
| 1694 | ) |
| 1695 | ); |
| 1696 | |
Johannes Berg | b5878a2 | 2010-04-07 16:48:40 +0200 | [diff] [blame] | 1697 | TRACE_EVENT(api_sta_block_awake, |
| 1698 | TP_PROTO(struct ieee80211_local *local, |
| 1699 | struct ieee80211_sta *sta, bool block), |
| 1700 | |
| 1701 | TP_ARGS(local, sta, block), |
| 1702 | |
| 1703 | TP_STRUCT__entry( |
| 1704 | LOCAL_ENTRY |
| 1705 | STA_ENTRY |
| 1706 | __field(bool, block) |
| 1707 | ), |
| 1708 | |
| 1709 | TP_fast_assign( |
| 1710 | LOCAL_ASSIGN; |
| 1711 | STA_ASSIGN; |
| 1712 | __entry->block = block; |
| 1713 | ), |
| 1714 | |
| 1715 | TP_printk( |
| 1716 | LOCAL_PR_FMT STA_PR_FMT " block:%d", |
Seth Forshee | 15ac7c47 | 2013-02-15 13:15:48 -0600 | [diff] [blame] | 1717 | LOCAL_PR_ARG, STA_PR_ARG, __entry->block |
Johannes Berg | b5878a2 | 2010-04-07 16:48:40 +0200 | [diff] [blame] | 1718 | ) |
| 1719 | ); |
| 1720 | |
Johannes Berg | 5ce6e43 | 2010-05-11 16:20:57 +0200 | [diff] [blame] | 1721 | TRACE_EVENT(api_chswitch_done, |
| 1722 | TP_PROTO(struct ieee80211_sub_if_data *sdata, bool success), |
| 1723 | |
| 1724 | TP_ARGS(sdata, success), |
| 1725 | |
| 1726 | TP_STRUCT__entry( |
| 1727 | VIF_ENTRY |
| 1728 | __field(bool, success) |
| 1729 | ), |
| 1730 | |
| 1731 | TP_fast_assign( |
| 1732 | VIF_ASSIGN; |
| 1733 | __entry->success = success; |
| 1734 | ), |
| 1735 | |
| 1736 | TP_printk( |
| 1737 | VIF_PR_FMT " success=%d", |
| 1738 | VIF_PR_ARG, __entry->success |
| 1739 | ) |
| 1740 | ); |
| 1741 | |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 1742 | DEFINE_EVENT(local_only_evt, api_ready_on_channel, |
Johannes Berg | 21f8358 | 2010-12-18 17:20:47 +0100 | [diff] [blame] | 1743 | TP_PROTO(struct ieee80211_local *local), |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 1744 | TP_ARGS(local) |
Johannes Berg | 21f8358 | 2010-12-18 17:20:47 +0100 | [diff] [blame] | 1745 | ); |
| 1746 | |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 1747 | DEFINE_EVENT(local_only_evt, api_remain_on_channel_expired, |
Johannes Berg | 21f8358 | 2010-12-18 17:20:47 +0100 | [diff] [blame] | 1748 | TP_PROTO(struct ieee80211_local *local), |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 1749 | TP_ARGS(local) |
Johannes Berg | 21f8358 | 2010-12-18 17:20:47 +0100 | [diff] [blame] | 1750 | ); |
| 1751 | |
Johannes Berg | c68f4b8 | 2011-07-05 16:35:41 +0200 | [diff] [blame] | 1752 | TRACE_EVENT(api_gtk_rekey_notify, |
| 1753 | TP_PROTO(struct ieee80211_sub_if_data *sdata, |
| 1754 | const u8 *bssid, const u8 *replay_ctr), |
| 1755 | |
| 1756 | TP_ARGS(sdata, bssid, replay_ctr), |
| 1757 | |
| 1758 | TP_STRUCT__entry( |
| 1759 | VIF_ENTRY |
| 1760 | __array(u8, bssid, ETH_ALEN) |
| 1761 | __array(u8, replay_ctr, NL80211_REPLAY_CTR_LEN) |
| 1762 | ), |
| 1763 | |
| 1764 | TP_fast_assign( |
| 1765 | VIF_ASSIGN; |
| 1766 | memcpy(__entry->bssid, bssid, ETH_ALEN); |
| 1767 | memcpy(__entry->replay_ctr, replay_ctr, NL80211_REPLAY_CTR_LEN); |
| 1768 | ), |
| 1769 | |
| 1770 | TP_printk(VIF_PR_FMT, VIF_PR_ARG) |
| 1771 | ); |
| 1772 | |
Meenakshi Venkataraman | 615f7b9 | 2011-07-08 08:46:22 -0700 | [diff] [blame] | 1773 | TRACE_EVENT(api_enable_rssi_reports, |
| 1774 | TP_PROTO(struct ieee80211_sub_if_data *sdata, |
| 1775 | int rssi_min_thold, int rssi_max_thold), |
| 1776 | |
| 1777 | TP_ARGS(sdata, rssi_min_thold, rssi_max_thold), |
| 1778 | |
| 1779 | TP_STRUCT__entry( |
| 1780 | VIF_ENTRY |
| 1781 | __field(int, rssi_min_thold) |
| 1782 | __field(int, rssi_max_thold) |
| 1783 | ), |
| 1784 | |
| 1785 | TP_fast_assign( |
| 1786 | VIF_ASSIGN; |
| 1787 | __entry->rssi_min_thold = rssi_min_thold; |
| 1788 | __entry->rssi_max_thold = rssi_max_thold; |
| 1789 | ), |
| 1790 | |
| 1791 | TP_printk( |
| 1792 | VIF_PR_FMT " rssi_min_thold =%d, rssi_max_thold = %d", |
| 1793 | VIF_PR_ARG, __entry->rssi_min_thold, __entry->rssi_max_thold |
| 1794 | ) |
| 1795 | ); |
| 1796 | |
Johannes Berg | 37fbd90 | 2011-09-29 16:04:39 +0200 | [diff] [blame] | 1797 | TRACE_EVENT(api_eosp, |
| 1798 | TP_PROTO(struct ieee80211_local *local, |
| 1799 | struct ieee80211_sta *sta), |
| 1800 | |
| 1801 | TP_ARGS(local, sta), |
| 1802 | |
| 1803 | TP_STRUCT__entry( |
| 1804 | LOCAL_ENTRY |
| 1805 | STA_ENTRY |
| 1806 | ), |
| 1807 | |
| 1808 | TP_fast_assign( |
| 1809 | LOCAL_ASSIGN; |
| 1810 | STA_ASSIGN; |
| 1811 | ), |
| 1812 | |
| 1813 | TP_printk( |
| 1814 | LOCAL_PR_FMT STA_PR_FMT, |
Seth Forshee | 15ac7c47 | 2013-02-15 13:15:48 -0600 | [diff] [blame] | 1815 | LOCAL_PR_ARG, STA_PR_ARG |
Johannes Berg | 37fbd90 | 2011-09-29 16:04:39 +0200 | [diff] [blame] | 1816 | ) |
| 1817 | ); |
| 1818 | |
Johannes Berg | b5878a2 | 2010-04-07 16:48:40 +0200 | [diff] [blame] | 1819 | /* |
| 1820 | * Tracing for internal functions |
| 1821 | * (which may also be called in response to driver calls) |
| 1822 | */ |
| 1823 | |
| 1824 | TRACE_EVENT(wake_queue, |
| 1825 | TP_PROTO(struct ieee80211_local *local, u16 queue, |
| 1826 | enum queue_stop_reason reason), |
| 1827 | |
| 1828 | TP_ARGS(local, queue, reason), |
| 1829 | |
| 1830 | TP_STRUCT__entry( |
| 1831 | LOCAL_ENTRY |
| 1832 | __field(u16, queue) |
| 1833 | __field(u32, reason) |
| 1834 | ), |
| 1835 | |
| 1836 | TP_fast_assign( |
| 1837 | LOCAL_ASSIGN; |
| 1838 | __entry->queue = queue; |
| 1839 | __entry->reason = reason; |
| 1840 | ), |
| 1841 | |
| 1842 | TP_printk( |
| 1843 | LOCAL_PR_FMT " queue:%d, reason:%d", |
| 1844 | LOCAL_PR_ARG, __entry->queue, __entry->reason |
| 1845 | ) |
| 1846 | ); |
| 1847 | |
| 1848 | TRACE_EVENT(stop_queue, |
| 1849 | TP_PROTO(struct ieee80211_local *local, u16 queue, |
| 1850 | enum queue_stop_reason reason), |
| 1851 | |
| 1852 | TP_ARGS(local, queue, reason), |
| 1853 | |
| 1854 | TP_STRUCT__entry( |
| 1855 | LOCAL_ENTRY |
| 1856 | __field(u16, queue) |
| 1857 | __field(u32, reason) |
| 1858 | ), |
| 1859 | |
| 1860 | TP_fast_assign( |
| 1861 | LOCAL_ASSIGN; |
| 1862 | __entry->queue = queue; |
| 1863 | __entry->reason = reason; |
| 1864 | ), |
| 1865 | |
| 1866 | TP_printk( |
| 1867 | LOCAL_PR_FMT " queue:%d, reason:%d", |
| 1868 | LOCAL_PR_ARG, __entry->queue, __entry->reason |
| 1869 | ) |
| 1870 | ); |
Johannes Berg | 3fae027 | 2012-06-22 13:36:25 +0200 | [diff] [blame] | 1871 | |
Yoni Divinsky | de5fad8 | 2012-05-30 11:36:39 +0300 | [diff] [blame] | 1872 | TRACE_EVENT(drv_set_default_unicast_key, |
| 1873 | TP_PROTO(struct ieee80211_local *local, |
| 1874 | struct ieee80211_sub_if_data *sdata, |
| 1875 | int key_idx), |
| 1876 | |
| 1877 | TP_ARGS(local, sdata, key_idx), |
| 1878 | |
| 1879 | TP_STRUCT__entry( |
| 1880 | LOCAL_ENTRY |
| 1881 | VIF_ENTRY |
| 1882 | __field(int, key_idx) |
| 1883 | ), |
| 1884 | |
| 1885 | TP_fast_assign( |
| 1886 | LOCAL_ASSIGN; |
| 1887 | VIF_ASSIGN; |
| 1888 | __entry->key_idx = key_idx; |
| 1889 | ), |
| 1890 | |
| 1891 | TP_printk(LOCAL_PR_FMT VIF_PR_FMT " key_idx:%d", |
| 1892 | LOCAL_PR_ARG, VIF_PR_ARG, __entry->key_idx) |
| 1893 | ); |
| 1894 | |
Simon Wunderlich | 164eb02 | 2013-02-08 18:16:20 +0100 | [diff] [blame] | 1895 | TRACE_EVENT(api_radar_detected, |
| 1896 | TP_PROTO(struct ieee80211_local *local), |
| 1897 | |
| 1898 | TP_ARGS(local), |
| 1899 | |
| 1900 | TP_STRUCT__entry( |
| 1901 | LOCAL_ENTRY |
| 1902 | ), |
| 1903 | |
| 1904 | TP_fast_assign( |
| 1905 | LOCAL_ASSIGN; |
| 1906 | ), |
| 1907 | |
| 1908 | TP_printk( |
| 1909 | LOCAL_PR_FMT " radar detected", |
| 1910 | LOCAL_PR_ARG |
| 1911 | ) |
| 1912 | ); |
| 1913 | |
Johannes Berg | 3fae027 | 2012-06-22 13:36:25 +0200 | [diff] [blame] | 1914 | #ifdef CONFIG_MAC80211_MESSAGE_TRACING |
| 1915 | #undef TRACE_SYSTEM |
| 1916 | #define TRACE_SYSTEM mac80211_msg |
| 1917 | |
| 1918 | #define MAX_MSG_LEN 100 |
| 1919 | |
| 1920 | DECLARE_EVENT_CLASS(mac80211_msg_event, |
| 1921 | TP_PROTO(struct va_format *vaf), |
| 1922 | |
| 1923 | TP_ARGS(vaf), |
| 1924 | |
| 1925 | TP_STRUCT__entry( |
| 1926 | __dynamic_array(char, msg, MAX_MSG_LEN) |
| 1927 | ), |
| 1928 | |
| 1929 | TP_fast_assign( |
| 1930 | WARN_ON_ONCE(vsnprintf(__get_dynamic_array(msg), |
| 1931 | MAX_MSG_LEN, vaf->fmt, |
| 1932 | *vaf->va) >= MAX_MSG_LEN); |
| 1933 | ), |
| 1934 | |
| 1935 | TP_printk("%s", __get_str(msg)) |
| 1936 | ); |
| 1937 | |
| 1938 | DEFINE_EVENT(mac80211_msg_event, mac80211_info, |
| 1939 | TP_PROTO(struct va_format *vaf), |
| 1940 | TP_ARGS(vaf) |
| 1941 | ); |
| 1942 | DEFINE_EVENT(mac80211_msg_event, mac80211_dbg, |
| 1943 | TP_PROTO(struct va_format *vaf), |
| 1944 | TP_ARGS(vaf) |
| 1945 | ); |
| 1946 | DEFINE_EVENT(mac80211_msg_event, mac80211_err, |
| 1947 | TP_PROTO(struct va_format *vaf), |
| 1948 | TP_ARGS(vaf) |
| 1949 | ); |
| 1950 | #endif |
| 1951 | |
Christian Lamparter | f742880 | 2009-07-19 23:21:07 +0200 | [diff] [blame] | 1952 | #endif /* !__MAC80211_DRIVER_TRACE || TRACE_HEADER_MULTI_READ */ |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 1953 | |
| 1954 | #undef TRACE_INCLUDE_PATH |
| 1955 | #define TRACE_INCLUDE_PATH . |
| 1956 | #undef TRACE_INCLUDE_FILE |
Johannes Berg | 011ad0e | 2012-06-22 12:55:52 +0200 | [diff] [blame] | 1957 | #define TRACE_INCLUDE_FILE trace |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 1958 | #include <trace/define_trace.h> |