Skip to contentSkip to conversation

drm/xe: Remove unused xe_vm_restart tracepoint

PATCH Superseded Torra Sowmya 4 participants 9 messages Nov 1 – Nov 16

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/xe: Remove unused xe_vm_restart tracepoint

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.

---
 drivers/gpu/drm/xe/xe_trace_bo.h | 5 -----
 1 file changed, 5 deletions(-)
drivers/gpu/drm/xe/xe_trace_bo.h +0 -5
index 86323cf3be2c..fa91dd2b2174 100644
@@ -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)
Signature · 1 line
2.47.3
#1 lore raw
Quoted 3 lines · Torra Sowmya

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.

Please include some information about the amount of memory saved, as in Steve's commit in my original mail about tracepoints.

julia

Quoted 29 lines

Remove the unused definition from xe_trace_bo.h to avoid generating code and data for an event that has no callers.

---
 drivers/gpu/drm/xe/xe_trace_bo.h | 5 -----
 1 file changed, 5 deletions(-)
drivers/gpu/drm/xe/xe_trace_bo.h +0 -6
index 86323cf3be2c..fa91dd2b2174 100644
@@ -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

#2 lore raw

PATCH v2 1/1 drm/xe: Remove unused xe_vm_restart tracepoint

In reply to Torra Sowmya

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.

---
Changes in v2:
- Add the measured object-size reduction to the commit message:
436 bytes in xe_trace_bo.o (140 text, 296 data).

 drivers/gpu/drm/xe/xe_trace_bo.h | 5 -----
 1 file changed, 5 deletions(-)
drivers/gpu/drm/xe/xe_trace_bo.h +0 -5
index 86323cf3be2c..fa91dd2b2174 100644
@@ -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)
Signature · 1 line
2.47.3
#3 lore raw
Quoted 10 lines · On Mon, 2 Nov 2026 00:05:17 +0530 Torra Sowmya <[email protected]> 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.

That looks about right. The DEFINE_EVENT() is not as big as a TRACE_EVENT() (in fact, that's why DEFINE_EVENT exists).

Quoted 1 line

Please add:

Fixes f3e9b1f43458 ("drm/xe: Remove async worker and rework sync binds")

but other than that, looks good.

Thanks,

-- Steve

Quoted 25 lines

---
Changes in v2:
- Add the measured object-size reduction to the commit message:
436 bytes in xe_trace_bo.o (140 text, 296 data).

 drivers/gpu/drm/xe/xe_trace_bo.h | 5 -----
 1 file changed, 5 deletions(-)
drivers/gpu/drm/xe/xe_trace_bo.h +0 -5
index 86323cf3be2c..fa91dd2b2174 100644
@@ -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)
#4 lore raw

PATCH v3 1/1 drm/xe: Remove unused xe_vm_restart tracepoint

In reply to Torra Sowmya

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")

---
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(-)
drivers/gpu/drm/xe/xe_trace_bo.h +0 -5
index 86323cf3be2c..fa91dd2b2174 100644
@@ -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)
Signature · 1 line
2.47.3
#5 lore raw

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

Quoted 43 lines · Torra Sowmya

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")

---
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(-)
drivers/gpu/drm/xe/xe_trace_bo.h +0 -6
index 86323cf3be2c..fa91dd2b2174 100644
@@ -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

#6 lore raw

PATCH v4 1/1 drm/xe: Remove unused xe_vm_restart and xe_vma_flush tracepoints

In reply to Torra Sowmya

Commit f3e9b1f43458 ("drm/xe: Remove async worker and rework sync binds") removed the calls to trace_xe_vm_restart() and trace_xe_vma_flush(), but left both event definitions behind.

Remove the unused definitions from xe_trace_bo.h to avoid generating code and data for events with no remaining callers.

With the tested x86-64 configuration, size reports a reduction of 888 bytes in xe_trace_bo.o, from 20262 to 19374 bytes: 296 bytes in text and 592 bytes in data.

Fixes f3e9b1f43458 ("drm/xe: Remove async worker and rework sync binds")

---
Changes in v4:
- Combine the xe_vm_restart and xe_vma_flush removals as requested by Steven. This replaces the separate patches for these events.
- Report the measured combined object-size reduction.

Changes in v3:
- Add the Fixes tag.

Changes in v2:
- Document the measured object-size reduction.

 drivers/gpu/drm/xe/xe_trace_bo.h | 10 ----------
 1 file changed, 10 deletions(-)
drivers/gpu/drm/xe/xe_trace_bo.h +0 -10
index 86323cf3be2c..a6802f6d3a01 100644
@@ -115,11 +115,6 @@ DECLARE_EVENT_CLASS(xe_vma,
 			      __entry->end, __entry->ptr)
 )
 
-DEFINE_EVENT(xe_vma, xe_vma_flush,
-	     TP_PROTO(struct xe_vma *vma),
-	     TP_ARGS(vma)
-);
-
 DEFINE_EVENT(xe_vma, xe_vma_pagefault,
 	     TP_PROTO(struct xe_vma *vma),
 	     TP_ARGS(vma)
@@ -228,11 +223,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)
Signature · 1 line
2.47.3
#7 lore raw

Re: [PATCH v4] drm/xe: Remove unused xe_vm_restart and xe_vma_flush tracepoints

Hi everyone,

I received a CI notification saying that testing could not start because my email address is not on the allowlist.

The notification refers to my earlier patch removing only xe_vm_restart. I have since sent v4, which combines the removal of xe_vm_restart and xe_vma_flush.

Could someone trigger CI for v4? Please let me know if I need to do anything on my side.

Thanks,
Sowmya

Quoted 60 lines · Torra Sowmya

Commit f3e9b1f43458 ("drm/xe: Remove async worker and rework sync binds") removed the calls to trace_xe_vm_restart() and trace_xe_vma_flush(), but left both event definitions behind.

Remove the unused definitions from xe_trace_bo.h to avoid generating code and data for events with no remaining callers.

With the tested x86-64 configuration, size reports a reduction of 888 bytes in xe_trace_bo.o, from 20262 to 19374 bytes: 296 bytes in text and 592 bytes in data.

Fixes f3e9b1f43458 ("drm/xe: Remove async worker and rework sync binds")

---
Changes in v4:
- Combine the xe_vm_restart and xe_vma_flush removals as requested by Steven. This replaces the separate patches for these events.
- Report the measured combined object-size reduction.

Changes in v3:
- Add the Fixes tag.

Changes in v2:
- Document the measured object-size reduction.

 drivers/gpu/drm/xe/xe_trace_bo.h | 10 ----------
 1 file changed, 10 deletions(-)
drivers/gpu/drm/xe/xe_trace_bo.h +0 -11
index 86323cf3be2c..a6802f6d3a01 100644
@@ -115,11 +115,6 @@ DECLARE_EVENT_CLASS(xe_vma,
                              __entry->end, __entry->ptr)
 )
 
-DEFINE_EVENT(xe_vma, xe_vma_flush,
-            TP_PROTO(struct xe_vma *vma),
-            TP_ARGS(vma)
-);
-
 DEFINE_EVENT(xe_vma, xe_vma_pagefault,
             TP_PROTO(struct xe_vma *vma),
             TP_ARGS(vma)
@@ -228,11 +223,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

#8 lore raw

✗ LGCI.VerificationFailed: failure for drm/xe: Remove unused xe_vm_restart tracepoint (rev2)

In reply to Torra Sowmya
== Series Details ==

== Series Details ==

Series: drm/xe: Remove unused xe_vm_restart tracepoint (rev2)
URL : https://patchwork.freedesktop.org/series/178107/
State : failure

== Summary ==

Series author address '[email protected]' is not on the allowlist, which prevents CI from being automatically triggered. If you want CI to run for this series, ask Patchwork project owners to click 'retest' on the series in Patchwork. Exception occurred during validation, bailing out!
Build URL: http://intel-gfx-ci-public.igk.intel.com:8080/job/xe_pw_trigger/1337261/ (on master)