summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/radeon/radeon_trace.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2013-10-29 23:14:48 +0400
committerAlex Deucher <alexander.deucher@amd.com>2013-11-01 23:25:52 +0400
commit74d360f66b99231ed7007eb197dd18cda72c961c (patch)
treeda91f27bc3a37b43b2da143462ef8c52dbac7f5e /drivers/gpu/drm/radeon/radeon_trace.h
parentf9eaf9ae782d6480f179850e27e6f4911ac10227 (diff)
downloadlinux-74d360f66b99231ed7007eb197dd18cda72c961c.tar.xz
drm/radeon: add vm_set_page tracepoint
Signed-off-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_trace.h')
-rw-r--r--drivers/gpu/drm/radeon/radeon_trace.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_trace.h b/drivers/gpu/drm/radeon/radeon_trace.h
index f7e367815964..811bca691b36 100644
--- a/drivers/gpu/drm/radeon/radeon_trace.h
+++ b/drivers/gpu/drm/radeon/radeon_trace.h
@@ -47,6 +47,30 @@ TRACE_EVENT(radeon_cs,
__entry->fences)
);
+TRACE_EVENT(radeon_vm_set_page,
+ TP_PROTO(uint64_t pe, uint64_t addr, unsigned count,
+ uint32_t incr, uint32_t flags),
+ TP_ARGS(pe, addr, count, incr, flags),
+ TP_STRUCT__entry(
+ __field(u64, pe)
+ __field(u64, addr)
+ __field(u32, count)
+ __field(u32, incr)
+ __field(u32, flags)
+ ),
+
+ TP_fast_assign(
+ __entry->pe = pe;
+ __entry->addr = addr;
+ __entry->count = count;
+ __entry->incr = incr;
+ __entry->flags = flags;
+ ),
+ TP_printk("pe=%010Lx, addr=%010Lx, incr=%u, flags=%08x, count=%u",
+ __entry->pe, __entry->addr, __entry->incr,
+ __entry->flags, __entry->count)
+);
+
DECLARE_EVENT_CLASS(radeon_fence_request,
TP_PROTO(struct drm_device *dev, u32 seqno),