Linux allows naming anonymous mappings, both shared and non-shared. Named anonymous mappings appear as [anon:<name>] entries while anonymous shared named mappings appear as [anon_shmem:<name>] lines (see the kernel documentation). Since in both cases the name is optional I propose to extend the MmapPath::Anonymous with an optional string name, so MmapPath::Anonymous(Option<String>) and introduced a similar entry for anonymous shared mappings (say MmapPath::AnonymousShared(Option<String>).
Linux allows naming anonymous mappings, both shared and non-shared. Named anonymous mappings appear as
[anon:<name>]entries while anonymous shared named mappings appear as[anon_shmem:<name>]lines (see the kernel documentation). Since in both cases the name is optional I propose to extend theMmapPath::Anonymouswith an optional string name, soMmapPath::Anonymous(Option<String>)and introduced a similar entry for anonymous shared mappings (sayMmapPath::AnonymousShared(Option<String>).