Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 1 | #if !defined(_I915_TRACE_H_) || defined(TRACE_HEADER_MULTI_READ) |
| 2 | #define _I915_TRACE_H_ |
| 3 | |
| 4 | #include <linux/stringify.h> |
| 5 | #include <linux/types.h> |
| 6 | #include <linux/tracepoint.h> |
| 7 | |
| 8 | #include <drm/drmP.h> |
Chris Wilson | 05394f3 | 2010-11-08 19:18:58 +0000 | [diff] [blame^] | 9 | #include "i915_drv.h" |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 10 | |
| 11 | #undef TRACE_SYSTEM |
| 12 | #define TRACE_SYSTEM i915 |
| 13 | #define TRACE_SYSTEM_STRING __stringify(TRACE_SYSTEM) |
| 14 | #define TRACE_INCLUDE_FILE i915_trace |
| 15 | |
| 16 | /* object tracking */ |
| 17 | |
| 18 | TRACE_EVENT(i915_gem_object_create, |
| 19 | |
Chris Wilson | 05394f3 | 2010-11-08 19:18:58 +0000 | [diff] [blame^] | 20 | TP_PROTO(struct drm_i915_gem_object *obj), |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 21 | |
| 22 | TP_ARGS(obj), |
| 23 | |
| 24 | TP_STRUCT__entry( |
Chris Wilson | 05394f3 | 2010-11-08 19:18:58 +0000 | [diff] [blame^] | 25 | __field(struct drm_i915_gem_object *, obj) |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 26 | __field(u32, size) |
| 27 | ), |
| 28 | |
| 29 | TP_fast_assign( |
| 30 | __entry->obj = obj; |
Chris Wilson | 05394f3 | 2010-11-08 19:18:58 +0000 | [diff] [blame^] | 31 | __entry->size = obj->base.size; |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 32 | ), |
| 33 | |
| 34 | TP_printk("obj=%p, size=%u", __entry->obj, __entry->size) |
| 35 | ); |
| 36 | |
| 37 | TRACE_EVENT(i915_gem_object_bind, |
| 38 | |
Chris Wilson | 05394f3 | 2010-11-08 19:18:58 +0000 | [diff] [blame^] | 39 | TP_PROTO(struct drm_i915_gem_object *obj, u32 gtt_offset, bool mappable), |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 40 | |
Daniel Vetter | ec57d26 | 2010-09-30 23:42:15 +0200 | [diff] [blame] | 41 | TP_ARGS(obj, gtt_offset, mappable), |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 42 | |
| 43 | TP_STRUCT__entry( |
Chris Wilson | 05394f3 | 2010-11-08 19:18:58 +0000 | [diff] [blame^] | 44 | __field(struct drm_i915_gem_object *, obj) |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 45 | __field(u32, gtt_offset) |
Daniel Vetter | ec57d26 | 2010-09-30 23:42:15 +0200 | [diff] [blame] | 46 | __field(bool, mappable) |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 47 | ), |
| 48 | |
| 49 | TP_fast_assign( |
| 50 | __entry->obj = obj; |
| 51 | __entry->gtt_offset = gtt_offset; |
Daniel Vetter | ec57d26 | 2010-09-30 23:42:15 +0200 | [diff] [blame] | 52 | __entry->mappable = mappable; |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 53 | ), |
| 54 | |
Daniel Vetter | ec57d26 | 2010-09-30 23:42:15 +0200 | [diff] [blame] | 55 | TP_printk("obj=%p, gtt_offset=%08x%s", |
| 56 | __entry->obj, __entry->gtt_offset, |
| 57 | __entry->mappable ? ", mappable" : "") |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 58 | ); |
| 59 | |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 60 | TRACE_EVENT(i915_gem_object_change_domain, |
| 61 | |
Chris Wilson | 05394f3 | 2010-11-08 19:18:58 +0000 | [diff] [blame^] | 62 | TP_PROTO(struct drm_i915_gem_object *obj, uint32_t old_read_domains, uint32_t old_write_domain), |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 63 | |
| 64 | TP_ARGS(obj, old_read_domains, old_write_domain), |
| 65 | |
| 66 | TP_STRUCT__entry( |
Chris Wilson | 05394f3 | 2010-11-08 19:18:58 +0000 | [diff] [blame^] | 67 | __field(struct drm_i915_gem_object *, obj) |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 68 | __field(u32, read_domains) |
| 69 | __field(u32, write_domain) |
| 70 | ), |
| 71 | |
| 72 | TP_fast_assign( |
| 73 | __entry->obj = obj; |
Chris Wilson | 05394f3 | 2010-11-08 19:18:58 +0000 | [diff] [blame^] | 74 | __entry->read_domains = obj->base.read_domains | (old_read_domains << 16); |
| 75 | __entry->write_domain = obj->base.write_domain | (old_write_domain << 16); |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 76 | ), |
| 77 | |
| 78 | TP_printk("obj=%p, read=%04x, write=%04x", |
| 79 | __entry->obj, |
| 80 | __entry->read_domains, __entry->write_domain) |
| 81 | ); |
| 82 | |
| 83 | TRACE_EVENT(i915_gem_object_get_fence, |
| 84 | |
Chris Wilson | 05394f3 | 2010-11-08 19:18:58 +0000 | [diff] [blame^] | 85 | TP_PROTO(struct drm_i915_gem_object *obj, int fence, int tiling_mode), |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 86 | |
| 87 | TP_ARGS(obj, fence, tiling_mode), |
| 88 | |
| 89 | TP_STRUCT__entry( |
Chris Wilson | 05394f3 | 2010-11-08 19:18:58 +0000 | [diff] [blame^] | 90 | __field(struct drm_i915_gem_object *, obj) |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 91 | __field(int, fence) |
| 92 | __field(int, tiling_mode) |
| 93 | ), |
| 94 | |
| 95 | TP_fast_assign( |
| 96 | __entry->obj = obj; |
| 97 | __entry->fence = fence; |
| 98 | __entry->tiling_mode = tiling_mode; |
| 99 | ), |
| 100 | |
| 101 | TP_printk("obj=%p, fence=%d, tiling=%d", |
| 102 | __entry->obj, __entry->fence, __entry->tiling_mode) |
| 103 | ); |
| 104 | |
Li Zefan | 903cf20 | 2010-03-11 16:41:45 +0800 | [diff] [blame] | 105 | DECLARE_EVENT_CLASS(i915_gem_object, |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 106 | |
Chris Wilson | 05394f3 | 2010-11-08 19:18:58 +0000 | [diff] [blame^] | 107 | TP_PROTO(struct drm_i915_gem_object *obj), |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 108 | |
| 109 | TP_ARGS(obj), |
| 110 | |
| 111 | TP_STRUCT__entry( |
Chris Wilson | 05394f3 | 2010-11-08 19:18:58 +0000 | [diff] [blame^] | 112 | __field(struct drm_i915_gem_object *, obj) |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 113 | ), |
| 114 | |
| 115 | TP_fast_assign( |
| 116 | __entry->obj = obj; |
| 117 | ), |
| 118 | |
| 119 | TP_printk("obj=%p", __entry->obj) |
| 120 | ); |
| 121 | |
Li Zefan | f41275e | 2010-05-24 16:25:44 +0800 | [diff] [blame] | 122 | DEFINE_EVENT(i915_gem_object, i915_gem_object_clflush, |
| 123 | |
Chris Wilson | 05394f3 | 2010-11-08 19:18:58 +0000 | [diff] [blame^] | 124 | TP_PROTO(struct drm_i915_gem_object *obj), |
Li Zefan | f41275e | 2010-05-24 16:25:44 +0800 | [diff] [blame] | 125 | |
| 126 | TP_ARGS(obj) |
| 127 | ); |
| 128 | |
Li Zefan | 903cf20 | 2010-03-11 16:41:45 +0800 | [diff] [blame] | 129 | DEFINE_EVENT(i915_gem_object, i915_gem_object_unbind, |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 130 | |
Chris Wilson | 05394f3 | 2010-11-08 19:18:58 +0000 | [diff] [blame^] | 131 | TP_PROTO(struct drm_i915_gem_object *obj), |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 132 | |
Li Zefan | 903cf20 | 2010-03-11 16:41:45 +0800 | [diff] [blame] | 133 | TP_ARGS(obj) |
| 134 | ); |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 135 | |
Li Zefan | 903cf20 | 2010-03-11 16:41:45 +0800 | [diff] [blame] | 136 | DEFINE_EVENT(i915_gem_object, i915_gem_object_destroy, |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 137 | |
Chris Wilson | 05394f3 | 2010-11-08 19:18:58 +0000 | [diff] [blame^] | 138 | TP_PROTO(struct drm_i915_gem_object *obj), |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 139 | |
Li Zefan | 903cf20 | 2010-03-11 16:41:45 +0800 | [diff] [blame] | 140 | TP_ARGS(obj) |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 141 | ); |
| 142 | |
| 143 | /* batch tracing */ |
| 144 | |
| 145 | TRACE_EVENT(i915_gem_request_submit, |
| 146 | |
| 147 | TP_PROTO(struct drm_device *dev, u32 seqno), |
| 148 | |
| 149 | TP_ARGS(dev, seqno), |
| 150 | |
| 151 | TP_STRUCT__entry( |
Chris Wilson | 4f49be5 | 2009-09-24 00:23:33 +0100 | [diff] [blame] | 152 | __field(u32, dev) |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 153 | __field(u32, seqno) |
| 154 | ), |
| 155 | |
| 156 | TP_fast_assign( |
Chris Wilson | 4f49be5 | 2009-09-24 00:23:33 +0100 | [diff] [blame] | 157 | __entry->dev = dev->primary->index; |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 158 | __entry->seqno = seqno; |
Chris Wilson | 9d34e5d | 2009-09-24 05:26:06 +0100 | [diff] [blame] | 159 | i915_trace_irq_get(dev, seqno); |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 160 | ), |
| 161 | |
Chris Wilson | 4f49be5 | 2009-09-24 00:23:33 +0100 | [diff] [blame] | 162 | TP_printk("dev=%u, seqno=%u", __entry->dev, __entry->seqno) |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 163 | ); |
| 164 | |
| 165 | TRACE_EVENT(i915_gem_request_flush, |
| 166 | |
| 167 | TP_PROTO(struct drm_device *dev, u32 seqno, |
| 168 | u32 flush_domains, u32 invalidate_domains), |
| 169 | |
| 170 | TP_ARGS(dev, seqno, flush_domains, invalidate_domains), |
| 171 | |
| 172 | TP_STRUCT__entry( |
Chris Wilson | 4f49be5 | 2009-09-24 00:23:33 +0100 | [diff] [blame] | 173 | __field(u32, dev) |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 174 | __field(u32, seqno) |
| 175 | __field(u32, flush_domains) |
| 176 | __field(u32, invalidate_domains) |
| 177 | ), |
| 178 | |
| 179 | TP_fast_assign( |
Chris Wilson | 4f49be5 | 2009-09-24 00:23:33 +0100 | [diff] [blame] | 180 | __entry->dev = dev->primary->index; |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 181 | __entry->seqno = seqno; |
| 182 | __entry->flush_domains = flush_domains; |
| 183 | __entry->invalidate_domains = invalidate_domains; |
| 184 | ), |
| 185 | |
Chris Wilson | 4f49be5 | 2009-09-24 00:23:33 +0100 | [diff] [blame] | 186 | TP_printk("dev=%u, seqno=%u, flush=%04x, invalidate=%04x", |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 187 | __entry->dev, __entry->seqno, |
| 188 | __entry->flush_domains, __entry->invalidate_domains) |
| 189 | ); |
| 190 | |
Li Zefan | 903cf20 | 2010-03-11 16:41:45 +0800 | [diff] [blame] | 191 | DECLARE_EVENT_CLASS(i915_gem_request, |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 192 | |
| 193 | TP_PROTO(struct drm_device *dev, u32 seqno), |
| 194 | |
| 195 | TP_ARGS(dev, seqno), |
| 196 | |
| 197 | TP_STRUCT__entry( |
Chris Wilson | 4f49be5 | 2009-09-24 00:23:33 +0100 | [diff] [blame] | 198 | __field(u32, dev) |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 199 | __field(u32, seqno) |
| 200 | ), |
| 201 | |
| 202 | TP_fast_assign( |
Chris Wilson | 4f49be5 | 2009-09-24 00:23:33 +0100 | [diff] [blame] | 203 | __entry->dev = dev->primary->index; |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 204 | __entry->seqno = seqno; |
| 205 | ), |
| 206 | |
Chris Wilson | 4f49be5 | 2009-09-24 00:23:33 +0100 | [diff] [blame] | 207 | TP_printk("dev=%u, seqno=%u", __entry->dev, __entry->seqno) |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 208 | ); |
| 209 | |
Li Zefan | 903cf20 | 2010-03-11 16:41:45 +0800 | [diff] [blame] | 210 | DEFINE_EVENT(i915_gem_request, i915_gem_request_complete, |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 211 | |
| 212 | TP_PROTO(struct drm_device *dev, u32 seqno), |
| 213 | |
Li Zefan | 903cf20 | 2010-03-11 16:41:45 +0800 | [diff] [blame] | 214 | TP_ARGS(dev, seqno) |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 215 | ); |
| 216 | |
Li Zefan | 903cf20 | 2010-03-11 16:41:45 +0800 | [diff] [blame] | 217 | DEFINE_EVENT(i915_gem_request, i915_gem_request_retire, |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 218 | |
| 219 | TP_PROTO(struct drm_device *dev, u32 seqno), |
| 220 | |
Li Zefan | 903cf20 | 2010-03-11 16:41:45 +0800 | [diff] [blame] | 221 | TP_ARGS(dev, seqno) |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 222 | ); |
| 223 | |
Li Zefan | 903cf20 | 2010-03-11 16:41:45 +0800 | [diff] [blame] | 224 | DEFINE_EVENT(i915_gem_request, i915_gem_request_wait_begin, |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 225 | |
| 226 | TP_PROTO(struct drm_device *dev, u32 seqno), |
| 227 | |
Li Zefan | 903cf20 | 2010-03-11 16:41:45 +0800 | [diff] [blame] | 228 | TP_ARGS(dev, seqno) |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 229 | ); |
| 230 | |
Li Zefan | 903cf20 | 2010-03-11 16:41:45 +0800 | [diff] [blame] | 231 | DEFINE_EVENT(i915_gem_request, i915_gem_request_wait_end, |
| 232 | |
| 233 | TP_PROTO(struct drm_device *dev, u32 seqno), |
| 234 | |
| 235 | TP_ARGS(dev, seqno) |
| 236 | ); |
| 237 | |
| 238 | DECLARE_EVENT_CLASS(i915_ring, |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 239 | |
| 240 | TP_PROTO(struct drm_device *dev), |
| 241 | |
| 242 | TP_ARGS(dev), |
| 243 | |
| 244 | TP_STRUCT__entry( |
Chris Wilson | 4f49be5 | 2009-09-24 00:23:33 +0100 | [diff] [blame] | 245 | __field(u32, dev) |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 246 | ), |
| 247 | |
| 248 | TP_fast_assign( |
Chris Wilson | 4f49be5 | 2009-09-24 00:23:33 +0100 | [diff] [blame] | 249 | __entry->dev = dev->primary->index; |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 250 | ), |
| 251 | |
Chris Wilson | 4f49be5 | 2009-09-24 00:23:33 +0100 | [diff] [blame] | 252 | TP_printk("dev=%u", __entry->dev) |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 253 | ); |
| 254 | |
Li Zefan | 903cf20 | 2010-03-11 16:41:45 +0800 | [diff] [blame] | 255 | DEFINE_EVENT(i915_ring, i915_ring_wait_begin, |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 256 | |
| 257 | TP_PROTO(struct drm_device *dev), |
| 258 | |
Li Zefan | 903cf20 | 2010-03-11 16:41:45 +0800 | [diff] [blame] | 259 | TP_ARGS(dev) |
| 260 | ); |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 261 | |
Li Zefan | 903cf20 | 2010-03-11 16:41:45 +0800 | [diff] [blame] | 262 | DEFINE_EVENT(i915_ring, i915_ring_wait_end, |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 263 | |
Li Zefan | 903cf20 | 2010-03-11 16:41:45 +0800 | [diff] [blame] | 264 | TP_PROTO(struct drm_device *dev), |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 265 | |
Li Zefan | 903cf20 | 2010-03-11 16:41:45 +0800 | [diff] [blame] | 266 | TP_ARGS(dev) |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 267 | ); |
| 268 | |
Jesse Barnes | e5510fa | 2010-07-01 16:48:37 -0700 | [diff] [blame] | 269 | TRACE_EVENT(i915_flip_request, |
Chris Wilson | 05394f3 | 2010-11-08 19:18:58 +0000 | [diff] [blame^] | 270 | TP_PROTO(int plane, struct drm_i915_gem_object *obj), |
Jesse Barnes | e5510fa | 2010-07-01 16:48:37 -0700 | [diff] [blame] | 271 | |
| 272 | TP_ARGS(plane, obj), |
| 273 | |
| 274 | TP_STRUCT__entry( |
| 275 | __field(int, plane) |
Chris Wilson | 05394f3 | 2010-11-08 19:18:58 +0000 | [diff] [blame^] | 276 | __field(struct drm_i915_gem_object *, obj) |
Jesse Barnes | e5510fa | 2010-07-01 16:48:37 -0700 | [diff] [blame] | 277 | ), |
| 278 | |
| 279 | TP_fast_assign( |
| 280 | __entry->plane = plane; |
| 281 | __entry->obj = obj; |
| 282 | ), |
| 283 | |
| 284 | TP_printk("plane=%d, obj=%p", __entry->plane, __entry->obj) |
| 285 | ); |
| 286 | |
| 287 | TRACE_EVENT(i915_flip_complete, |
Chris Wilson | 05394f3 | 2010-11-08 19:18:58 +0000 | [diff] [blame^] | 288 | TP_PROTO(int plane, struct drm_i915_gem_object *obj), |
Jesse Barnes | e5510fa | 2010-07-01 16:48:37 -0700 | [diff] [blame] | 289 | |
| 290 | TP_ARGS(plane, obj), |
| 291 | |
| 292 | TP_STRUCT__entry( |
| 293 | __field(int, plane) |
Chris Wilson | 05394f3 | 2010-11-08 19:18:58 +0000 | [diff] [blame^] | 294 | __field(struct drm_i915_gem_object *, obj) |
Jesse Barnes | e5510fa | 2010-07-01 16:48:37 -0700 | [diff] [blame] | 295 | ), |
| 296 | |
| 297 | TP_fast_assign( |
| 298 | __entry->plane = plane; |
| 299 | __entry->obj = obj; |
| 300 | ), |
| 301 | |
| 302 | TP_printk("plane=%d, obj=%p", __entry->plane, __entry->obj) |
| 303 | ); |
| 304 | |
Yuanhan Liu | ba4f01a | 2010-11-08 17:09:41 +0800 | [diff] [blame] | 305 | TRACE_EVENT(i915_reg_rw, |
| 306 | TP_PROTO(int cmd, uint32_t reg, uint64_t val, int len), |
| 307 | |
| 308 | TP_ARGS(cmd, reg, val, len), |
| 309 | |
| 310 | TP_STRUCT__entry( |
| 311 | __field(int, cmd) |
| 312 | __field(uint32_t, reg) |
| 313 | __field(uint64_t, val) |
| 314 | __field(int, len) |
| 315 | ), |
| 316 | |
| 317 | TP_fast_assign( |
| 318 | __entry->cmd = cmd; |
| 319 | __entry->reg = reg; |
| 320 | __entry->val = (uint64_t)val; |
| 321 | __entry->len = len; |
| 322 | ), |
| 323 | |
| 324 | TP_printk("cmd=%c, reg=0x%x, val=0x%llx, len=%d", |
| 325 | __entry->cmd, __entry->reg, __entry->val, __entry->len) |
| 326 | ); |
| 327 | |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 328 | #endif /* _I915_TRACE_H_ */ |
| 329 | |
| 330 | /* This part must be outside protection */ |
| 331 | #undef TRACE_INCLUDE_PATH |
Peter Clifton | a7c5427 | 2010-05-03 13:24:41 +0100 | [diff] [blame] | 332 | #define TRACE_INCLUDE_PATH . |
Chris Wilson | 1c5d22f | 2009-08-25 11:15:50 +0100 | [diff] [blame] | 333 | #include <trace/define_trace.h> |