diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-devtrace.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-devtrace.h | 58 |
1 files changed, 44 insertions, 14 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-devtrace.h b/drivers/net/wireless/iwlwifi/iwl-devtrace.h index f00172cb8a6d..2c84ba95afca 100644 --- a/drivers/net/wireless/iwlwifi/iwl-devtrace.h +++ b/drivers/net/wireless/iwlwifi/iwl-devtrace.h | |||
@@ -137,20 +137,27 @@ TRACE_EVENT(iwlwifi_dev_ucode_wrap_event, | |||
137 | #define TRACE_SYSTEM iwlwifi | 137 | #define TRACE_SYSTEM iwlwifi |
138 | 138 | ||
139 | TRACE_EVENT(iwlwifi_dev_hcmd, | 139 | TRACE_EVENT(iwlwifi_dev_hcmd, |
140 | TP_PROTO(struct iwl_priv *priv, void *hcmd, size_t len, u32 flags), | 140 | TP_PROTO(struct iwl_priv *priv, u32 flags, |
141 | TP_ARGS(priv, hcmd, len, flags), | 141 | const void *hcmd0, size_t len0, |
142 | const void *hcmd1, size_t len1, | ||
143 | const void *hcmd2, size_t len2), | ||
144 | TP_ARGS(priv, flags, hcmd0, len0, hcmd1, len1, hcmd2, len2), | ||
142 | TP_STRUCT__entry( | 145 | TP_STRUCT__entry( |
143 | PRIV_ENTRY | 146 | PRIV_ENTRY |
144 | __dynamic_array(u8, hcmd, len) | 147 | __dynamic_array(u8, hcmd0, len0) |
148 | __dynamic_array(u8, hcmd1, len1) | ||
149 | __dynamic_array(u8, hcmd2, len2) | ||
145 | __field(u32, flags) | 150 | __field(u32, flags) |
146 | ), | 151 | ), |
147 | TP_fast_assign( | 152 | TP_fast_assign( |
148 | PRIV_ASSIGN; | 153 | PRIV_ASSIGN; |
149 | memcpy(__get_dynamic_array(hcmd), hcmd, len); | 154 | memcpy(__get_dynamic_array(hcmd0), hcmd0, len0); |
155 | memcpy(__get_dynamic_array(hcmd1), hcmd1, len1); | ||
156 | memcpy(__get_dynamic_array(hcmd2), hcmd2, len2); | ||
150 | __entry->flags = flags; | 157 | __entry->flags = flags; |
151 | ), | 158 | ), |
152 | TP_printk("[%p] hcmd %#.2x (%ssync)", | 159 | TP_printk("[%p] hcmd %#.2x (%ssync)", |
153 | __entry->priv, ((u8 *)__get_dynamic_array(hcmd))[0], | 160 | __entry->priv, ((u8 *)__get_dynamic_array(hcmd0))[0], |
154 | __entry->flags & CMD_ASYNC ? "a" : "") | 161 | __entry->flags & CMD_ASYNC ? "a" : "") |
155 | ); | 162 | ); |
156 | 163 | ||
@@ -202,15 +209,18 @@ TRACE_EVENT(iwlwifi_dev_tx, | |||
202 | ); | 209 | ); |
203 | 210 | ||
204 | TRACE_EVENT(iwlwifi_dev_ucode_error, | 211 | TRACE_EVENT(iwlwifi_dev_ucode_error, |
205 | TP_PROTO(struct iwl_priv *priv, u32 desc, u32 time, | 212 | TP_PROTO(struct iwl_priv *priv, u32 desc, u32 tsf_low, |
206 | u32 data1, u32 data2, u32 line, u32 blink1, | 213 | u32 data1, u32 data2, u32 line, u32 blink1, |
207 | u32 blink2, u32 ilink1, u32 ilink2), | 214 | u32 blink2, u32 ilink1, u32 ilink2, u32 bcon_time, |
208 | TP_ARGS(priv, desc, time, data1, data2, line, | 215 | u32 gp1, u32 gp2, u32 gp3, u32 ucode_ver, u32 hw_ver, |
209 | blink1, blink2, ilink1, ilink2), | 216 | u32 brd_ver), |
217 | TP_ARGS(priv, desc, tsf_low, data1, data2, line, | ||
218 | blink1, blink2, ilink1, ilink2, bcon_time, gp1, gp2, | ||
219 | gp3, ucode_ver, hw_ver, brd_ver), | ||
210 | TP_STRUCT__entry( | 220 | TP_STRUCT__entry( |
211 | PRIV_ENTRY | 221 | PRIV_ENTRY |
212 | __field(u32, desc) | 222 | __field(u32, desc) |
213 | __field(u32, time) | 223 | __field(u32, tsf_low) |
214 | __field(u32, data1) | 224 | __field(u32, data1) |
215 | __field(u32, data2) | 225 | __field(u32, data2) |
216 | __field(u32, line) | 226 | __field(u32, line) |
@@ -218,11 +228,18 @@ TRACE_EVENT(iwlwifi_dev_ucode_error, | |||
218 | __field(u32, blink2) | 228 | __field(u32, blink2) |
219 | __field(u32, ilink1) | 229 | __field(u32, ilink1) |
220 | __field(u32, ilink2) | 230 | __field(u32, ilink2) |
231 | __field(u32, bcon_time) | ||
232 | __field(u32, gp1) | ||
233 | __field(u32, gp2) | ||
234 | __field(u32, gp3) | ||
235 | __field(u32, ucode_ver) | ||
236 | __field(u32, hw_ver) | ||
237 | __field(u32, brd_ver) | ||
221 | ), | 238 | ), |
222 | TP_fast_assign( | 239 | TP_fast_assign( |
223 | PRIV_ASSIGN; | 240 | PRIV_ASSIGN; |
224 | __entry->desc = desc; | 241 | __entry->desc = desc; |
225 | __entry->time = time; | 242 | __entry->tsf_low = tsf_low; |
226 | __entry->data1 = data1; | 243 | __entry->data1 = data1; |
227 | __entry->data2 = data2; | 244 | __entry->data2 = data2; |
228 | __entry->line = line; | 245 | __entry->line = line; |
@@ -230,12 +247,25 @@ TRACE_EVENT(iwlwifi_dev_ucode_error, | |||
230 | __entry->blink2 = blink2; | 247 | __entry->blink2 = blink2; |
231 | __entry->ilink1 = ilink1; | 248 | __entry->ilink1 = ilink1; |
232 | __entry->ilink2 = ilink2; | 249 | __entry->ilink2 = ilink2; |
250 | __entry->bcon_time = bcon_time; | ||
251 | __entry->gp1 = gp1; | ||
252 | __entry->gp2 = gp2; | ||
253 | __entry->gp3 = gp3; | ||
254 | __entry->ucode_ver = ucode_ver; | ||
255 | __entry->hw_ver = hw_ver; | ||
256 | __entry->brd_ver = brd_ver; | ||
233 | ), | 257 | ), |
234 | TP_printk("[%p] #%02d %010u data 0x%08X 0x%08X line %u, " | 258 | TP_printk("[%p] #%02d %010u data 0x%08X 0x%08X line %u, " |
235 | "blink 0x%05X 0x%05X ilink 0x%05X 0x%05X", | 259 | "blink 0x%05X 0x%05X ilink 0x%05X 0x%05X " |
236 | __entry->priv, __entry->desc, __entry->time, __entry->data1, | 260 | "bcon_tm %010u gp 0x%08X 0x%08X 0x%08X uCode 0x%08X " |
261 | "hw 0x%08X brd 0x%08X", | ||
262 | __entry->priv, __entry->desc, __entry->tsf_low, | ||
263 | __entry->data1, | ||
237 | __entry->data2, __entry->line, __entry->blink1, | 264 | __entry->data2, __entry->line, __entry->blink1, |
238 | __entry->blink2, __entry->ilink1, __entry->ilink2) | 265 | __entry->blink2, __entry->ilink1, __entry->ilink2, |
266 | __entry->bcon_time, __entry->gp1, __entry->gp2, | ||
267 | __entry->gp3, __entry->ucode_ver, __entry->hw_ver, | ||
268 | __entry->brd_ver) | ||
239 | ); | 269 | ); |
240 | 270 | ||
241 | TRACE_EVENT(iwlwifi_dev_ucode_event, | 271 | TRACE_EVENT(iwlwifi_dev_ucode_event, |