CLEANUP: tools: fix vma_set_name() function comment

There was a typo in the example provided in vma_set_name(): maps named
using the function will show up as "type:name", not "type.name", updating
the comment to reflect the current behavior.
This commit is contained in:
Aurelien DARRAGON 2024-05-24 10:22:57 +02:00
parent 0bda33a3ec
commit 23814a44e5

View File

@ -6515,9 +6515,9 @@ void vma_set_name(void *addr, size_t size, const char *type, const char *name)
* except [, ], \, $ and '. * except [, ], \, $ and '.
* As a result, when looking for /proc/<pid>/maps, we can see the anonymous range * As a result, when looking for /proc/<pid>/maps, we can see the anonymous range
* as follow : * as follow :
* `7364c4fff000-736508000000 rw-s 00000000 00:01 3540 [anon_shmem:scope.name]` * `7364c4fff000-736508000000 rw-s 00000000 00:01 3540 [anon_shmem:scope:name]`
* (MAP_SHARED) * (MAP_SHARED)
* `7364c4fff000-736508000000 rw-s 00000000 00:01 3540 [anon:scope.name]` * `7364c4fff000-736508000000 rw-s 00000000 00:01 3540 [anon:scope:name]`
* (MAP_PRIVATE) * (MAP_PRIVATE)
*/ */
char fullname[80]; char fullname[80];