https://bugs.kde.org/show_bug.cgi?id=444042
--- Comment #2 from Tvrtko Ursulin <tvrtko.ursu...@linux.intel.com> --- Yes CAP_PERFMON is required for global stats and then you could either get the data directly using perf_event_open(2) or going through intel_gpu_top. If you go for latter then note it has a JSON output mode which may be handy. Personally I prefer direct/light-weight solutions but it would be up to you. Regarding per client usage and amdgpu, yes, it is exporting this data since commit 874442541133 ("drm/amdgpu: Add show_fdinfo() interface") (kernel 5.14 I believe). My proposal is to standardise the exported fields there, or at least allow for documenting at a single place. Because at the moment it does not look that i915 and amdgpu would be exporting the exact same format (ns vs % over integration time), but as long as vendors commit to interface stability it should be workable for userspace. I would be very happy to support you with kernel patches to use for developing the prototype. And also with patches to intel_gpu_top which kind of shows how to read and interpret the data. -- You are receiving this mail because: You are watching all bug changes.