Good Non-Root Linux Profiling Tools?

Does anybody know of any good general profiling tools that I can use for Rust programs that don't require root access on the machine?

perf is pretty great and generally doesn't require root unless the kernel is configured to require that.

1 Like

It doesn't open up threats for privilege escalation by allowing it to be run as non-root users, right?

If you believe perf introduces privilege escalation vulnerabilities you should probably report that to the Linux kernel security team.

I didn't have any reason too, I just wanted to make sure it was a safe thing to allow for normal users as I wasn't sure why it would be something you would want disabled.

The setting is called perf_event_paranoid, if that tells you anything...

1 Like

LOL, well I'm certainly not that paranoid about my users. :wink: