aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2015-06-09 10:58:33 -0400
committerAlex Deucher <alexander.deucher@amd.com>2015-06-29 11:21:43 -0400
commit93e3e4385b69d8885e0dd64d1c5b8c351a151e91 (patch)
treeb39fe4fdd4323756776c556148bc02e18fc67bc2 /drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h
parent344c19f9558d69faec75869b33d558258429bcd9 (diff)
drm/amdgpu: add BO map/unmap trace point
Signed-off-by: Christian König <christian.koenig@amd.com> Acked-by: Alex Deucher <aleander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h
index b56dd64bd4ea..9fe4f3ccd319 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h
@@ -61,6 +61,54 @@ TRACE_EVENT(amdgpu_vm_grab_id,
61 TP_printk("vmid=%u, ring=%u", __entry->vmid, __entry->ring) 61 TP_printk("vmid=%u, ring=%u", __entry->vmid, __entry->ring)
62); 62);
63 63
64TRACE_EVENT(amdgpu_vm_bo_map,
65 TP_PROTO(struct amdgpu_bo_va *bo_va,
66 struct amdgpu_bo_va_mapping *mapping),
67 TP_ARGS(bo_va, mapping),
68 TP_STRUCT__entry(
69 __field(struct amdgpu_bo *, bo)
70 __field(long, start)
71 __field(long, last)
72 __field(u64, offset)
73 __field(u32, flags)
74 ),
75
76 TP_fast_assign(
77 __entry->bo = bo_va->bo;
78 __entry->start = mapping->it.start;
79 __entry->last = mapping->it.last;
80 __entry->offset = mapping->offset;
81 __entry->flags = mapping->flags;
82 ),
83 TP_printk("bo=%p, start=%lx, last=%lx, offset=%010llx, flags=%08x",
84 __entry->bo, __entry->start, __entry->last,
85 __entry->offset, __entry->flags)
86);
87
88TRACE_EVENT(amdgpu_vm_bo_unmap,
89 TP_PROTO(struct amdgpu_bo_va *bo_va,
90 struct amdgpu_bo_va_mapping *mapping),
91 TP_ARGS(bo_va, mapping),
92 TP_STRUCT__entry(
93 __field(struct amdgpu_bo *, bo)
94 __field(long, start)
95 __field(long, last)
96 __field(u64, offset)
97 __field(u32, flags)
98 ),
99
100 TP_fast_assign(
101 __entry->bo = bo_va->bo;
102 __entry->start = mapping->it.start;
103 __entry->last = mapping->it.last;
104 __entry->offset = mapping->offset;
105 __entry->flags = mapping->flags;
106 ),
107 TP_printk("bo=%p, start=%lx, last=%lx, offset=%010llx, flags=%08x",
108 __entry->bo, __entry->start, __entry->last,
109 __entry->offset, __entry->flags)
110);
111
64TRACE_EVENT(amdgpu_vm_bo_update, 112TRACE_EVENT(amdgpu_vm_bo_update,
65 TP_PROTO(struct amdgpu_bo_va_mapping *mapping), 113 TP_PROTO(struct amdgpu_bo_va_mapping *mapping),
66 TP_ARGS(mapping), 114 TP_ARGS(mapping),