[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8c387b3c-33f5-968a-6882-55075066d9f4@suse.cz>
Date: Fri, 8 Jan 2021 16:30:46 +0100
From: Vlastimil Babka <vbabka@...e.cz>
To: paulmck@...nel.org, linux-kernel@...r.kernel.org,
rcu@...r.kernel.org, linux-mm@...ck.org
Cc: cl@...ux.com, penberg@...nel.org, rientjes@...gle.com,
iamjoonsoo.kim@....com, akpm@...ux-foundation.org,
ming.lei@...hat.com, axboe@...nel.dk, kernel-team@...com
Subject: Re: [PATCH mm,percpu_ref,rcu 4/6] mm: Make mem_obj_dump() vmalloc()
dumps include start and length
On 1/6/21 2:17 AM, paulmck@...nel.org wrote:
> From: "Paul E. McKenney" <paulmck@...nel.org>
>
> 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@...ux-foundation.org>
> Cc: Joonsoo Kim <iamjoonsoo.kim@....com>
> Cc: <linux-mm@...ck.org>
> Reported-by: Andrii Nakryiko <andrii@...nel.org>
> Suggested-by: Vlastimil Babka <vbabka@...e.cz>
> Signed-off-by: Paul E. McKenney <paulmck@...nel.org>
Acked-by: Vlastimil Babka <vbabka@...e.cz>
> ---
> mm/vmalloc.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/mm/vmalloc.c b/mm/vmalloc.c
> index c274ea4..e3229ff 100644
> --- a/mm/vmalloc.c
> +++ b/mm/vmalloc.c
> @@ -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;
> }
>
>
Powered by blists - more mailing lists