drm/panfrost: Only display fdinfo's engine and cycle tags when profiling is on
authorAdrián Larumbe <adrian.larumbe@collabora.com>
Sat, 16 Mar 2024 23:13:04 +0000 (23:13 +0000)
committerSteven Price <steven.price@arm.com>
Mon, 25 Mar 2024 15:54:50 +0000 (15:54 +0000)
commitdfe4fd269a6cf450d50fb53ab55b38bd27f24d26
tree8702cd8221e0a5329871f9df85b90bbb7648076d
parentc8a0970321aeae4a5e807a5b323be9d48c6b5749
drm/panfrost: Only display fdinfo's engine and cycle tags when profiling is on

If job accounting is disabled, then both fdinfo's drm-engine and drm-cycle
key values will remain immutable. In that case, it makes more sense not to
display them at all to avoid confusing user space profiling tools.

Signed-off-by: Adrián Larumbe <adrian.larumbe@collabora.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240316231306.293817-1-adrian.larumbe@collabora.com
drivers/gpu/drm/panfrost/panfrost_drv.c