]> git.baikalelectronics.ru Git - kernel.git/commit
drm/v3d: Add more tracepoints for V3D GPU rendering.
authorEric Anholt <eric@anholt.net>
Sat, 1 Dec 2018 00:57:58 +0000 (16:57 -0800)
committerEric Anholt <eric@anholt.net>
Mon, 3 Dec 2018 19:26:23 +0000 (11:26 -0800)
commitb565717735d98ae5a694a612fb0df9e04fb0889c
treef844e77e4e698c6a35c67dcbbe93fae7e984de80
parentc597eb31722c6b16e378f4d502d3b7381c7fd9be
drm/v3d: Add more tracepoints for V3D GPU rendering.

The core scheduler tells us when the job is pushed to the scheduler's
queue, and I had the job_run functions saying when they actually queue
the job to the hardware.  By adding tracepoints for the very top of
the ioctls and the IRQs signaling job completion, "perf record -a -e
v3d:.\* -e gpu_scheduler:.\* <job>; perf script" gets you a pretty
decent timeline.

Signed-off-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20181201005759.28093-5-eric@anholt.net
Reviewed-by: Dave Emett <david.emett@broadcom.com>
drivers/gpu/drm/v3d/v3d_gem.c
drivers/gpu/drm/v3d/v3d_irq.c
drivers/gpu/drm/v3d/v3d_trace.h