What is the exact meaning of this parameter ?
Hi all,
I know that the perf_event_mlock_kb kernel parameter allows to limit the amount of counters sampling memory that can be mmap'ed by an unprivileged user.
Nevertheless, playing with the size I give to mmap some memory using the file descriptor returned by perf_event_open I am not able to linkk with the perf_event_mlock_kb parameter. Looking into kernel sources, it seems this parameter is used in kernel/events/core.c where the perf mmap operation is defined but I am not sure to understand the code there. So my question is what is the exact meaning of this parameter ?
Signature · 1 line
Manu
Any idea on that ?
Thanks,
----
Manu
Quoted 14 lines · Manuel Selva
Hi all,
I know that the
perf_event_mlock_kbkernel parameter allows to limit the amount of counters sampling memory that can be mmap'ed by an unprivileged user.Nevertheless, playing with the size I give to mmap some memory using the file descriptor returned by
perf_event_openI am not able to linkk with theperf_event_mlock_kbparameter. Looking into kernel sources, it seems this parameter is used inkernel/events/core.cwhere the perf mmap operation is defined but I am not sure to understand the code there. So my question is what is the exact meaning of this parameter ?