Re: [PATCH v3] drm/xe: Remove unused xe_vm_restart tracepoint
From: Sowmya Torra
Date: Sun Nov 08 2026 - 02:18:20 EST
Hi everyone,
I missed Steven’s request to combine this with the xe_vma_flush
removal before sending v3. Please hold off on applying this version.
I’m testing a combined revision and will send it shortly.
Sorry for the extra email.
Best regards,
Sowmya
On Sun, Nov 8, 2026 at 11:35 AM Torra Sowmya <sowmyatorra@xxxxxxxxx> wrote:
>
> Commit f3e9b1f43458 ("drm/xe: Remove async worker and rework sync
> binds") removed the call to trace_xe_vm_restart(), but left the
> event definition behind.
>
> Remove the unused definition from xe_trace_bo.h to avoid generating
> code and data for an event that has no callers.
>
> With the tested x86-64 configuration, size reports a reduction of
> 436 bytes in xe_trace_bo.o, from 20262 to 19826 bytes: 140 bytes
> in text and 296 bytes in data.
>
> Fixes: f3e9b1f43458 ("drm/xe: Remove async worker and rework sync binds")
> Signed-off-by: Torra Sowmya <sowmyatorra@xxxxxxxxx>
> ---
> Changes in v3:
> - Add the Fixes tag.
>
> Changes in v2:
> - Document the measured object-size reduction.
>
> drivers/gpu/drm/xe/xe_trace_bo.h | 5 -----
> 1 file changed, 5 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_trace_bo.h b/drivers/gpu/drm/xe/xe_trace_bo.h
> index 86323cf3be2c..fa91dd2b2174 100644
> --- a/drivers/gpu/drm/xe/xe_trace_bo.h
> +++ b/drivers/gpu/drm/xe/xe_trace_bo.h
> @@ -228,11 +228,6 @@ DEFINE_EVENT(xe_vm, xe_vm_cpu_bind,
> TP_ARGS(vm)
> );
>
> -DEFINE_EVENT(xe_vm, xe_vm_restart,
> - TP_PROTO(struct xe_vm *vm),
> - TP_ARGS(vm)
> -);
> -
> DEFINE_EVENT(xe_vm, xe_vm_rebind_worker_enter,
> TP_PROTO(struct xe_vm *vm),
> TP_ARGS(vm)
> --
> 2.47.3
>