[PATCH v2] drm/i915: Do not dereference pointers from ring buffer in evict event

2014-03-18 Thread Steven Rostedt
The TP_printk() should never dereference any pointers, because the ring buffer can be read at some unknown time in the future. If a device no longer exists, it can cause a kernel oops. This also makes this event useless when saving the ring buffer in userspaces tools such as perf and trace-cmd.

[PATCH v2] drm/i915: Do not dereference pointers from ring buffer in evict event

2014-03-18 Thread Steven Rostedt
The TP_printk() should never dereference any pointers, because the ring buffer can be read at some unknown time in the future. If a device no longer exists, it can cause a kernel oops. This also makes this event useless when saving the ring buffer in userspaces tools such as perf and trace-cmd.