mirror of
https://github.com/torvalds/linux.git
synced 2024-12-23 19:31:53 +00:00
mm: Make mem_obj_dump() vmalloc() dumps include start and length
This commit adds the starting address and number of pages to the vmalloc() information dumped by way of vmalloc_dump_obj(). Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Cc: <linux-mm@kvack.org> Reported-by: Andrii Nakryiko <andrii@kernel.org> Suggested-by: Vlastimil Babka <vbabka@suse.cz> Acked-by: Vlastimil Babka <vbabka@suse.cz> Tested-by: Naresh Kamboju <naresh.kamboju@linaro.org> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
This commit is contained in:
parent
98f180837a
commit
bd34dcd412
@ -3456,7 +3456,8 @@ bool vmalloc_dump_obj(void *object)
|
||||
vm = find_vm_area(objp);
|
||||
if (!vm)
|
||||
return false;
|
||||
pr_cont(" vmalloc allocated at %pS\n", vm->caller);
|
||||
pr_cont(" %u-page vmalloc region starting at %#lx allocated at %pS\n",
|
||||
vm->nr_pages, (unsigned long)vm->addr, vm->caller);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user