diff options
author | Jörg Wagner <jorwag@google.com> | 2023-12-14 09:44:26 +0000 |
---|---|---|
committer | Jörg Wagner <jorwag@google.com> | 2023-12-14 09:44:26 +0000 |
commit | 049a542207ed694271316782397b78b2e202086a (patch) | |
tree | 105e9378d4d5062dc72109fdd4a77c915bd9425d /mali_kbase/mali_kbase_debug_mem_allocs.c | |
parent | e61eb93296e9f940b32d4ad4b0c3a5557cbeaf17 (diff) | |
download | gpu-049a542207ed694271316782397b78b2e202086a.tar.gz |
Update KMD to r47p0
Provenance: ipdelivery@ad01e50d640910a99224382bb227e6d4de627657
Change-Id: I19ac9bce34a5c5a319c1b4a388e8b037b3dfe6e7
Diffstat (limited to 'mali_kbase/mali_kbase_debug_mem_allocs.c')
-rw-r--r-- | mali_kbase/mali_kbase_debug_mem_allocs.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/mali_kbase/mali_kbase_debug_mem_allocs.c b/mali_kbase/mali_kbase_debug_mem_allocs.c index 0592187..c92fb9e 100644 --- a/mali_kbase/mali_kbase_debug_mem_allocs.c +++ b/mali_kbase/mali_kbase_debug_mem_allocs.c @@ -24,6 +24,7 @@ */ #include "mali_kbase_debug_mem_allocs.h" +#include "mali_kbase_reg_track.h" #include "mali_kbase.h" #include <linux/string.h> @@ -47,13 +48,8 @@ static void debug_zone_mem_allocs_show(struct kbase_reg_zone *zone, struct seq_f struct rb_node *p; struct rb_root *rbtree = &zone->reg_rbtree; struct kbase_va_region *reg; - const char *type_names[5] = { - "Native", - "Imported UMM", - "Imported user buf", - "Alias", - "Raw" - }; + const char *type_names[5] = { "Native", "Imported UMM", "Imported user buf", "Alias", + "Raw" }; #define MEM_ALLOCS_HEADER \ " VA, VA size, Commit size, Flags, Mem type\n" @@ -63,9 +59,9 @@ static void debug_zone_mem_allocs_show(struct kbase_reg_zone *zone, struct seq_f reg = rb_entry(p, struct kbase_va_region, rblink); if (!(reg->flags & KBASE_REG_FREE)) { seq_printf(sfile, "%16llx, %16zx, %16zx, %8lx, %s\n", - reg->start_pfn << PAGE_SHIFT, reg->nr_pages << PAGE_SHIFT, - kbase_reg_current_backed_size(reg) << PAGE_SHIFT, - reg->flags, type_names[reg->gpu_alloc->type]); + reg->start_pfn << PAGE_SHIFT, reg->nr_pages << PAGE_SHIFT, + kbase_reg_current_backed_size(reg) << PAGE_SHIFT, reg->flags, + type_names[reg->gpu_alloc->type]); } } } @@ -84,6 +80,8 @@ static int debug_ctx_mem_allocs_show(struct seq_file *sfile, void *data) struct kbase_context *const kctx = sfile->private; enum kbase_memory_zone zone_idx; + CSTD_UNUSED(data); + kbase_gpu_vm_lock(kctx); for (zone_idx = 0; zone_idx < CONTEXT_ZONE_MAX; zone_idx++) { struct kbase_reg_zone *zone; |