summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/xe_trace.h
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@intel.com>2022-12-22 12:18:26 -0800
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-12 14:06:01 -0500
commitebec269c522fc9bb48d11b65456b01adbdecb97d (patch)
treeb98637c6cfc5338673310e0399d4f8be5df8c7fb /drivers/gpu/drm/xe/xe_trace.h
parent9a6e6c14bfde967fca5a052cbee206d0b6169a1e (diff)
downloadlwn-ebec269c522fc9bb48d11b65456b01adbdecb97d.tar.gz
lwn-ebec269c522fc9bb48d11b65456b01adbdecb97d.zip
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>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_trace.h')
-rw-r--r--drivers/gpu/drm/xe/xe_trace.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/drm/xe/xe_trace.h b/drivers/gpu/drm/xe/xe_trace.h
index a5f963f1f6eb..d9f921d46b53 100644
--- a/drivers/gpu/drm/xe/xe_trace.h
+++ b/drivers/gpu/drm/xe/xe_trace.h
@@ -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;
),