1 #if !defined(_I915_TRACE_H_) || defined(TRACE_HEADER_MULTI_READ)
5 #include <linux/types.h>
13 #define TRACE_SYSTEM i915
14 #define TRACE_SYSTEM_STRING __stringify(TRACE_SYSTEM)
15 #define TRACE_INCLUDE_FILE i915_trace
54 TP_printk(
"obj=%p, offset=%08x size=%x%s",
56 __entry->mappable ?
", mappable" :
"")
81 TP_ARGS(obj, old_read, old_write),
91 __entry->read_domains = obj->
base.read_domains | (old_read << 16);
92 __entry->write_domain = obj->
base.write_domain | (old_write << 16);
95 TP_printk(
"obj=%p, read=%02x=>%02x, write=%02x=>%02x",
100 __entry->write_domain & 0xffff)
145 TP_ARGS(obj, index, gtt, write),
165 __entry->write ?
", writable" :
"")
195 TP_ARGS(dev, size, align, mappable),
205 __entry->dev = dev->primary->index;
211 TP_printk(
"dev=%d, size=%d, align=%d %s",
213 __entry->mappable ?
", mappable" :
"")
225 __entry->dev = dev->primary->index;
245 i915_trace_irq_get(ring, seqno);
254 TP_ARGS(ring, invalidate, flush),
266 __entry->invalidate = invalidate;
270 TP_printk(
"dev=%u, ring=%x, invalidate=%04x, flush=%04x",
300 DEFINE_EVENT(i915_gem_request, i915_gem_request_complete,
331 __entry->blocking = mutex_is_locked(&ring->
dev->struct_mutex);
334 TP_printk(
"dev=%u, ring=%u, seqno=%u, blocking=%s",
336 __entry->blocking ?
"yes (NB)" :
"no")
339 DEFINE_EVENT(i915_gem_request, i915_gem_request_wait_end,
426 TP_printk(
"%s reg=0x%x, len=%d, val=(0x%x, 0x%x)",
427 __entry->write ?
"write" :
"read",
451 #undef TRACE_INCLUDE_PATH
452 #define TRACE_INCLUDE_PATH .