Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/xe: Print vm parameter in xe_vma trace

Print the vm that the vma belongs to in the vma trace.
This is useful to correlate VMA operations to the VM.

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-4-oak.zeng@intel.com
Signed-off-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>

authored by

Oak Zeng and committed by
Himal Prasad Ghimiray
22b1a53f 861b2758

+5 -2
+5 -2
drivers/gpu/drm/xe/xe_trace_bo.h
··· 92 92 TP_STRUCT__entry( 93 93 __string(dev, __dev_name_vma(vma)) 94 94 __field(struct xe_vma *, vma) 95 + __field(struct xe_vm *, vm) 95 96 __field(u32, asid) 96 97 __field(u64, start) 97 98 __field(u64, end) ··· 102 101 TP_fast_assign( 103 102 __assign_str(dev); 104 103 __entry->vma = vma; 104 + __entry->vm = xe_vma_vm(vma); 105 105 __entry->asid = xe_vma_vm(vma)->usm.asid; 106 106 __entry->start = xe_vma_start(vma); 107 107 __entry->end = xe_vma_end(vma) - 1; 108 108 __entry->ptr = xe_vma_userptr(vma); 109 109 ), 110 110 111 - TP_printk("dev=%s, vma=%p, asid=0x%05x, start=0x%012llx, end=0x%012llx, userptr=0x%012llx,", 112 - __get_str(dev), __entry->vma, __entry->asid, __entry->start, 111 + TP_printk("dev=%s, vma=%p, vm=%p, asid=0x%05x, start=0x%012llx, end=0x%012llx, userptr=0x%012llx", 112 + __get_str(dev), __entry->vma, __entry->vm, 113 + __entry->asid, __entry->start, 113 114 __entry->end, __entry->ptr) 114 115 ) 115 116