]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit55a9b74846ed5e6219c7d81a8e1bf96f25d8ad5e
treef844e77e4e698c6a35c67dcbbe93fae7e984de80
parentdb176f6ba1da39ad0016c77b9775a6bb3d0ce88a
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