Adhemerval Zanella 78ed8bdf4f linux: Add PR_SET_VMA_ANON_NAME support
Linux 5.17 added support to naming anonymous virtual memory areas
through the prctl syscall.  The __set_vma_name is a wrapper to avoid
optimizing the prctl call if the kernel does not support it.

If the kernel does not support PR_SET_VMA_ANON_NAME, prctl returns
EINVAL. And it also returns the same error for an invalid argument.
Since it is an internal-only API, it assumes well-formatted input:
aligned START, with (START, START+LEN) being a valid memory range,
and NAME with a limit of 80 characters without an invalid one
("\\`$[]").
Reviewed-by: DJ Delorie <dj@redhat.com>
2023-11-07 10:27:20 -03:00
..
2021-06-22 12:09:52 -03:00
2021-12-28 22:52:56 +01:00
2023-05-01 19:33:21 +02:00
2023-07-30 21:35:28 +02:00
2021-06-15 10:42:11 -03:00
2021-06-15 10:42:11 -03:00
2017-04-07 07:45:53 -04:00
2021-07-22 18:38:04 +05:30
2021-09-15 22:57:35 +00:00
2021-06-30 08:43:37 +02:00
2023-10-24 12:30:59 +02:00
2023-05-01 09:08:59 -04:00
2019-05-02 11:42:51 +02:00
2023-10-24 12:30:59 +02:00
2019-10-09 17:48:41 -03:00
2021-06-30 08:43:37 +02:00
2019-11-06 09:20:52 -03:00