drm/xe: Fix tracepoints on 32b

Leave the types as u64, but cast the pointers to unsigned long before
assigning so the compiler doesn't throw warning about casting a pointer
to integer of different size.

Also, size_t should use %zu, not %ld.

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
This commit is contained in:
Lucas De Marchi 2022-12-22 12:18:26 -08:00 committed by Rodrigo Vivi
parent 9a6e6c14bf
commit ebec269c52

View File

@ -33,10 +33,10 @@ DECLARE_EVENT_CLASS(xe_bo,
TP_fast_assign(
__entry->size = bo->size;
__entry->flags = bo->flags;
__entry->vm = (u64)bo->vm;
__entry->vm = (unsigned long)bo->vm;
),
TP_printk("size=%ld, flags=0x%02x, vm=0x%016llx",
TP_printk("size=%zu, flags=0x%02x, vm=0x%016llx",
__entry->size, __entry->flags, __entry->vm)
);
@ -186,7 +186,7 @@ DECLARE_EVENT_CLASS(xe_sched_job,
atomic_read(&job->engine->guc->state);
__entry->flags = job->engine->flags;
__entry->error = job->fence->error;
__entry->fence = (u64)job->fence;
__entry->fence = (unsigned long)job->fence;
__entry->batch_addr = (u64)job->batch_addr[0];
),
@ -273,7 +273,7 @@ DECLARE_EVENT_CLASS(xe_hw_fence,
TP_fast_assign(
__entry->ctx = fence->dma.context;
__entry->seqno = fence->dma.seqno;
__entry->fence = (u64)fence;
__entry->fence = (unsigned long)fence;
),
TP_printk("ctx=0x%016llx, fence=0x%016llx, seqno=%u",
@ -313,7 +313,7 @@ DECLARE_EVENT_CLASS(xe_vma,
),
TP_fast_assign(
__entry->vma = (u64)vma;
__entry->vma = (unsigned long)vma;
__entry->asid = vma->vm->usm.asid;
__entry->start = vma->start;
__entry->end = vma->end;
@ -410,7 +410,7 @@ DECLARE_EVENT_CLASS(xe_vm,
),
TP_fast_assign(
__entry->vm = (u64)vm;
__entry->vm = (unsigned long)vm;
__entry->asid = vm->usm.asid;
),