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 | |
Christian Lamparter | f742880 | 2009-07-19 23:21:07 +0200 | [diff] [blame] | 8 | #if !defined(CONFIG_MAC80211_DRIVER_API_TRACER) || defined(__CHECKER__) |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 9 | #undef TRACE_EVENT |
| 10 | #define TRACE_EVENT(name, proto, ...) \ |
| 11 | static inline void trace_ ## name(proto) {} |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 12 | #undef DECLARE_EVENT_CLASS |
| 13 | #define DECLARE_EVENT_CLASS(...) |
| 14 | #undef DEFINE_EVENT |
| 15 | #define DEFINE_EVENT(evt_class, name, proto, ...) \ |
| 16 | static inline void trace_ ## name(proto) {} |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 17 | #endif |
| 18 | |
| 19 | #undef TRACE_SYSTEM |
| 20 | #define TRACE_SYSTEM mac80211 |
| 21 | |
| 22 | #define MAXNAME 32 |
| 23 | #define LOCAL_ENTRY __array(char, wiphy_name, 32) |
| 24 | #define LOCAL_ASSIGN strlcpy(__entry->wiphy_name, wiphy_name(local->hw.wiphy), MAXNAME) |
| 25 | #define LOCAL_PR_FMT "%s" |
| 26 | #define LOCAL_PR_ARG __entry->wiphy_name |
| 27 | |
| 28 | #define STA_ENTRY __array(char, sta_addr, ETH_ALEN) |
| 29 | #define STA_ASSIGN (sta ? memcpy(__entry->sta_addr, sta->addr, ETH_ALEN) : memset(__entry->sta_addr, 0, ETH_ALEN)) |
| 30 | #define STA_PR_FMT " sta:%pM" |
| 31 | #define STA_PR_ARG __entry->sta_addr |
| 32 | |
Johannes Berg | 2ca27bc | 2010-09-16 14:58:23 +0200 | [diff] [blame] | 33 | #define VIF_ENTRY __field(enum nl80211_iftype, vif_type) __field(void *, sdata) \ |
| 34 | __field(bool, p2p) \ |
Johannes Berg | 12375ef | 2009-11-25 20:30:31 +0100 | [diff] [blame] | 35 | __string(vif_name, sdata->dev ? sdata->dev->name : "<nodev>") |
Johannes Berg | 2ca27bc | 2010-09-16 14:58:23 +0200 | [diff] [blame] | 36 | #define VIF_ASSIGN __entry->vif_type = sdata->vif.type; __entry->sdata = sdata; \ |
| 37 | __entry->p2p = sdata->vif.p2p; \ |
Johannes Berg | 12375ef | 2009-11-25 20:30:31 +0100 | [diff] [blame] | 38 | __assign_str(vif_name, sdata->dev ? sdata->dev->name : "<nodev>") |
Johannes Berg | 2ca27bc | 2010-09-16 14:58:23 +0200 | [diff] [blame] | 39 | #define VIF_PR_FMT " vif:%s(%d%s)" |
| 40 | #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] | 41 | |
Johannes Berg | b5878a2 | 2010-04-07 16:48:40 +0200 | [diff] [blame] | 42 | /* |
| 43 | * Tracing for driver callbacks. |
| 44 | */ |
| 45 | |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 46 | DECLARE_EVENT_CLASS(local_only_evt, |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 47 | TP_PROTO(struct ieee80211_local *local), |
| 48 | TP_ARGS(local), |
| 49 | TP_STRUCT__entry( |
| 50 | LOCAL_ENTRY |
| 51 | ), |
| 52 | TP_fast_assign( |
| 53 | LOCAL_ASSIGN; |
| 54 | ), |
| 55 | TP_printk(LOCAL_PR_FMT, LOCAL_PR_ARG) |
| 56 | ); |
| 57 | |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 58 | DEFINE_EVENT(local_only_evt, drv_return_void, |
| 59 | TP_PROTO(struct ieee80211_local *local), |
| 60 | TP_ARGS(local) |
| 61 | ); |
| 62 | |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 63 | TRACE_EVENT(drv_return_int, |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 64 | TP_PROTO(struct ieee80211_local *local, int ret), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 65 | TP_ARGS(local, ret), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 66 | TP_STRUCT__entry( |
| 67 | LOCAL_ENTRY |
| 68 | __field(int, ret) |
| 69 | ), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 70 | TP_fast_assign( |
| 71 | LOCAL_ASSIGN; |
| 72 | __entry->ret = ret; |
| 73 | ), |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 74 | TP_printk(LOCAL_PR_FMT " - %d", LOCAL_PR_ARG, __entry->ret) |
| 75 | ); |
| 76 | |
| 77 | TRACE_EVENT(drv_return_u64, |
| 78 | TP_PROTO(struct ieee80211_local *local, u64 ret), |
| 79 | TP_ARGS(local, ret), |
| 80 | TP_STRUCT__entry( |
| 81 | LOCAL_ENTRY |
| 82 | __field(u64, ret) |
| 83 | ), |
| 84 | TP_fast_assign( |
| 85 | LOCAL_ASSIGN; |
| 86 | __entry->ret = ret; |
| 87 | ), |
| 88 | TP_printk(LOCAL_PR_FMT " - %llu", LOCAL_PR_ARG, __entry->ret) |
| 89 | ); |
| 90 | |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 91 | DEFINE_EVENT(local_only_evt, drv_start, |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 92 | TP_PROTO(struct ieee80211_local *local), |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 93 | TP_ARGS(local) |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 94 | ); |
| 95 | |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 96 | DEFINE_EVENT(local_only_evt, drv_stop, |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 97 | TP_PROTO(struct ieee80211_local *local), |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 98 | TP_ARGS(local) |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 99 | ); |
| 100 | |
| 101 | TRACE_EVENT(drv_add_interface, |
| 102 | TP_PROTO(struct ieee80211_local *local, |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 103 | struct ieee80211_sub_if_data *sdata), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 104 | |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 105 | TP_ARGS(local, sdata), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 106 | |
| 107 | TP_STRUCT__entry( |
| 108 | LOCAL_ENTRY |
| 109 | VIF_ENTRY |
| 110 | __array(char, addr, 6) |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 111 | ), |
| 112 | |
| 113 | TP_fast_assign( |
| 114 | LOCAL_ASSIGN; |
| 115 | VIF_ASSIGN; |
Johannes Berg | 12375ef | 2009-11-25 20:30:31 +0100 | [diff] [blame] | 116 | memcpy(__entry->addr, sdata->vif.addr, 6); |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 117 | ), |
| 118 | |
| 119 | TP_printk( |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 120 | LOCAL_PR_FMT VIF_PR_FMT " addr:%pM", |
| 121 | LOCAL_PR_ARG, VIF_PR_ARG, __entry->addr |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 122 | ) |
| 123 | ); |
| 124 | |
Johannes Berg | 34d4bc4 | 2010-08-27 12:35:58 +0200 | [diff] [blame] | 125 | TRACE_EVENT(drv_change_interface, |
| 126 | TP_PROTO(struct ieee80211_local *local, |
| 127 | struct ieee80211_sub_if_data *sdata, |
Johannes Berg | 2ca27bc | 2010-09-16 14:58:23 +0200 | [diff] [blame] | 128 | enum nl80211_iftype type, bool p2p), |
Johannes Berg | 34d4bc4 | 2010-08-27 12:35:58 +0200 | [diff] [blame] | 129 | |
Johannes Berg | 2ca27bc | 2010-09-16 14:58:23 +0200 | [diff] [blame] | 130 | TP_ARGS(local, sdata, type, p2p), |
Johannes Berg | 34d4bc4 | 2010-08-27 12:35:58 +0200 | [diff] [blame] | 131 | |
| 132 | TP_STRUCT__entry( |
| 133 | LOCAL_ENTRY |
| 134 | VIF_ENTRY |
| 135 | __field(u32, new_type) |
Johannes Berg | 2ca27bc | 2010-09-16 14:58:23 +0200 | [diff] [blame] | 136 | __field(bool, new_p2p) |
Johannes Berg | 34d4bc4 | 2010-08-27 12:35:58 +0200 | [diff] [blame] | 137 | ), |
| 138 | |
| 139 | TP_fast_assign( |
| 140 | LOCAL_ASSIGN; |
| 141 | VIF_ASSIGN; |
| 142 | __entry->new_type = type; |
Johannes Berg | 2ca27bc | 2010-09-16 14:58:23 +0200 | [diff] [blame] | 143 | __entry->new_p2p = p2p; |
Johannes Berg | 34d4bc4 | 2010-08-27 12:35:58 +0200 | [diff] [blame] | 144 | ), |
| 145 | |
| 146 | TP_printk( |
Johannes Berg | 2ca27bc | 2010-09-16 14:58:23 +0200 | [diff] [blame] | 147 | LOCAL_PR_FMT VIF_PR_FMT " new type:%d%s", |
| 148 | LOCAL_PR_ARG, VIF_PR_ARG, __entry->new_type, |
| 149 | __entry->new_p2p ? "/p2p" : "" |
Johannes Berg | 34d4bc4 | 2010-08-27 12:35:58 +0200 | [diff] [blame] | 150 | ) |
| 151 | ); |
| 152 | |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 153 | TRACE_EVENT(drv_remove_interface, |
Johannes Berg | 12375ef | 2009-11-25 20:30:31 +0100 | [diff] [blame] | 154 | TP_PROTO(struct ieee80211_local *local, struct ieee80211_sub_if_data *sdata), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 155 | |
Johannes Berg | 12375ef | 2009-11-25 20:30:31 +0100 | [diff] [blame] | 156 | TP_ARGS(local, sdata), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 157 | |
| 158 | TP_STRUCT__entry( |
| 159 | LOCAL_ENTRY |
| 160 | VIF_ENTRY |
| 161 | __array(char, addr, 6) |
| 162 | ), |
| 163 | |
| 164 | TP_fast_assign( |
| 165 | LOCAL_ASSIGN; |
| 166 | VIF_ASSIGN; |
Johannes Berg | 12375ef | 2009-11-25 20:30:31 +0100 | [diff] [blame] | 167 | memcpy(__entry->addr, sdata->vif.addr, 6); |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 168 | ), |
| 169 | |
| 170 | TP_printk( |
| 171 | LOCAL_PR_FMT VIF_PR_FMT " addr:%pM", |
| 172 | LOCAL_PR_ARG, VIF_PR_ARG, __entry->addr |
| 173 | ) |
| 174 | ); |
| 175 | |
| 176 | TRACE_EVENT(drv_config, |
| 177 | TP_PROTO(struct ieee80211_local *local, |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 178 | u32 changed), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 179 | |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 180 | TP_ARGS(local, changed), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 181 | |
| 182 | TP_STRUCT__entry( |
| 183 | LOCAL_ENTRY |
| 184 | __field(u32, changed) |
Johannes Berg | f911ab8 | 2009-11-25 19:07:20 +0100 | [diff] [blame] | 185 | __field(u32, flags) |
| 186 | __field(int, power_level) |
| 187 | __field(int, dynamic_ps_timeout) |
| 188 | __field(int, max_sleep_period) |
| 189 | __field(u16, listen_interval) |
| 190 | __field(u8, long_frame_max_tx_count) |
| 191 | __field(u8, short_frame_max_tx_count) |
| 192 | __field(int, center_freq) |
| 193 | __field(int, channel_type) |
Johannes Berg | 0f78231 | 2009-12-01 13:37:02 +0100 | [diff] [blame] | 194 | __field(int, smps) |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 195 | ), |
| 196 | |
| 197 | TP_fast_assign( |
| 198 | LOCAL_ASSIGN; |
| 199 | __entry->changed = changed; |
Johannes Berg | f911ab8 | 2009-11-25 19:07:20 +0100 | [diff] [blame] | 200 | __entry->flags = local->hw.conf.flags; |
| 201 | __entry->power_level = local->hw.conf.power_level; |
| 202 | __entry->dynamic_ps_timeout = local->hw.conf.dynamic_ps_timeout; |
| 203 | __entry->max_sleep_period = local->hw.conf.max_sleep_period; |
| 204 | __entry->listen_interval = local->hw.conf.listen_interval; |
| 205 | __entry->long_frame_max_tx_count = local->hw.conf.long_frame_max_tx_count; |
| 206 | __entry->short_frame_max_tx_count = local->hw.conf.short_frame_max_tx_count; |
| 207 | __entry->center_freq = local->hw.conf.channel->center_freq; |
| 208 | __entry->channel_type = local->hw.conf.channel_type; |
Johannes Berg | 0f78231 | 2009-12-01 13:37:02 +0100 | [diff] [blame] | 209 | __entry->smps = local->hw.conf.smps_mode; |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 210 | ), |
| 211 | |
| 212 | TP_printk( |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 213 | LOCAL_PR_FMT " ch:%#x freq:%d", |
| 214 | LOCAL_PR_ARG, __entry->changed, __entry->center_freq |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 215 | ) |
| 216 | ); |
| 217 | |
| 218 | TRACE_EVENT(drv_bss_info_changed, |
| 219 | TP_PROTO(struct ieee80211_local *local, |
Johannes Berg | 12375ef | 2009-11-25 20:30:31 +0100 | [diff] [blame] | 220 | struct ieee80211_sub_if_data *sdata, |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 221 | struct ieee80211_bss_conf *info, |
| 222 | u32 changed), |
| 223 | |
Johannes Berg | 12375ef | 2009-11-25 20:30:31 +0100 | [diff] [blame] | 224 | TP_ARGS(local, sdata, info, changed), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 225 | |
| 226 | TP_STRUCT__entry( |
| 227 | LOCAL_ENTRY |
| 228 | VIF_ENTRY |
| 229 | __field(bool, assoc) |
| 230 | __field(u16, aid) |
| 231 | __field(bool, cts) |
| 232 | __field(bool, shortpre) |
| 233 | __field(bool, shortslot) |
| 234 | __field(u8, dtimper) |
| 235 | __field(u16, bcnint) |
| 236 | __field(u16, assoc_cap) |
| 237 | __field(u64, timestamp) |
| 238 | __field(u32, basic_rates) |
| 239 | __field(u32, changed) |
Johannes Berg | f911ab8 | 2009-11-25 19:07:20 +0100 | [diff] [blame] | 240 | __field(bool, enable_beacon) |
| 241 | __field(u16, ht_operation_mode) |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 242 | ), |
| 243 | |
| 244 | TP_fast_assign( |
| 245 | LOCAL_ASSIGN; |
| 246 | VIF_ASSIGN; |
| 247 | __entry->changed = changed; |
| 248 | __entry->aid = info->aid; |
| 249 | __entry->assoc = info->assoc; |
| 250 | __entry->shortpre = info->use_short_preamble; |
| 251 | __entry->cts = info->use_cts_prot; |
| 252 | __entry->shortslot = info->use_short_slot; |
| 253 | __entry->dtimper = info->dtim_period; |
| 254 | __entry->bcnint = info->beacon_int; |
| 255 | __entry->assoc_cap = info->assoc_capability; |
| 256 | __entry->timestamp = info->timestamp; |
| 257 | __entry->basic_rates = info->basic_rates; |
Johannes Berg | f911ab8 | 2009-11-25 19:07:20 +0100 | [diff] [blame] | 258 | __entry->enable_beacon = info->enable_beacon; |
| 259 | __entry->ht_operation_mode = info->ht_operation_mode; |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 260 | ), |
| 261 | |
| 262 | TP_printk( |
| 263 | LOCAL_PR_FMT VIF_PR_FMT " changed:%#x", |
| 264 | LOCAL_PR_ARG, VIF_PR_ARG, __entry->changed |
| 265 | ) |
| 266 | ); |
| 267 | |
Johannes Berg | 3ac64be | 2009-08-17 16:16:53 +0200 | [diff] [blame] | 268 | TRACE_EVENT(drv_prepare_multicast, |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 269 | TP_PROTO(struct ieee80211_local *local, int mc_count), |
Johannes Berg | 3ac64be | 2009-08-17 16:16:53 +0200 | [diff] [blame] | 270 | |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 271 | TP_ARGS(local, mc_count), |
Johannes Berg | 3ac64be | 2009-08-17 16:16:53 +0200 | [diff] [blame] | 272 | |
| 273 | TP_STRUCT__entry( |
| 274 | LOCAL_ENTRY |
| 275 | __field(int, mc_count) |
Johannes Berg | 3ac64be | 2009-08-17 16:16:53 +0200 | [diff] [blame] | 276 | ), |
| 277 | |
| 278 | TP_fast_assign( |
| 279 | LOCAL_ASSIGN; |
| 280 | __entry->mc_count = mc_count; |
Johannes Berg | 3ac64be | 2009-08-17 16:16:53 +0200 | [diff] [blame] | 281 | ), |
| 282 | |
| 283 | TP_printk( |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 284 | LOCAL_PR_FMT " prepare mc (%d)", |
| 285 | LOCAL_PR_ARG, __entry->mc_count |
Johannes Berg | 3ac64be | 2009-08-17 16:16:53 +0200 | [diff] [blame] | 286 | ) |
| 287 | ); |
| 288 | |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 289 | TRACE_EVENT(drv_configure_filter, |
| 290 | TP_PROTO(struct ieee80211_local *local, |
| 291 | unsigned int changed_flags, |
| 292 | unsigned int *total_flags, |
Johannes Berg | 3ac64be | 2009-08-17 16:16:53 +0200 | [diff] [blame] | 293 | u64 multicast), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 294 | |
Johannes Berg | 3ac64be | 2009-08-17 16:16:53 +0200 | [diff] [blame] | 295 | TP_ARGS(local, changed_flags, total_flags, multicast), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 296 | |
| 297 | TP_STRUCT__entry( |
| 298 | LOCAL_ENTRY |
| 299 | __field(unsigned int, changed) |
| 300 | __field(unsigned int, total) |
Johannes Berg | 3ac64be | 2009-08-17 16:16:53 +0200 | [diff] [blame] | 301 | __field(u64, multicast) |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 302 | ), |
| 303 | |
| 304 | TP_fast_assign( |
| 305 | LOCAL_ASSIGN; |
| 306 | __entry->changed = changed_flags; |
| 307 | __entry->total = *total_flags; |
Johannes Berg | 3ac64be | 2009-08-17 16:16:53 +0200 | [diff] [blame] | 308 | __entry->multicast = multicast; |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 309 | ), |
| 310 | |
| 311 | TP_printk( |
Johannes Berg | 3ac64be | 2009-08-17 16:16:53 +0200 | [diff] [blame] | 312 | LOCAL_PR_FMT " changed:%#x total:%#x", |
| 313 | LOCAL_PR_ARG, __entry->changed, __entry->total |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 314 | ) |
| 315 | ); |
| 316 | |
| 317 | TRACE_EVENT(drv_set_tim, |
| 318 | TP_PROTO(struct ieee80211_local *local, |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 319 | struct ieee80211_sta *sta, bool set), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 320 | |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 321 | TP_ARGS(local, sta, set), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 322 | |
| 323 | TP_STRUCT__entry( |
| 324 | LOCAL_ENTRY |
| 325 | STA_ENTRY |
| 326 | __field(bool, set) |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 327 | ), |
| 328 | |
| 329 | TP_fast_assign( |
| 330 | LOCAL_ASSIGN; |
| 331 | STA_ASSIGN; |
| 332 | __entry->set = set; |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 333 | ), |
| 334 | |
| 335 | TP_printk( |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 336 | LOCAL_PR_FMT STA_PR_FMT " set:%d", |
| 337 | LOCAL_PR_ARG, STA_PR_FMT, __entry->set |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 338 | ) |
| 339 | ); |
| 340 | |
| 341 | TRACE_EVENT(drv_set_key, |
| 342 | TP_PROTO(struct ieee80211_local *local, |
Johannes Berg | 12375ef | 2009-11-25 20:30:31 +0100 | [diff] [blame] | 343 | enum set_key_cmd cmd, struct ieee80211_sub_if_data *sdata, |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 344 | struct ieee80211_sta *sta, |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 345 | struct ieee80211_key_conf *key), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 346 | |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 347 | TP_ARGS(local, cmd, sdata, sta, key), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 348 | |
| 349 | TP_STRUCT__entry( |
| 350 | LOCAL_ENTRY |
| 351 | VIF_ENTRY |
| 352 | STA_ENTRY |
Johannes Berg | 97359d1 | 2010-08-10 09:46:38 +0200 | [diff] [blame] | 353 | __field(u32, cipher) |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 354 | __field(u8, hw_key_idx) |
| 355 | __field(u8, flags) |
| 356 | __field(s8, keyidx) |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 357 | ), |
| 358 | |
| 359 | TP_fast_assign( |
| 360 | LOCAL_ASSIGN; |
| 361 | VIF_ASSIGN; |
| 362 | STA_ASSIGN; |
Johannes Berg | 97359d1 | 2010-08-10 09:46:38 +0200 | [diff] [blame] | 363 | __entry->cipher = key->cipher; |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 364 | __entry->flags = key->flags; |
| 365 | __entry->keyidx = key->keyidx; |
| 366 | __entry->hw_key_idx = key->hw_key_idx; |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 367 | ), |
| 368 | |
| 369 | TP_printk( |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 370 | LOCAL_PR_FMT VIF_PR_FMT STA_PR_FMT, |
| 371 | LOCAL_PR_ARG, VIF_PR_ARG, STA_PR_ARG |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 372 | ) |
| 373 | ); |
| 374 | |
| 375 | TRACE_EVENT(drv_update_tkip_key, |
| 376 | TP_PROTO(struct ieee80211_local *local, |
Johannes Berg | b3fbdcf | 2010-01-21 11:40:47 +0100 | [diff] [blame] | 377 | struct ieee80211_sub_if_data *sdata, |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 378 | struct ieee80211_key_conf *conf, |
Johannes Berg | b3fbdcf | 2010-01-21 11:40:47 +0100 | [diff] [blame] | 379 | struct ieee80211_sta *sta, u32 iv32), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 380 | |
Johannes Berg | b3fbdcf | 2010-01-21 11:40:47 +0100 | [diff] [blame] | 381 | TP_ARGS(local, sdata, conf, sta, iv32), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 382 | |
| 383 | TP_STRUCT__entry( |
| 384 | LOCAL_ENTRY |
Johannes Berg | b3fbdcf | 2010-01-21 11:40:47 +0100 | [diff] [blame] | 385 | VIF_ENTRY |
| 386 | STA_ENTRY |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 387 | __field(u32, iv32) |
| 388 | ), |
| 389 | |
| 390 | TP_fast_assign( |
| 391 | LOCAL_ASSIGN; |
Johannes Berg | b3fbdcf | 2010-01-21 11:40:47 +0100 | [diff] [blame] | 392 | VIF_ASSIGN; |
| 393 | STA_ASSIGN; |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 394 | __entry->iv32 = iv32; |
| 395 | ), |
| 396 | |
| 397 | TP_printk( |
Johannes Berg | b3fbdcf | 2010-01-21 11:40:47 +0100 | [diff] [blame] | 398 | LOCAL_PR_FMT VIF_PR_FMT STA_PR_FMT " iv32:%#x", |
| 399 | LOCAL_PR_ARG,VIF_PR_ARG,STA_PR_ARG, __entry->iv32 |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 400 | ) |
| 401 | ); |
| 402 | |
| 403 | TRACE_EVENT(drv_hw_scan, |
| 404 | TP_PROTO(struct ieee80211_local *local, |
Johannes Berg | a060bbf | 2010-04-27 11:59:34 +0200 | [diff] [blame] | 405 | struct ieee80211_sub_if_data *sdata, |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 406 | struct cfg80211_scan_request *req), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 407 | |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 408 | TP_ARGS(local, sdata, req), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 409 | |
| 410 | TP_STRUCT__entry( |
| 411 | LOCAL_ENTRY |
Johannes Berg | a060bbf | 2010-04-27 11:59:34 +0200 | [diff] [blame] | 412 | VIF_ENTRY |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 413 | ), |
| 414 | |
| 415 | TP_fast_assign( |
| 416 | LOCAL_ASSIGN; |
Johannes Berg | a060bbf | 2010-04-27 11:59:34 +0200 | [diff] [blame] | 417 | VIF_ASSIGN; |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 418 | ), |
| 419 | |
| 420 | TP_printk( |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 421 | LOCAL_PR_FMT VIF_PR_FMT, |
| 422 | LOCAL_PR_ARG,VIF_PR_ARG |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 423 | ) |
| 424 | ); |
| 425 | |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 426 | DEFINE_EVENT(local_only_evt, drv_sw_scan_start, |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 427 | TP_PROTO(struct ieee80211_local *local), |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 428 | TP_ARGS(local) |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 429 | ); |
| 430 | |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 431 | DEFINE_EVENT(local_only_evt, drv_sw_scan_complete, |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 432 | TP_PROTO(struct ieee80211_local *local), |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 433 | TP_ARGS(local) |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 434 | ); |
| 435 | |
| 436 | TRACE_EVENT(drv_get_stats, |
| 437 | TP_PROTO(struct ieee80211_local *local, |
| 438 | struct ieee80211_low_level_stats *stats, |
| 439 | int ret), |
| 440 | |
| 441 | TP_ARGS(local, stats, ret), |
| 442 | |
| 443 | TP_STRUCT__entry( |
| 444 | LOCAL_ENTRY |
| 445 | __field(int, ret) |
| 446 | __field(unsigned int, ackfail) |
| 447 | __field(unsigned int, rtsfail) |
| 448 | __field(unsigned int, fcserr) |
| 449 | __field(unsigned int, rtssucc) |
| 450 | ), |
| 451 | |
| 452 | TP_fast_assign( |
| 453 | LOCAL_ASSIGN; |
| 454 | __entry->ret = ret; |
| 455 | __entry->ackfail = stats->dot11ACKFailureCount; |
| 456 | __entry->rtsfail = stats->dot11RTSFailureCount; |
| 457 | __entry->fcserr = stats->dot11FCSErrorCount; |
| 458 | __entry->rtssucc = stats->dot11RTSSuccessCount; |
| 459 | ), |
| 460 | |
| 461 | TP_printk( |
| 462 | LOCAL_PR_FMT " ret:%d", |
| 463 | LOCAL_PR_ARG, __entry->ret |
| 464 | ) |
| 465 | ); |
| 466 | |
| 467 | TRACE_EVENT(drv_get_tkip_seq, |
| 468 | TP_PROTO(struct ieee80211_local *local, |
| 469 | u8 hw_key_idx, u32 *iv32, u16 *iv16), |
| 470 | |
| 471 | TP_ARGS(local, hw_key_idx, iv32, iv16), |
| 472 | |
| 473 | TP_STRUCT__entry( |
| 474 | LOCAL_ENTRY |
| 475 | __field(u8, hw_key_idx) |
| 476 | __field(u32, iv32) |
| 477 | __field(u16, iv16) |
| 478 | ), |
| 479 | |
| 480 | TP_fast_assign( |
| 481 | LOCAL_ASSIGN; |
| 482 | __entry->hw_key_idx = hw_key_idx; |
| 483 | __entry->iv32 = *iv32; |
| 484 | __entry->iv16 = *iv16; |
| 485 | ), |
| 486 | |
| 487 | TP_printk( |
| 488 | LOCAL_PR_FMT, LOCAL_PR_ARG |
| 489 | ) |
| 490 | ); |
| 491 | |
Arik Nemtsov | f23a478 | 2010-11-08 11:51:06 +0200 | [diff] [blame] | 492 | TRACE_EVENT(drv_set_frag_threshold, |
| 493 | TP_PROTO(struct ieee80211_local *local, u32 value), |
| 494 | |
| 495 | TP_ARGS(local, value), |
| 496 | |
| 497 | TP_STRUCT__entry( |
| 498 | LOCAL_ENTRY |
| 499 | __field(u32, value) |
| 500 | ), |
| 501 | |
| 502 | TP_fast_assign( |
| 503 | LOCAL_ASSIGN; |
| 504 | __entry->value = value; |
| 505 | ), |
| 506 | |
| 507 | TP_printk( |
| 508 | LOCAL_PR_FMT " value:%d", |
| 509 | LOCAL_PR_ARG, __entry->value |
| 510 | ) |
| 511 | ); |
| 512 | |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 513 | TRACE_EVENT(drv_set_rts_threshold, |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 514 | TP_PROTO(struct ieee80211_local *local, u32 value), |
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, value), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 517 | |
| 518 | TP_STRUCT__entry( |
| 519 | LOCAL_ENTRY |
| 520 | __field(u32, value) |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 521 | ), |
| 522 | |
| 523 | TP_fast_assign( |
| 524 | LOCAL_ASSIGN; |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 525 | __entry->value = value; |
| 526 | ), |
| 527 | |
| 528 | TP_printk( |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 529 | LOCAL_PR_FMT " value:%d", |
| 530 | LOCAL_PR_ARG, __entry->value |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 531 | ) |
| 532 | ); |
| 533 | |
Lukáš Turek | 310bc67 | 2009-12-21 22:50:48 +0100 | [diff] [blame] | 534 | TRACE_EVENT(drv_set_coverage_class, |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 535 | TP_PROTO(struct ieee80211_local *local, u8 value), |
Lukáš Turek | 310bc67 | 2009-12-21 22:50:48 +0100 | [diff] [blame] | 536 | |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 537 | TP_ARGS(local, value), |
Lukáš Turek | 310bc67 | 2009-12-21 22:50:48 +0100 | [diff] [blame] | 538 | |
| 539 | TP_STRUCT__entry( |
| 540 | LOCAL_ENTRY |
| 541 | __field(u8, value) |
Lukáš Turek | 310bc67 | 2009-12-21 22:50:48 +0100 | [diff] [blame] | 542 | ), |
| 543 | |
| 544 | TP_fast_assign( |
| 545 | LOCAL_ASSIGN; |
Lukáš Turek | 310bc67 | 2009-12-21 22:50:48 +0100 | [diff] [blame] | 546 | __entry->value = value; |
| 547 | ), |
| 548 | |
| 549 | TP_printk( |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 550 | LOCAL_PR_FMT " value:%d", |
| 551 | LOCAL_PR_ARG, __entry->value |
Lukáš Turek | 310bc67 | 2009-12-21 22:50:48 +0100 | [diff] [blame] | 552 | ) |
| 553 | ); |
| 554 | |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 555 | TRACE_EVENT(drv_sta_notify, |
| 556 | TP_PROTO(struct ieee80211_local *local, |
Johannes Berg | 12375ef | 2009-11-25 20:30:31 +0100 | [diff] [blame] | 557 | struct ieee80211_sub_if_data *sdata, |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 558 | enum sta_notify_cmd cmd, |
| 559 | struct ieee80211_sta *sta), |
| 560 | |
Johannes Berg | 12375ef | 2009-11-25 20:30:31 +0100 | [diff] [blame] | 561 | TP_ARGS(local, sdata, cmd, sta), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 562 | |
| 563 | TP_STRUCT__entry( |
| 564 | LOCAL_ENTRY |
| 565 | VIF_ENTRY |
| 566 | STA_ENTRY |
| 567 | __field(u32, cmd) |
| 568 | ), |
| 569 | |
| 570 | TP_fast_assign( |
| 571 | LOCAL_ASSIGN; |
| 572 | VIF_ASSIGN; |
| 573 | STA_ASSIGN; |
| 574 | __entry->cmd = cmd; |
| 575 | ), |
| 576 | |
| 577 | TP_printk( |
| 578 | LOCAL_PR_FMT VIF_PR_FMT STA_PR_FMT " cmd:%d", |
| 579 | LOCAL_PR_ARG, VIF_PR_ARG, STA_PR_ARG, __entry->cmd |
| 580 | ) |
| 581 | ); |
| 582 | |
Johannes Berg | 34e8950 | 2010-02-03 13:59:58 +0100 | [diff] [blame] | 583 | TRACE_EVENT(drv_sta_add, |
| 584 | TP_PROTO(struct ieee80211_local *local, |
| 585 | struct ieee80211_sub_if_data *sdata, |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 586 | struct ieee80211_sta *sta), |
Johannes Berg | 34e8950 | 2010-02-03 13:59:58 +0100 | [diff] [blame] | 587 | |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 588 | TP_ARGS(local, sdata, sta), |
Johannes Berg | 34e8950 | 2010-02-03 13:59:58 +0100 | [diff] [blame] | 589 | |
| 590 | TP_STRUCT__entry( |
| 591 | LOCAL_ENTRY |
| 592 | VIF_ENTRY |
| 593 | STA_ENTRY |
Johannes Berg | 34e8950 | 2010-02-03 13:59:58 +0100 | [diff] [blame] | 594 | ), |
| 595 | |
| 596 | TP_fast_assign( |
| 597 | LOCAL_ASSIGN; |
| 598 | VIF_ASSIGN; |
| 599 | STA_ASSIGN; |
Johannes Berg | 34e8950 | 2010-02-03 13:59:58 +0100 | [diff] [blame] | 600 | ), |
| 601 | |
| 602 | TP_printk( |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 603 | LOCAL_PR_FMT VIF_PR_FMT STA_PR_FMT, |
| 604 | LOCAL_PR_ARG, VIF_PR_ARG, STA_PR_ARG |
Johannes Berg | 34e8950 | 2010-02-03 13:59:58 +0100 | [diff] [blame] | 605 | ) |
| 606 | ); |
| 607 | |
| 608 | TRACE_EVENT(drv_sta_remove, |
| 609 | TP_PROTO(struct ieee80211_local *local, |
| 610 | struct ieee80211_sub_if_data *sdata, |
| 611 | struct ieee80211_sta *sta), |
| 612 | |
| 613 | TP_ARGS(local, sdata, sta), |
| 614 | |
| 615 | TP_STRUCT__entry( |
| 616 | LOCAL_ENTRY |
| 617 | VIF_ENTRY |
| 618 | STA_ENTRY |
| 619 | ), |
| 620 | |
| 621 | TP_fast_assign( |
| 622 | LOCAL_ASSIGN; |
| 623 | VIF_ASSIGN; |
| 624 | STA_ASSIGN; |
| 625 | ), |
| 626 | |
| 627 | TP_printk( |
| 628 | LOCAL_PR_FMT VIF_PR_FMT STA_PR_FMT, |
| 629 | LOCAL_PR_ARG, VIF_PR_ARG, STA_PR_ARG |
| 630 | ) |
| 631 | ); |
| 632 | |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 633 | TRACE_EVENT(drv_conf_tx, |
| 634 | TP_PROTO(struct ieee80211_local *local, u16 queue, |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 635 | const struct ieee80211_tx_queue_params *params), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 636 | |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 637 | TP_ARGS(local, queue, params), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 638 | |
| 639 | TP_STRUCT__entry( |
| 640 | LOCAL_ENTRY |
| 641 | __field(u16, queue) |
| 642 | __field(u16, txop) |
| 643 | __field(u16, cw_min) |
| 644 | __field(u16, cw_max) |
| 645 | __field(u8, aifs) |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 646 | ), |
| 647 | |
| 648 | TP_fast_assign( |
| 649 | LOCAL_ASSIGN; |
| 650 | __entry->queue = queue; |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 651 | __entry->txop = params->txop; |
| 652 | __entry->cw_max = params->cw_max; |
| 653 | __entry->cw_min = params->cw_min; |
| 654 | __entry->aifs = params->aifs; |
| 655 | ), |
| 656 | |
| 657 | TP_printk( |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 658 | LOCAL_PR_FMT " queue:%d", |
| 659 | LOCAL_PR_ARG, __entry->queue |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 660 | ) |
| 661 | ); |
| 662 | |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 663 | DEFINE_EVENT(local_only_evt, drv_get_tsf, |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 664 | TP_PROTO(struct ieee80211_local *local), |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 665 | TP_ARGS(local) |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 666 | ); |
| 667 | |
| 668 | TRACE_EVENT(drv_set_tsf, |
| 669 | TP_PROTO(struct ieee80211_local *local, u64 tsf), |
| 670 | |
| 671 | TP_ARGS(local, tsf), |
| 672 | |
| 673 | TP_STRUCT__entry( |
| 674 | LOCAL_ENTRY |
| 675 | __field(u64, tsf) |
| 676 | ), |
| 677 | |
| 678 | TP_fast_assign( |
| 679 | LOCAL_ASSIGN; |
| 680 | __entry->tsf = tsf; |
| 681 | ), |
| 682 | |
| 683 | TP_printk( |
| 684 | LOCAL_PR_FMT " tsf:%llu", |
| 685 | LOCAL_PR_ARG, (unsigned long long)__entry->tsf |
| 686 | ) |
| 687 | ); |
| 688 | |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 689 | DEFINE_EVENT(local_only_evt, drv_reset_tsf, |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 690 | TP_PROTO(struct ieee80211_local *local), |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 691 | TP_ARGS(local) |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 692 | ); |
| 693 | |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 694 | DEFINE_EVENT(local_only_evt, drv_tx_last_beacon, |
Johannes Berg | 4efc76b | 2010-06-10 10:56:20 +0200 | [diff] [blame] | 695 | TP_PROTO(struct ieee80211_local *local), |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 696 | TP_ARGS(local) |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 697 | ); |
| 698 | |
| 699 | TRACE_EVENT(drv_ampdu_action, |
| 700 | TP_PROTO(struct ieee80211_local *local, |
Johannes Berg | 12375ef | 2009-11-25 20:30:31 +0100 | [diff] [blame] | 701 | struct ieee80211_sub_if_data *sdata, |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 702 | enum ieee80211_ampdu_mlme_action action, |
| 703 | struct ieee80211_sta *sta, u16 tid, |
Johannes Berg | 0b01f03 | 2011-01-18 13:51:05 +0100 | [diff] [blame] | 704 | u16 *ssn, u8 buf_size), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 705 | |
Johannes Berg | 0b01f03 | 2011-01-18 13:51:05 +0100 | [diff] [blame] | 706 | TP_ARGS(local, sdata, action, sta, tid, ssn, buf_size), |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 707 | |
| 708 | TP_STRUCT__entry( |
| 709 | LOCAL_ENTRY |
| 710 | STA_ENTRY |
| 711 | __field(u32, action) |
| 712 | __field(u16, tid) |
| 713 | __field(u16, ssn) |
Johannes Berg | 0b01f03 | 2011-01-18 13:51:05 +0100 | [diff] [blame] | 714 | __field(u8, buf_size) |
Johannes Berg | c951ad3 | 2009-11-16 12:00:38 +0100 | [diff] [blame] | 715 | VIF_ENTRY |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 716 | ), |
| 717 | |
| 718 | TP_fast_assign( |
| 719 | LOCAL_ASSIGN; |
Johannes Berg | c951ad3 | 2009-11-16 12:00:38 +0100 | [diff] [blame] | 720 | VIF_ASSIGN; |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 721 | STA_ASSIGN; |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 722 | __entry->action = action; |
| 723 | __entry->tid = tid; |
Zhu Yi | 3092ad0 | 2010-01-26 15:58:57 +0800 | [diff] [blame] | 724 | __entry->ssn = ssn ? *ssn : 0; |
Johannes Berg | 0b01f03 | 2011-01-18 13:51:05 +0100 | [diff] [blame] | 725 | __entry->buf_size = buf_size; |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 726 | ), |
| 727 | |
| 728 | TP_printk( |
Johannes Berg | 0b01f03 | 2011-01-18 13:51:05 +0100 | [diff] [blame] | 729 | LOCAL_PR_FMT VIF_PR_FMT STA_PR_FMT " action:%d tid:%d buf:%d", |
| 730 | LOCAL_PR_ARG, VIF_PR_ARG, STA_PR_ARG, __entry->action, |
| 731 | __entry->tid, __entry->buf_size |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 732 | ) |
| 733 | ); |
Johannes Berg | a80f7c0 | 2009-12-23 13:15:32 +0100 | [diff] [blame] | 734 | |
John W. Linville | c466d4e | 2010-06-29 14:51:23 -0400 | [diff] [blame] | 735 | TRACE_EVENT(drv_get_survey, |
| 736 | TP_PROTO(struct ieee80211_local *local, int idx, |
| 737 | struct survey_info *survey), |
| 738 | |
| 739 | TP_ARGS(local, idx, survey), |
| 740 | |
| 741 | TP_STRUCT__entry( |
| 742 | LOCAL_ENTRY |
| 743 | __field(int, idx) |
| 744 | ), |
| 745 | |
| 746 | TP_fast_assign( |
| 747 | LOCAL_ASSIGN; |
| 748 | __entry->idx = idx; |
| 749 | ), |
| 750 | |
| 751 | TP_printk( |
| 752 | LOCAL_PR_FMT " idx:%d", |
| 753 | LOCAL_PR_ARG, __entry->idx |
| 754 | ) |
| 755 | ); |
| 756 | |
Johannes Berg | a80f7c0 | 2009-12-23 13:15:32 +0100 | [diff] [blame] | 757 | TRACE_EVENT(drv_flush, |
| 758 | TP_PROTO(struct ieee80211_local *local, bool drop), |
| 759 | |
| 760 | TP_ARGS(local, drop), |
| 761 | |
| 762 | TP_STRUCT__entry( |
| 763 | LOCAL_ENTRY |
| 764 | __field(bool, drop) |
| 765 | ), |
| 766 | |
| 767 | TP_fast_assign( |
| 768 | LOCAL_ASSIGN; |
| 769 | __entry->drop = drop; |
| 770 | ), |
| 771 | |
| 772 | TP_printk( |
| 773 | LOCAL_PR_FMT " drop:%d", |
| 774 | LOCAL_PR_ARG, __entry->drop |
| 775 | ) |
| 776 | ); |
Johannes Berg | b5878a2 | 2010-04-07 16:48:40 +0200 | [diff] [blame] | 777 | |
Johannes Berg | 5ce6e43 | 2010-05-11 16:20:57 +0200 | [diff] [blame] | 778 | TRACE_EVENT(drv_channel_switch, |
| 779 | TP_PROTO(struct ieee80211_local *local, |
| 780 | struct ieee80211_channel_switch *ch_switch), |
| 781 | |
| 782 | TP_ARGS(local, ch_switch), |
| 783 | |
| 784 | TP_STRUCT__entry( |
| 785 | LOCAL_ENTRY |
| 786 | __field(u64, timestamp) |
| 787 | __field(bool, block_tx) |
| 788 | __field(u16, freq) |
| 789 | __field(u8, count) |
| 790 | ), |
| 791 | |
| 792 | TP_fast_assign( |
| 793 | LOCAL_ASSIGN; |
| 794 | __entry->timestamp = ch_switch->timestamp; |
| 795 | __entry->block_tx = ch_switch->block_tx; |
| 796 | __entry->freq = ch_switch->channel->center_freq; |
| 797 | __entry->count = ch_switch->count; |
| 798 | ), |
| 799 | |
| 800 | TP_printk( |
| 801 | LOCAL_PR_FMT " new freq:%u count:%d", |
| 802 | LOCAL_PR_ARG, __entry->freq, __entry->count |
| 803 | ) |
| 804 | ); |
| 805 | |
Bruno Randolf | 15d9675 | 2010-11-10 12:50:56 +0900 | [diff] [blame] | 806 | TRACE_EVENT(drv_set_antenna, |
| 807 | TP_PROTO(struct ieee80211_local *local, u32 tx_ant, u32 rx_ant, int ret), |
| 808 | |
| 809 | TP_ARGS(local, tx_ant, rx_ant, ret), |
| 810 | |
| 811 | TP_STRUCT__entry( |
| 812 | LOCAL_ENTRY |
| 813 | __field(u32, tx_ant) |
| 814 | __field(u32, rx_ant) |
| 815 | __field(int, ret) |
| 816 | ), |
| 817 | |
| 818 | TP_fast_assign( |
| 819 | LOCAL_ASSIGN; |
| 820 | __entry->tx_ant = tx_ant; |
| 821 | __entry->rx_ant = rx_ant; |
| 822 | __entry->ret = ret; |
| 823 | ), |
| 824 | |
| 825 | TP_printk( |
| 826 | LOCAL_PR_FMT " tx_ant:%d rx_ant:%d ret:%d", |
| 827 | LOCAL_PR_ARG, __entry->tx_ant, __entry->rx_ant, __entry->ret |
| 828 | ) |
| 829 | ); |
| 830 | |
| 831 | TRACE_EVENT(drv_get_antenna, |
| 832 | TP_PROTO(struct ieee80211_local *local, u32 tx_ant, u32 rx_ant, int ret), |
| 833 | |
| 834 | TP_ARGS(local, tx_ant, rx_ant, ret), |
| 835 | |
| 836 | TP_STRUCT__entry( |
| 837 | LOCAL_ENTRY |
| 838 | __field(u32, tx_ant) |
| 839 | __field(u32, rx_ant) |
| 840 | __field(int, ret) |
| 841 | ), |
| 842 | |
| 843 | TP_fast_assign( |
| 844 | LOCAL_ASSIGN; |
| 845 | __entry->tx_ant = tx_ant; |
| 846 | __entry->rx_ant = rx_ant; |
| 847 | __entry->ret = ret; |
| 848 | ), |
| 849 | |
| 850 | TP_printk( |
| 851 | LOCAL_PR_FMT " tx_ant:%d rx_ant:%d ret:%d", |
| 852 | LOCAL_PR_ARG, __entry->tx_ant, __entry->rx_ant, __entry->ret |
| 853 | ) |
| 854 | ); |
| 855 | |
Johannes Berg | 21f8358 | 2010-12-18 17:20:47 +0100 | [diff] [blame] | 856 | TRACE_EVENT(drv_remain_on_channel, |
| 857 | TP_PROTO(struct ieee80211_local *local, struct ieee80211_channel *chan, |
| 858 | enum nl80211_channel_type chantype, unsigned int duration), |
| 859 | |
| 860 | TP_ARGS(local, chan, chantype, duration), |
| 861 | |
| 862 | TP_STRUCT__entry( |
| 863 | LOCAL_ENTRY |
| 864 | __field(int, center_freq) |
| 865 | __field(int, channel_type) |
| 866 | __field(unsigned int, duration) |
| 867 | ), |
| 868 | |
| 869 | TP_fast_assign( |
| 870 | LOCAL_ASSIGN; |
| 871 | __entry->center_freq = chan->center_freq; |
| 872 | __entry->channel_type = chantype; |
| 873 | __entry->duration = duration; |
| 874 | ), |
| 875 | |
| 876 | TP_printk( |
| 877 | LOCAL_PR_FMT " freq:%dMHz duration:%dms", |
| 878 | LOCAL_PR_ARG, __entry->center_freq, __entry->duration |
| 879 | ) |
| 880 | ); |
| 881 | |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 882 | DEFINE_EVENT(local_only_evt, drv_cancel_remain_on_channel, |
Johannes Berg | 21f8358 | 2010-12-18 17:20:47 +0100 | [diff] [blame] | 883 | TP_PROTO(struct ieee80211_local *local), |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 884 | TP_ARGS(local) |
Johannes Berg | 21f8358 | 2010-12-18 17:20:47 +0100 | [diff] [blame] | 885 | ); |
| 886 | |
Johannes Berg | 5f16a43 | 2011-02-25 15:36:57 +0100 | [diff] [blame^] | 887 | TRACE_EVENT(drv_offchannel_tx, |
| 888 | TP_PROTO(struct ieee80211_local *local, struct sk_buff *skb, |
| 889 | struct ieee80211_channel *chan, |
| 890 | enum nl80211_channel_type channel_type, |
| 891 | unsigned int wait), |
| 892 | |
| 893 | TP_ARGS(local, skb, chan, channel_type, wait), |
| 894 | |
| 895 | TP_STRUCT__entry( |
| 896 | LOCAL_ENTRY |
| 897 | __field(int, center_freq) |
| 898 | __field(int, channel_type) |
| 899 | __field(unsigned int, wait) |
| 900 | ), |
| 901 | |
| 902 | TP_fast_assign( |
| 903 | LOCAL_ASSIGN; |
| 904 | __entry->center_freq = chan->center_freq; |
| 905 | __entry->channel_type = channel_type; |
| 906 | __entry->wait = wait; |
| 907 | ), |
| 908 | |
| 909 | TP_printk( |
| 910 | LOCAL_PR_FMT " freq:%dMHz, wait:%dms", |
| 911 | LOCAL_PR_ARG, __entry->center_freq, __entry->wait |
| 912 | ) |
| 913 | ); |
| 914 | |
| 915 | DEFINE_EVENT(local_only_evt, drv_offchannel_tx_cancel_wait, |
| 916 | TP_PROTO(struct ieee80211_local *local), |
| 917 | TP_ARGS(local) |
| 918 | ); |
| 919 | |
Johannes Berg | b5878a2 | 2010-04-07 16:48:40 +0200 | [diff] [blame] | 920 | /* |
| 921 | * Tracing for API calls that drivers call. |
| 922 | */ |
| 923 | |
| 924 | TRACE_EVENT(api_start_tx_ba_session, |
| 925 | TP_PROTO(struct ieee80211_sta *sta, u16 tid), |
| 926 | |
| 927 | TP_ARGS(sta, tid), |
| 928 | |
| 929 | TP_STRUCT__entry( |
| 930 | STA_ENTRY |
| 931 | __field(u16, tid) |
| 932 | ), |
| 933 | |
| 934 | TP_fast_assign( |
| 935 | STA_ASSIGN; |
| 936 | __entry->tid = tid; |
| 937 | ), |
| 938 | |
| 939 | TP_printk( |
| 940 | STA_PR_FMT " tid:%d", |
| 941 | STA_PR_ARG, __entry->tid |
| 942 | ) |
| 943 | ); |
| 944 | |
| 945 | TRACE_EVENT(api_start_tx_ba_cb, |
| 946 | TP_PROTO(struct ieee80211_sub_if_data *sdata, const u8 *ra, u16 tid), |
| 947 | |
| 948 | TP_ARGS(sdata, ra, tid), |
| 949 | |
| 950 | TP_STRUCT__entry( |
| 951 | VIF_ENTRY |
| 952 | __array(u8, ra, ETH_ALEN) |
| 953 | __field(u16, tid) |
| 954 | ), |
| 955 | |
| 956 | TP_fast_assign( |
| 957 | VIF_ASSIGN; |
| 958 | memcpy(__entry->ra, ra, ETH_ALEN); |
| 959 | __entry->tid = tid; |
| 960 | ), |
| 961 | |
| 962 | TP_printk( |
| 963 | VIF_PR_FMT " ra:%pM tid:%d", |
| 964 | VIF_PR_ARG, __entry->ra, __entry->tid |
| 965 | ) |
| 966 | ); |
| 967 | |
| 968 | TRACE_EVENT(api_stop_tx_ba_session, |
Johannes Berg | 6a8579d | 2010-05-27 14:41:07 +0200 | [diff] [blame] | 969 | TP_PROTO(struct ieee80211_sta *sta, u16 tid), |
Johannes Berg | b5878a2 | 2010-04-07 16:48:40 +0200 | [diff] [blame] | 970 | |
Johannes Berg | 6a8579d | 2010-05-27 14:41:07 +0200 | [diff] [blame] | 971 | TP_ARGS(sta, tid), |
Johannes Berg | b5878a2 | 2010-04-07 16:48:40 +0200 | [diff] [blame] | 972 | |
| 973 | TP_STRUCT__entry( |
| 974 | STA_ENTRY |
| 975 | __field(u16, tid) |
Johannes Berg | b5878a2 | 2010-04-07 16:48:40 +0200 | [diff] [blame] | 976 | ), |
| 977 | |
| 978 | TP_fast_assign( |
| 979 | STA_ASSIGN; |
| 980 | __entry->tid = tid; |
Johannes Berg | b5878a2 | 2010-04-07 16:48:40 +0200 | [diff] [blame] | 981 | ), |
| 982 | |
| 983 | TP_printk( |
Johannes Berg | 6a8579d | 2010-05-27 14:41:07 +0200 | [diff] [blame] | 984 | STA_PR_FMT " tid:%d", |
| 985 | STA_PR_ARG, __entry->tid |
Johannes Berg | b5878a2 | 2010-04-07 16:48:40 +0200 | [diff] [blame] | 986 | ) |
| 987 | ); |
| 988 | |
| 989 | TRACE_EVENT(api_stop_tx_ba_cb, |
| 990 | TP_PROTO(struct ieee80211_sub_if_data *sdata, const u8 *ra, u16 tid), |
| 991 | |
| 992 | TP_ARGS(sdata, ra, tid), |
| 993 | |
| 994 | TP_STRUCT__entry( |
| 995 | VIF_ENTRY |
| 996 | __array(u8, ra, ETH_ALEN) |
| 997 | __field(u16, tid) |
| 998 | ), |
| 999 | |
| 1000 | TP_fast_assign( |
| 1001 | VIF_ASSIGN; |
| 1002 | memcpy(__entry->ra, ra, ETH_ALEN); |
| 1003 | __entry->tid = tid; |
| 1004 | ), |
| 1005 | |
| 1006 | TP_printk( |
| 1007 | VIF_PR_FMT " ra:%pM tid:%d", |
| 1008 | VIF_PR_ARG, __entry->ra, __entry->tid |
| 1009 | ) |
| 1010 | ); |
| 1011 | |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 1012 | DEFINE_EVENT(local_only_evt, api_restart_hw, |
Johannes Berg | b5878a2 | 2010-04-07 16:48:40 +0200 | [diff] [blame] | 1013 | TP_PROTO(struct ieee80211_local *local), |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 1014 | TP_ARGS(local) |
Johannes Berg | b5878a2 | 2010-04-07 16:48:40 +0200 | [diff] [blame] | 1015 | ); |
| 1016 | |
| 1017 | TRACE_EVENT(api_beacon_loss, |
| 1018 | TP_PROTO(struct ieee80211_sub_if_data *sdata), |
| 1019 | |
| 1020 | TP_ARGS(sdata), |
| 1021 | |
| 1022 | TP_STRUCT__entry( |
| 1023 | VIF_ENTRY |
| 1024 | ), |
| 1025 | |
| 1026 | TP_fast_assign( |
| 1027 | VIF_ASSIGN; |
| 1028 | ), |
| 1029 | |
| 1030 | TP_printk( |
| 1031 | VIF_PR_FMT, |
| 1032 | VIF_PR_ARG |
| 1033 | ) |
| 1034 | ); |
| 1035 | |
| 1036 | TRACE_EVENT(api_connection_loss, |
| 1037 | TP_PROTO(struct ieee80211_sub_if_data *sdata), |
| 1038 | |
| 1039 | TP_ARGS(sdata), |
| 1040 | |
| 1041 | TP_STRUCT__entry( |
| 1042 | VIF_ENTRY |
| 1043 | ), |
| 1044 | |
| 1045 | TP_fast_assign( |
| 1046 | VIF_ASSIGN; |
| 1047 | ), |
| 1048 | |
| 1049 | TP_printk( |
| 1050 | VIF_PR_FMT, |
| 1051 | VIF_PR_ARG |
| 1052 | ) |
| 1053 | ); |
| 1054 | |
| 1055 | TRACE_EVENT(api_cqm_rssi_notify, |
| 1056 | TP_PROTO(struct ieee80211_sub_if_data *sdata, |
| 1057 | enum nl80211_cqm_rssi_threshold_event rssi_event), |
| 1058 | |
| 1059 | TP_ARGS(sdata, rssi_event), |
| 1060 | |
| 1061 | TP_STRUCT__entry( |
| 1062 | VIF_ENTRY |
| 1063 | __field(u32, rssi_event) |
| 1064 | ), |
| 1065 | |
| 1066 | TP_fast_assign( |
| 1067 | VIF_ASSIGN; |
| 1068 | __entry->rssi_event = rssi_event; |
| 1069 | ), |
| 1070 | |
| 1071 | TP_printk( |
| 1072 | VIF_PR_FMT " event:%d", |
| 1073 | VIF_PR_ARG, __entry->rssi_event |
| 1074 | ) |
| 1075 | ); |
| 1076 | |
| 1077 | TRACE_EVENT(api_scan_completed, |
| 1078 | TP_PROTO(struct ieee80211_local *local, bool aborted), |
| 1079 | |
| 1080 | TP_ARGS(local, aborted), |
| 1081 | |
| 1082 | TP_STRUCT__entry( |
| 1083 | LOCAL_ENTRY |
| 1084 | __field(bool, aborted) |
| 1085 | ), |
| 1086 | |
| 1087 | TP_fast_assign( |
| 1088 | LOCAL_ASSIGN; |
| 1089 | __entry->aborted = aborted; |
| 1090 | ), |
| 1091 | |
| 1092 | TP_printk( |
| 1093 | LOCAL_PR_FMT " aborted:%d", |
| 1094 | LOCAL_PR_ARG, __entry->aborted |
| 1095 | ) |
| 1096 | ); |
| 1097 | |
| 1098 | TRACE_EVENT(api_sta_block_awake, |
| 1099 | TP_PROTO(struct ieee80211_local *local, |
| 1100 | struct ieee80211_sta *sta, bool block), |
| 1101 | |
| 1102 | TP_ARGS(local, sta, block), |
| 1103 | |
| 1104 | TP_STRUCT__entry( |
| 1105 | LOCAL_ENTRY |
| 1106 | STA_ENTRY |
| 1107 | __field(bool, block) |
| 1108 | ), |
| 1109 | |
| 1110 | TP_fast_assign( |
| 1111 | LOCAL_ASSIGN; |
| 1112 | STA_ASSIGN; |
| 1113 | __entry->block = block; |
| 1114 | ), |
| 1115 | |
| 1116 | TP_printk( |
| 1117 | LOCAL_PR_FMT STA_PR_FMT " block:%d", |
| 1118 | LOCAL_PR_ARG, STA_PR_FMT, __entry->block |
| 1119 | ) |
| 1120 | ); |
| 1121 | |
Johannes Berg | 5ce6e43 | 2010-05-11 16:20:57 +0200 | [diff] [blame] | 1122 | TRACE_EVENT(api_chswitch_done, |
| 1123 | TP_PROTO(struct ieee80211_sub_if_data *sdata, bool success), |
| 1124 | |
| 1125 | TP_ARGS(sdata, success), |
| 1126 | |
| 1127 | TP_STRUCT__entry( |
| 1128 | VIF_ENTRY |
| 1129 | __field(bool, success) |
| 1130 | ), |
| 1131 | |
| 1132 | TP_fast_assign( |
| 1133 | VIF_ASSIGN; |
| 1134 | __entry->success = success; |
| 1135 | ), |
| 1136 | |
| 1137 | TP_printk( |
| 1138 | VIF_PR_FMT " success=%d", |
| 1139 | VIF_PR_ARG, __entry->success |
| 1140 | ) |
| 1141 | ); |
| 1142 | |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 1143 | DEFINE_EVENT(local_only_evt, api_ready_on_channel, |
Johannes Berg | 21f8358 | 2010-12-18 17:20:47 +0100 | [diff] [blame] | 1144 | TP_PROTO(struct ieee80211_local *local), |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 1145 | TP_ARGS(local) |
Johannes Berg | 21f8358 | 2010-12-18 17:20:47 +0100 | [diff] [blame] | 1146 | ); |
| 1147 | |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 1148 | DEFINE_EVENT(local_only_evt, api_remain_on_channel_expired, |
Johannes Berg | 21f8358 | 2010-12-18 17:20:47 +0100 | [diff] [blame] | 1149 | TP_PROTO(struct ieee80211_local *local), |
Johannes Berg | ba99d93 | 2011-01-26 09:22:15 +0100 | [diff] [blame] | 1150 | TP_ARGS(local) |
Johannes Berg | 21f8358 | 2010-12-18 17:20:47 +0100 | [diff] [blame] | 1151 | ); |
| 1152 | |
Johannes Berg | b5878a2 | 2010-04-07 16:48:40 +0200 | [diff] [blame] | 1153 | /* |
| 1154 | * Tracing for internal functions |
| 1155 | * (which may also be called in response to driver calls) |
| 1156 | */ |
| 1157 | |
| 1158 | TRACE_EVENT(wake_queue, |
| 1159 | TP_PROTO(struct ieee80211_local *local, u16 queue, |
| 1160 | enum queue_stop_reason reason), |
| 1161 | |
| 1162 | TP_ARGS(local, queue, reason), |
| 1163 | |
| 1164 | TP_STRUCT__entry( |
| 1165 | LOCAL_ENTRY |
| 1166 | __field(u16, queue) |
| 1167 | __field(u32, reason) |
| 1168 | ), |
| 1169 | |
| 1170 | TP_fast_assign( |
| 1171 | LOCAL_ASSIGN; |
| 1172 | __entry->queue = queue; |
| 1173 | __entry->reason = reason; |
| 1174 | ), |
| 1175 | |
| 1176 | TP_printk( |
| 1177 | LOCAL_PR_FMT " queue:%d, reason:%d", |
| 1178 | LOCAL_PR_ARG, __entry->queue, __entry->reason |
| 1179 | ) |
| 1180 | ); |
| 1181 | |
| 1182 | TRACE_EVENT(stop_queue, |
| 1183 | TP_PROTO(struct ieee80211_local *local, u16 queue, |
| 1184 | enum queue_stop_reason reason), |
| 1185 | |
| 1186 | TP_ARGS(local, queue, reason), |
| 1187 | |
| 1188 | TP_STRUCT__entry( |
| 1189 | LOCAL_ENTRY |
| 1190 | __field(u16, queue) |
| 1191 | __field(u32, reason) |
| 1192 | ), |
| 1193 | |
| 1194 | TP_fast_assign( |
| 1195 | LOCAL_ASSIGN; |
| 1196 | __entry->queue = queue; |
| 1197 | __entry->reason = reason; |
| 1198 | ), |
| 1199 | |
| 1200 | TP_printk( |
| 1201 | LOCAL_PR_FMT " queue:%d, reason:%d", |
| 1202 | LOCAL_PR_ARG, __entry->queue, __entry->reason |
| 1203 | ) |
| 1204 | ); |
Christian Lamparter | f742880 | 2009-07-19 23:21:07 +0200 | [diff] [blame] | 1205 | #endif /* !__MAC80211_DRIVER_TRACE || TRACE_HEADER_MULTI_READ */ |
Johannes Berg | 0a2b8bb | 2009-07-07 13:46:22 +0200 | [diff] [blame] | 1206 | |
| 1207 | #undef TRACE_INCLUDE_PATH |
| 1208 | #define TRACE_INCLUDE_PATH . |
| 1209 | #undef TRACE_INCLUDE_FILE |
| 1210 | #define TRACE_INCLUDE_FILE driver-trace |
| 1211 | #include <trace/define_trace.h> |