Re: [PATCH v2 3/3] drm/panthor: Add tracepoints for cache flushing

From: Steven Rostedt

Date: Thu Jul 30 2026 - 09:47:57 EST


On Thu, 30 Jul 2026 13:45:16 +0200
Nicolas Frattaroli <nicolas.frattaroli@xxxxxxxxxxxxx> wrote:

> Add two new event tracepoints: gpu_cache_flush_start to be emitted after
> acquiring the flush mutex and reqs spinlock, and gpu_cache_flush_end to
> be emitted when leaving the function.
>
> This allows debugging the duration a flush takes irrespective of initial
> function entry lock contention by subtracting the start tracepoint's
> timestamp from the end tracepoint timestamp, and additionally contains
> information such as which caches were flushed.
>
> Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@xxxxxxxxxxxxx>
> ---
> drivers/gpu/drm/panthor/panthor_gpu.c | 3 ++
> drivers/gpu/drm/panthor/panthor_trace.h | 49 +++++++++++++++++++++++++++++++++
> 2 files changed, 52 insertions(+)

From the tracing point of view:

Reviewed-by: Steven Rostedt <rostedt@xxxxxxxxxxx>

-- Steve