diff options
author | 2024-12-19 10:14:07 -0500 | |
---|---|---|
committer | 2024-12-19 16:56:05 +0100 | |
commit | fd265d9e0c3358e6b9fe244d8f5d2824fda1c0dc (patch) | |
tree | 765d6f798b2d5f23356b968144da5f3529dd33d7 /include/drm/drm_file.h | |
parent | drm/sched: Fix drm_sched_fini() docu generation (diff) | |
download | wireguard-linux-fd265d9e0c3358e6b9fe244d8f5d2824fda1c0dc.tar.xz wireguard-linux-fd265d9e0c3358e6b9fe244d8f5d2824fda1c0dc.zip |
drm: add drm_memory_stats_is_zero
Add a helper to check if the memory stats is zero, this will be used to
check for memory accounting errors.
Signed-off-by: Yunxiang Li <Yunxiang.Li@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241219151411.1150-2-Yunxiang.Li@amd.com
Signed-off-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'include/drm/drm_file.h')
-rw-r--r-- | include/drm/drm_file.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/drm_file.h b/include/drm/drm_file.h index f0ef32e9fa5e..ef817926cddd 100644 --- a/include/drm/drm_file.h +++ b/include/drm/drm_file.h @@ -494,6 +494,7 @@ struct drm_memory_stats { enum drm_gem_object_status; +int drm_memory_stats_is_zero(const struct drm_memory_stats *stats); void drm_print_memory_stats(struct drm_printer *p, const struct drm_memory_stats *stats, enum drm_gem_object_status supported_status, |