$RodHat_/search
capabilities reference

CAP_PERFMON

Use performance-monitoring mechanisms: perf_event_open and BPF with performance implications.

Bit number
38
Mask in /proc/PID/status
0000004000000000
Added in Linux
5.8
Group
Tracing, performance and checkpoint

Added in Linux 5.8 so that profilers stop needing CAP_SYS_ADMIN. kernel.perf_event_paranoid still decides what unprivileged processes can do. Tracing with BPF generally wants CAP_BPF as well.

Narrower option: Replaces CAP_SYS_ADMIN for perf since Linux 5.8.

Check a running process with grep Cap /proc/PID/status, or paste the hex into the mask decoder.

Syscall cards that mention it

  • perf_event_open(2)Linux · Tracing

    Open a file descriptor for a hardware or software performance counter.

Rod on this

Sources

  1. capabilities(7), Linux man-pages
  2. user_namespaces(7), Linux man-pages

Bit numbers are from linux/capability.h. The list of syscall cards is matched by name from the card text on this site, not from the kernel source. Spot one that's wrong? Tell Rod.