Advise to set perf_event_paranoid to -1.

This enables access to context switch data.
This commit is contained in:
Bartosz Taudul 2022-04-01 15:21:10 +02:00
parent 1efb979e47
commit ffc06087b9
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -554,7 +554,7 @@ To workaround this limitation, you will need to have a rooted device. Execute th
\begin{lstlisting}[language=sh]
setenforce 0
mount -o remount,hidepid=0 /proc
echo 0 > /proc/sys/kernel/perf_event_paranoid
echo -1 > /proc/sys/kernel/perf_event_paranoid
echo 0 > /proc/sys/kernel/kptr_restrict
\end{lstlisting}