Re: [PATCH 3/4] sched/cpuacct: fix user/system in shown cpuacct.usage*

2021-03-17 Thread Daniel Jordan
Andrey Ryabinin writes: > cpuacct has 2 different ways of accounting and showing user > and system times. > > The first one uses cpuacct_account_field() to account times > and cpuacct.stat file to expose them. And this one seems to work ok. > > The second one is uses cpuacct_charge() function

[PATCH 3/4] sched/cpuacct: fix user/system in shown cpuacct.usage*

2021-02-17 Thread Andrey Ryabinin
cpuacct has 2 different ways of accounting and showing user and system times. The first one uses cpuacct_account_field() to account times and cpuacct.stat file to expose them. And this one seems to work ok. The second one is uses cpuacct_charge() function for accounting and set of cpuacct.usage*