mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemu: Fix /proc/**/stat parsing
Since commit v1.3.2-119-g1e34a8f which enabled debug-threads in QEMU qemuGetProcessInfo would fail to parse stats for any thread with a space in its name. https://bugzilla.redhat.com/show_bug.cgi?id=1316803 Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
@@ -1460,7 +1460,7 @@ qemuGetProcessInfo(unsigned long long *cpuTime, int *lastCpu, long *vm_rss,
|
||||
if (!pidinfo ||
|
||||
fscanf(pidinfo,
|
||||
/* pid -> stime */
|
||||
"%*d %*s %*c %*d %*d %*d %*d %*d %*u %*u %*u %*u %*u %llu %llu"
|
||||
"%*d (%*[^)]) %*c %*d %*d %*d %*d %*d %*u %*u %*u %*u %*u %llu %llu"
|
||||
/* cutime -> endcode */
|
||||
"%*d %*d %*d %*d %*d %*d %*u %*u %ld %*u %*u %*u"
|
||||
/* startstack -> processor */
|
||||
|
||||
Reference in New Issue
Block a user