diff options
| author | Yunxiang Li <Yunxiang.Li@amd.com> | 2024-12-19 18:14:07 +0300 |
|---|---|---|
| committer | Christian König <christian.koenig@amd.com> | 2024-12-19 18:56:05 +0300 |
| commit | fd265d9e0c3358e6b9fe244d8f5d2824fda1c0dc (patch) | |
| tree | 765d6f798b2d5f23356b968144da5f3529dd33d7 /include/drm | |
| parent | 314d44bc8eaab6e159ebf187356e9bd40e2baf9b (diff) | |
| download | linux-fd265d9e0c3358e6b9fe244d8f5d2824fda1c0dc.tar.xz | |
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')
| -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, |
