Search notes:

/proc/sys/kernel/perf_event_paranoid

-1 Allow use of (almost) all events by all users. Ignore mlock limit after perf_event_mlock_kb without CAP_IPC_LOCK
>= 0 Disallow raw and ftrace function tracepoint access
>= 1 Disallow CPU event access
>= 2 Disallow kernel profiling
$ echo -1 | sudo tee /proc/sys/kernel/perf_event_paranoid
$ perf stat ls
$ perf stat -e instructions ls

See also

perf
/proc/sys/kernel

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Linux/fh...', 1758208971, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Linux/fhs/proc/sys/kernel/perf_event_paranoid(50): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78