[RFC PATCH 5/8] drm: start using drm_gem_trace_gpu_mem_instance
Steven Rostedt
rostedt at goodmis.org
Thu Oct 21 03:50:48 UTC 2021
On Wed, 20 Oct 2021 20:10:24 -0700
Gurchetan Singh <gurchetansingh at chromium.org> wrote:
> @@ -305,6 +306,7 @@ drm_gem_object_release_handle(int id, void *ptr, void *data)
> drm_gem_remove_prime_handles(obj, file_priv);
> drm_vma_node_revoke(&obj->vma_node, file_priv);
>
> + drm_gem_trace_gpu_mem_instance(dev, file_priv, -obj->size, false);
I would suggest adding the trace_*_enabled() if statements around all
these callers.
-- Steve
> drm_gem_object_handle_put_unlocked(obj);
>
> return 0;
More information about the dri-devel
mailing list