]> xenbits.xensource.com Git - libvirt.git/commit
util: Look for newer name of cpu wait time statistic
authorMartin Kletzander <mkletzan@redhat.com>
Thu, 3 Oct 2024 15:00:48 +0000 (17:00 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Thu, 3 Oct 2024 18:43:07 +0000 (20:43 +0200)
commit215cada34395b6b2caad507393e043594d6c86fc
tree477e3efce094fce78b385480f706fe4a4e306032
parent7d6759135e34c253d84cb25a2604afac5f50a7d2
util: Look for newer name of cpu wait time statistic

It looks like linux changed the key for wait time in /proc/<pid>/sched
and /proc/<pid>/task/<tid>/sched files in commit ceeadb83aea2 (or around
that time) from se.statistics.wait_sum to just wait_sum.  Similarly to
the previous change (from se.wait_sum) just look for the new name first.

Resolves: https://issues.redhat.com/browse/RHEL-60030
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/util/virprocess.c