[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] physmem: use PR_SET_VMA_ANON_NAME to set ram block name
From: |
Peter Xu |
Subject: |
Re: [PATCH] physmem: use PR_SET_VMA_ANON_NAME to set ram block name |
Date: |
Tue, 11 Apr 2023 13:00:19 -0400 |
On Tue, Apr 11, 2023 at 04:11:58AM +0000, Eiichi Tsukata wrote:
> Use linux specific PR_SET_VMA_ANON_NAME (introduced in v5.17) to set ram
> block name in the kernel. This makes each ram block distinguishable and
> can help debugging and inspection. The names of ram blocks are shown in
> /proc/pid/maps like this:
>
> 7f00e9400000-7f00f1400000 rw-p 00000000 00:00 0 [anon:pc.ram]
> 7f0115200000-7f0115201000 rw-p 00000000 00:00 0
> [anon:/rom@etc/acpi/rsdp]
> 7f0115400000-7f0115410000 rw-p 00000000 00:00 0
> [anon:/rom@etc/table-loader]
> 7f0115600000-7f0115800000 rw-p 00000000 00:00 0
> [anon:/rom@etc/acpi/tables]
> 7f0115a00000-7f0115a40000 rw-p 00000000 00:00 0 [anon:e1000.rom]
> ...
>
> Signed-off-by: Eiichi Tsukata <eiichi.tsukata@nutanix.com>
Acked-by: Peter Xu <peterx@redhat.com>
--
Peter Xu