Skip to content

Commit 861b275

Browse files
zengshanjunhghimira
authored andcommitted
drm/xe: Print vm flags in xe_vm trace print
Print vm flags in xe_vm trace print. This is helpful to diagnosis the VM mode of operation. Signed-off-by: Oak Zeng <oak.zeng@intel.com> Reviewed-by: Matthew Brost <matthew.brost@intel.com> Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20241218164833.2364049-3-oak.zeng@intel.com Signed-off-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
1 parent 63060df commit 861b275

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

drivers/gpu/drm/xe/xe_trace_bo.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,16 +190,19 @@ DECLARE_EVENT_CLASS(xe_vm,
190190
__string(dev, __dev_name_vm(vm))
191191
__field(struct xe_vm *, vm)
192192
__field(u32, asid)
193+
__field(u32, flags)
193194
),
194195

195196
TP_fast_assign(
196197
__assign_str(dev);
197198
__entry->vm = vm;
198199
__entry->asid = vm->usm.asid;
200+
__entry->flags = vm->flags;
199201
),
200202

201-
TP_printk("dev=%s, vm=%p, asid=0x%05x", __get_str(dev),
202-
__entry->vm, __entry->asid)
203+
TP_printk("dev=%s, vm=%p, asid=0x%05x, vm flags=0x%05x",
204+
__get_str(dev), __entry->vm, __entry->asid,
205+
__entry->flags)
203206
);
204207

205208
DEFINE_EVENT(xe_vm, xe_vm_kill,

0 commit comments

Comments
 (0)