summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon_trace.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2013-11-25 15:42:11 +0100
committerAlex Deucher <alexander.deucher@amd.com>2013-12-02 16:40:44 -0500
commit9c57a6bd3ea4a9870a7ce2fd961da6ef4986bbc1 (patch)
treec1ad8d551df6ec88498299ba9707a2b3f6c82bf0 /drivers/gpu/drm/radeon/radeon_trace.h
parent84d597b74b58dd52621abf5f052a81370ace1816 (diff)
downloadop-kernel-dev-9c57a6bd3ea4a9870a7ce2fd961da6ef4986bbc1.zip
op-kernel-dev-9c57a6bd3ea4a9870a7ce2fd961da6ef4986bbc1.tar.gz
drm/radeon: add radeon_vm_bo_update trace point
Also rename the function to better reflect what it is doing. agd5f: fix argument size warning 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.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_trace.h b/drivers/gpu/drm/radeon/radeon_trace.h
index 8c13aec..0473257 100644
--- a/drivers/gpu/drm/radeon/radeon_trace.h
+++ b/drivers/gpu/drm/radeon/radeon_trace.h
@@ -62,6 +62,24 @@ TRACE_EVENT(radeon_vm_grab_id,
TP_printk("vmid=%u, ring=%u", __entry->vmid, __entry->ring)
);
+TRACE_EVENT(radeon_vm_bo_update,
+ TP_PROTO(struct radeon_bo_va *bo_va),
+ TP_ARGS(bo_va),
+ TP_STRUCT__entry(
+ __field(u64, soffset)
+ __field(u64, eoffset)
+ __field(u32, flags)
+ ),
+
+ TP_fast_assign(
+ __entry->soffset = bo_va->soffset;
+ __entry->eoffset = bo_va->eoffset;
+ __entry->flags = bo_va->flags;
+ ),
+ TP_printk("soffs=%010llx, eoffs=%010llx, flags=%08x",
+ __entry->soffset, __entry->eoffset, __entry->flags)
+);
+
TRACE_EVENT(radeon_vm_set_page,
TP_PROTO(uint64_t pe, uint64_t addr, unsigned count,
uint32_t incr, uint32_t flags),
OpenPOWER on IntegriCloud