diff options
Diffstat (limited to 'drivers/gpu/drm/i915/i915_trace.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_trace.h | 49 |
1 files changed, 25 insertions, 24 deletions
diff --git a/drivers/gpu/drm/i915/i915_trace.h b/drivers/gpu/drm/i915/i915_trace.h index 5567a40816f..01840d9bc38 100644 --- a/drivers/gpu/drm/i915/i915_trace.h +++ b/drivers/gpu/drm/i915/i915_trace.h | |||
@@ -158,16 +158,17 @@ TRACE_EVENT(i915_gem_request_submit, | |||
158 | TP_ARGS(dev, seqno), | 158 | TP_ARGS(dev, seqno), |
159 | 159 | ||
160 | TP_STRUCT__entry( | 160 | TP_STRUCT__entry( |
161 | __field(struct drm_device *, dev) | 161 | __field(u32, dev) |
162 | __field(u32, seqno) | 162 | __field(u32, seqno) |
163 | ), | 163 | ), |
164 | 164 | ||
165 | TP_fast_assign( | 165 | TP_fast_assign( |
166 | __entry->dev = dev; | 166 | __entry->dev = dev->primary->index; |
167 | __entry->seqno = seqno; | 167 | __entry->seqno = seqno; |
168 | i915_trace_irq_get(dev, seqno); | ||
168 | ), | 169 | ), |
169 | 170 | ||
170 | TP_printk("dev=%p, seqno=%u", __entry->dev, __entry->seqno) | 171 | TP_printk("dev=%u, seqno=%u", __entry->dev, __entry->seqno) |
171 | ); | 172 | ); |
172 | 173 | ||
173 | TRACE_EVENT(i915_gem_request_flush, | 174 | TRACE_EVENT(i915_gem_request_flush, |
@@ -178,20 +179,20 @@ TRACE_EVENT(i915_gem_request_flush, | |||
178 | TP_ARGS(dev, seqno, flush_domains, invalidate_domains), | 179 | TP_ARGS(dev, seqno, flush_domains, invalidate_domains), |
179 | 180 | ||
180 | TP_STRUCT__entry( | 181 | TP_STRUCT__entry( |
181 | __field(struct drm_device *, dev) | 182 | __field(u32, dev) |
182 | __field(u32, seqno) | 183 | __field(u32, seqno) |
183 | __field(u32, flush_domains) | 184 | __field(u32, flush_domains) |
184 | __field(u32, invalidate_domains) | 185 | __field(u32, invalidate_domains) |
185 | ), | 186 | ), |
186 | 187 | ||
187 | TP_fast_assign( | 188 | TP_fast_assign( |
188 | __entry->dev = dev; | 189 | __entry->dev = dev->primary->index; |
189 | __entry->seqno = seqno; | 190 | __entry->seqno = seqno; |
190 | __entry->flush_domains = flush_domains; | 191 | __entry->flush_domains = flush_domains; |
191 | __entry->invalidate_domains = invalidate_domains; | 192 | __entry->invalidate_domains = invalidate_domains; |
192 | ), | 193 | ), |
193 | 194 | ||
194 | TP_printk("dev=%p, seqno=%u, flush=%04x, invalidate=%04x", | 195 | TP_printk("dev=%u, seqno=%u, flush=%04x, invalidate=%04x", |
195 | __entry->dev, __entry->seqno, | 196 | __entry->dev, __entry->seqno, |
196 | __entry->flush_domains, __entry->invalidate_domains) | 197 | __entry->flush_domains, __entry->invalidate_domains) |
197 | ); | 198 | ); |
@@ -204,16 +205,16 @@ TRACE_EVENT(i915_gem_request_complete, | |||
204 | TP_ARGS(dev, seqno), | 205 | TP_ARGS(dev, seqno), |
205 | 206 | ||
206 | TP_STRUCT__entry( | 207 | TP_STRUCT__entry( |
207 | __field(struct drm_device *, dev) | 208 | __field(u32, dev) |
208 | __field(u32, seqno) | 209 | __field(u32, seqno) |
209 | ), | 210 | ), |
210 | 211 | ||
211 | TP_fast_assign( | 212 | TP_fast_assign( |
212 | __entry->dev = dev; | 213 | __entry->dev = dev->primary->index; |
213 | __entry->seqno = seqno; | 214 | __entry->seqno = seqno; |
214 | ), | 215 | ), |
215 | 216 | ||
216 | TP_printk("dev=%p, seqno=%u", __entry->dev, __entry->seqno) | 217 | TP_printk("dev=%u, seqno=%u", __entry->dev, __entry->seqno) |
217 | ); | 218 | ); |
218 | 219 | ||
219 | TRACE_EVENT(i915_gem_request_retire, | 220 | TRACE_EVENT(i915_gem_request_retire, |
@@ -223,16 +224,16 @@ TRACE_EVENT(i915_gem_request_retire, | |||
223 | TP_ARGS(dev, seqno), | 224 | TP_ARGS(dev, seqno), |
224 | 225 | ||
225 | TP_STRUCT__entry( | 226 | TP_STRUCT__entry( |
226 | __field(struct drm_device *, dev) | 227 | __field(u32, dev) |
227 | __field(u32, seqno) | 228 | __field(u32, seqno) |
228 | ), | 229 | ), |
229 | 230 | ||
230 | TP_fast_assign( | 231 | TP_fast_assign( |
231 | __entry->dev = dev; | 232 | __entry->dev = dev->primary->index; |
232 | __entry->seqno = seqno; | 233 | __entry->seqno = seqno; |
233 | ), | 234 | ), |
234 | 235 | ||
235 | TP_printk("dev=%p, seqno=%u", __entry->dev, __entry->seqno) | 236 | TP_printk("dev=%u, seqno=%u", __entry->dev, __entry->seqno) |
236 | ); | 237 | ); |
237 | 238 | ||
238 | TRACE_EVENT(i915_gem_request_wait_begin, | 239 | TRACE_EVENT(i915_gem_request_wait_begin, |
@@ -242,16 +243,16 @@ TRACE_EVENT(i915_gem_request_wait_begin, | |||
242 | TP_ARGS(dev, seqno), | 243 | TP_ARGS(dev, seqno), |
243 | 244 | ||
244 | TP_STRUCT__entry( | 245 | TP_STRUCT__entry( |
245 | __field(struct drm_device *, dev) | 246 | __field(u32, dev) |
246 | __field(u32, seqno) | 247 | __field(u32, seqno) |
247 | ), | 248 | ), |
248 | 249 | ||
249 | TP_fast_assign( | 250 | TP_fast_assign( |
250 | __entry->dev = dev; | 251 | __entry->dev = dev->primary->index; |
251 | __entry->seqno = seqno; | 252 | __entry->seqno = seqno; |
252 | ), | 253 | ), |
253 | 254 | ||
254 | TP_printk("dev=%p, seqno=%u", __entry->dev, __entry->seqno) | 255 | TP_printk("dev=%u, seqno=%u", __entry->dev, __entry->seqno) |
255 | ); | 256 | ); |
256 | 257 | ||
257 | TRACE_EVENT(i915_gem_request_wait_end, | 258 | TRACE_EVENT(i915_gem_request_wait_end, |
@@ -261,16 +262,16 @@ TRACE_EVENT(i915_gem_request_wait_end, | |||
261 | TP_ARGS(dev, seqno), | 262 | TP_ARGS(dev, seqno), |
262 | 263 | ||
263 | TP_STRUCT__entry( | 264 | TP_STRUCT__entry( |
264 | __field(struct drm_device *, dev) | 265 | __field(u32, dev) |
265 | __field(u32, seqno) | 266 | __field(u32, seqno) |
266 | ), | 267 | ), |
267 | 268 | ||
268 | TP_fast_assign( | 269 | TP_fast_assign( |
269 | __entry->dev = dev; | 270 | __entry->dev = dev->primary->index; |
270 | __entry->seqno = seqno; | 271 | __entry->seqno = seqno; |
271 | ), | 272 | ), |
272 | 273 | ||
273 | TP_printk("dev=%p, seqno=%u", __entry->dev, __entry->seqno) | 274 | TP_printk("dev=%u, seqno=%u", __entry->dev, __entry->seqno) |
274 | ); | 275 | ); |
275 | 276 | ||
276 | TRACE_EVENT(i915_ring_wait_begin, | 277 | TRACE_EVENT(i915_ring_wait_begin, |
@@ -280,14 +281,14 @@ TRACE_EVENT(i915_ring_wait_begin, | |||
280 | TP_ARGS(dev), | 281 | TP_ARGS(dev), |
281 | 282 | ||
282 | TP_STRUCT__entry( | 283 | TP_STRUCT__entry( |
283 | __field(struct drm_device *, dev) | 284 | __field(u32, dev) |
284 | ), | 285 | ), |
285 | 286 | ||
286 | TP_fast_assign( | 287 | TP_fast_assign( |
287 | __entry->dev = dev; | 288 | __entry->dev = dev->primary->index; |
288 | ), | 289 | ), |
289 | 290 | ||
290 | TP_printk("dev=%p", __entry->dev) | 291 | TP_printk("dev=%u", __entry->dev) |
291 | ); | 292 | ); |
292 | 293 | ||
293 | TRACE_EVENT(i915_ring_wait_end, | 294 | TRACE_EVENT(i915_ring_wait_end, |
@@ -297,14 +298,14 @@ TRACE_EVENT(i915_ring_wait_end, | |||
297 | TP_ARGS(dev), | 298 | TP_ARGS(dev), |
298 | 299 | ||
299 | TP_STRUCT__entry( | 300 | TP_STRUCT__entry( |
300 | __field(struct drm_device *, dev) | 301 | __field(u32, dev) |
301 | ), | 302 | ), |
302 | 303 | ||
303 | TP_fast_assign( | 304 | TP_fast_assign( |
304 | __entry->dev = dev; | 305 | __entry->dev = dev->primary->index; |
305 | ), | 306 | ), |
306 | 307 | ||
307 | TP_printk("dev=%p", __entry->dev) | 308 | TP_printk("dev=%u", __entry->dev) |
308 | ); | 309 | ); |
309 | 310 | ||
310 | #endif /* _I915_TRACE_H_ */ | 311 | #endif /* _I915_TRACE_H_ */ |