From e795bb28790bab34aeb3346949bd6fddfb746f6e Mon Sep 17 00:00:00 2001 From: Rebecca Schultz Zavin Date: Tue, 26 Oct 2010 16:41:40 -0700 Subject: video: tegra: nvmap: Track carveout clients This patch adds the ability to track the total allocations in a given carveout heap by client. It also adds a sys file to print the list of clients, their pids and their respective carveout sizes Change-Id: I34fc97c3be574d2bd30d7594320ff05f6e13c476 Signed-off-by: Rebecca Schultz Zavin --- drivers/video/tegra/nvmap/nvmap_handle.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'drivers/video/tegra/nvmap/nvmap_handle.c') diff --git a/drivers/video/tegra/nvmap/nvmap_handle.c b/drivers/video/tegra/nvmap/nvmap_handle.c index 2f50c0a1b8d3..be130b4be757 100644 --- a/drivers/video/tegra/nvmap/nvmap_handle.c +++ b/drivers/video/tegra/nvmap/nvmap_handle.c @@ -81,6 +81,9 @@ void _nvmap_handle_free(struct nvmap_handle *h) goto out; if (!h->heap_pgalloc) { + nvmap_carveout_commit_subtract(client, + nvmap_heap_to_arg(nvmap_block_to_heap(h->carveout)), + h->size); nvmap_heap_free(h->carveout); goto out; } -- cgit v1.2.3