Default kernel ``` rtreffer@perfmon-jammy:~$ uname -a Linux perfmon-jammy 5.15.0-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux rtreffer@perfmon-jammy:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.5 LTS Release: 22.04 Codename: jammy rtreffer@perfmon-jammy:~$ ./repro [*] Current perf_event_paranoid level: 4. [*] This is a custom Ubuntu paranoid level.
[*] Current capabilities: cap_perfmon=ep [!] CPU_CYCLES: Impossible to open perf event [!] INSTRUCTIONS: Impossible to open perf event [!] CACHE_REFERENCES: Impossible to open perf event Some events were not accessible with current capabilities rtreffer@perfmon-jammy:~/node_exporter-1.10.2.linux-amd64$ curl -s http://127.0.0.1:9100/metrics|grep perf node_scrape_collector_duration_seconds{collector="perf"} 2.2713e-05 node_scrape_collector_success{collector="perf"} 1 ``` After applying the proposed kernel ``` rtreffer@perfmon-jammy:~$ uname -a Linux perfmon-jammy 5.15.0-165-generic #175-Ubuntu SMP Tue Nov 25 16:51:58 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux rtreffer@perfmon-jammy:~$ ./repro [*] Current perf_event_paranoid level: 4. [*] This is a custom Ubuntu paranoid level. [*] Current capabilities: cap_perfmon=ep [*] CPU_CYCLES: Successfully opened perf event [*] INSTRUCTIONS: Successfully opened perf event [*] CACHE_REFERENCES: Successfully opened perf event All perf events accessible with current capabilities rtreffer@perfmon-jammy:~/node_exporter-1.10.2.linux-amd64$ curl -s http://127.0.0.1:9100/metrics|grep perf [...] node_perf_stalled_cycles_frontend_total{cpu="9"} 0 node_scrape_collector_duration_seconds{collector="perf"} 0.018165285 node_scrape_collector_success{collector="perf"} 1 ``` Node exporter works, reproducing case is fixed on jammy. ** Tags removed: verification-needed-jammy-linux ** Tags added: verification-done-jammy-linux -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2131046 Title: CAP_PERFMON insufficient to get perf data To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2131046/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
