Heads up: ksystemstats 6.4 will include a helper that wants CAP_PERFMON

David Redondo kde at david-redondo.de
Fri Apr 4 13:43:15 BST 2025


Hi,

I just merged a patch into ksystemstats that adds support for monitoring 
global Intel GPU statistics.
Instead of using sysfs like for example AMD, Intel uses a perf interface.  
Because of usual perf_event_open restrictions a normal process can't pass pid 
== -1, which requires CAP_SYS_ADMIN or CAP_PERMON.
To limit the capability to the component that needs it there is a helper that 
requires the capability and reports back to the main ksystemstats process
similar to what was done in libksysguard for networking. 
The commit that adds this functionality is:
https://invent.kde.org/plasma/ksystemstats/-/commit/
924e43d5c899f6be0ed371ca6a5ea1b7d7c14abe

Cheers,
David




More information about the Distributions mailing list