Re: [PATCH 3/6] procfs: Use all-in-one vtime aware kcpustat accessor
From: Paul Orlyk
Date: Sun Dec 08 2019 - 11:05:40 EST
Looks like a copy-paste error. I think it should be:
- guest_nice += cpustat[CPUTIME_USER];
+ guest_nice += cpustat[CPUTIME_GUEST_NICE];
and
- guest_nice = cpustat[CPUTIME_USER];
+ guest_nice = cpustat[CPUTIME_GUEST_NICE];
With best regards,
Paul Orlyk
On 11/21/19 4:44 AM, Frederic Weisbecker wrote:
+ guest += cpustat[CPUTIME_GUEST];
+ guest_nice += cpustat[CPUTIME_USER];
+ sum += kstat_cpu_irqs_sum(i);
+ guest = cpustat[CPUTIME_GUEST];
+ guest_nice = cpustat[CPUTIME_USER];
seq_printf(p, "cpu%d", i);