Skip to contentSkip to conversation

gpu: host1x: Remove unused host1x_syncpt_wait_check tracepoint

PATCH In review Temitope obabi 2 participants 2 messages Oct 30 – Oct 31 Tracing

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpu: host1x: Remove unused host1x_syncpt_wait_check tracepoint

The call to trace_host1x_syncpt_wait_check() was removed in commit 24c94e166dfe ("gpu: host1x: Remove wait check support"), leaving the tracepoint definition unused.

Tracepoints that are defined take up around 5K each, even if they are not used. Remove it.

---
I used AI assistance (Claude) while preparing this patch. I checked that there are no callers of the tracepoint, found the commit that removed the last call, and built drivers/gpu/host1x with COMPILE_TEST.

 include/trace/events/host1x.h | 28 ----------------------------
 1 file changed, 28 deletions(-)
include/trace/events/host1x.h +0 -28
index 1b6aeb7b177b..4f87b337703d 100644
@@ -235,34 +235,6 @@ TRACE_EVENT(host1x_syncpt_load_min,
 	TP_printk("id=%d, val=%d", __entry->id, __entry->val)
 );
 
-TRACE_EVENT(host1x_syncpt_wait_check,
-	TP_PROTO(struct host1x_bo *bo, u32 offset, u32 syncpt_id, u32 thresh,
-		 u32 min),
-
-	TP_ARGS(bo, offset, syncpt_id, thresh, min),
-
-	TP_STRUCT__entry(
-		__field(struct host1x_bo *, bo)
-		__field(u32, offset)
-		__field(u32, syncpt_id)
-		__field(u32, thresh)
-		__field(u32, min)
-	),
-
-	TP_fast_assign(
-		__entry->bo = bo;
-		__entry->offset = offset;
-		__entry->syncpt_id = syncpt_id;
-		__entry->thresh = thresh;
-		__entry->min = min;
-	),
-
-	TP_printk("bo=%p, offset=%05x, id=%d, thresh=%d, current=%d",
-		__entry->bo, __entry->offset,
-		__entry->syncpt_id, __entry->thresh,
-		__entry->min)
-);
-
 #endif /*  _TRACE_HOST1X_H */
 
 /* This part must be outside protection */
Signature · 1 line
2.53.0
#1 lore raw
Quoted 4 lines · Temitope obabi

The call to trace_host1x_syncpt_wait_check() was removed in commit 24c94e166dfe ("gpu: host1x: Remove wait check support"), leaving the tracepoint definition unused.

Quoted 8 lines

Tracepoints that are defined take up around 5K each, even if they are not used. Remove it.

---
I used AI assistance (Claude) while preparing this patch. I checked that there are no callers of the tracepoint, found the commit that removed the last call, and built drivers/gpu/host1x with COMPILE_TEST.

You used AI for doing what? All of the things you are mentioning you should be able to do yourself, without using AI.

julia

Quoted 47 lines
 include/trace/events/host1x.h | 28 ----------------------------
 1 file changed, 28 deletions(-)
include/trace/events/host1x.h +0 -29
index 1b6aeb7b177b..4f87b337703d 100644
@@ -235,34 +235,6 @@ TRACE_EVENT(host1x_syncpt_load_min,
 	TP_printk("id=%d, val=%d", __entry->id, __entry->val)
 );
 
-TRACE_EVENT(host1x_syncpt_wait_check,
-	TP_PROTO(struct host1x_bo *bo, u32 offset, u32 syncpt_id, u32 thresh,
-		 u32 min),
-
-	TP_ARGS(bo, offset, syncpt_id, thresh, min),
-
-	TP_STRUCT__entry(
-		__field(struct host1x_bo *, bo)
-		__field(u32, offset)
-		__field(u32, syncpt_id)
-		__field(u32, thresh)
-		__field(u32, min)
-	),
-
-	TP_fast_assign(
-		__entry->bo = bo;
-		__entry->offset = offset;
-		__entry->syncpt_id = syncpt_id;
-		__entry->thresh = thresh;
-		__entry->min = min;
-	),
-
-	TP_printk("bo=%p, offset=%05x, id=%d, thresh=%d, current=%d",
-		__entry->bo, __entry->offset,
-		__entry->syncpt_id, __entry->thresh,
-		__entry->min)
-);
-
 #endif /*  _TRACE_HOST1X_H */
 
 /* This part must be outside protection */
--

2.53.0