Enable ptrace tracing
Category: linux, year: 2018
With most Linux distro default settings, it’s normally not possible for applications like perf
, vtune
or gdb
to attach to already-running processes and control/examine them, so to enable that (for the current session only), the following can be run in the terminal:
echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope