Re: [PATCH 1/2] util: Extend virProcessGetStatInfo() for sysTime and userTime

2022-09-05 Thread Ján Tomko
On a Monday in 2022, Michal Privoznik wrote: The virProcessGetStatInfo() helper parses /proc stat file for given PID and/or TID and reports cumulative cpuTime which is just a sum of user and sys times. But in near future, we'll need those times separately, so make the function return them too

[PATCH 1/2] util: Extend virProcessGetStatInfo() for sysTime and userTime

2022-09-05 Thread Michal Privoznik
The virProcessGetStatInfo() helper parses /proc stat file for given PID and/or TID and reports cumulative cpuTime which is just a sum of user and sys times. But in near future, we'll need those times separately, so make the function return them too (if caller desires). Signed-off-by: Michal