Commit 220001a5 authored by Adrián Larumbe's avatar Adrián Larumbe Committed by Chia-I Wu
Browse files

BACKPORT: drm/file: Add fdinfo helper for printing regions with prefix



This is motivated by the desire of some drivers (eg. Panthor) to print the
size of internal memory regions with a prefix that reflects the driver
name, as suggested in the previous documentation commit.

That means adding a new argument to print_size and making it available for
DRM users.

Cc: Tvrtko Ursulin <tursulin@ursulin.net>
Reviewed-by: default avatarTvrtko Ursulin <tvrtko.ursulin@igalia.com>
Signed-off-by: default avatarAdrián Larumbe <adrian.larumbe@collabora.com>
Signed-off-by: default avatarBoris Brezillon <boris.brezillon@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250130172851.941597-3-adrian.larumbe@collabora.com


(cherry picked from commit af6c2b7c)
[olv: fix minor conflicts due to missing fd265d9e ("drm: add
 drm_memory_stats_is_zero") and bebf2ebd ("drm: make drm-active-
 stats optional")]

Bug: 439665327

Change-Id: I5f4b30503fac6ff494737d4a69ea4185b0d9421c
Signed-off-by: default avatarChia-I Wu <olv@google.com>
parent 10396a1f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment