janestreet / magic-trace

magic-trace collects and displays high-resolution traces of what a process is doing
https://magic-trace.org
MIT License
4.7k stars 93 forks source link

Added env var to forcibly disable perf dlfilter #232

Closed lamoreauxaj closed 2 years ago

lamoreauxaj commented 2 years ago

Tudor pointed out the necessity of an environment variable to disable using --dlfilter with perf script. This is because on our systems, perf is only allowed to run as root and trace the kernel with certain flags which do not include --dlfilter. This environment variable will allow the user to forcibly disable --dlfilter to be able to still trace the kernel in these situations.