lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Sun, 8 Dec 2019 17:57:47 +0200
From:   Paul Orlyk <pavel.orlik@...rtexe.com>
To:     Frederic Weisbecker <frederic@...nel.org>,
        Peter Zijlstra <peterz@...radead.org>,
        Ingo Molnar <mingo@...nel.org>
Cc:     LKML <linux-kernel@...r.kernel.org>,
        Jacek Anaszewski <jacek.anaszewski@...il.com>,
        Wanpeng Li <wanpengli@...cent.com>,
        "Rafael J . Wysocki" <rjw@...ysocki.net>,
        Benjamin Herrenschmidt <benh@...nel.crashing.org>,
        Rik van Riel <riel@...riel.com>,
        Thomas Gleixner <tglx@...utronix.de>,
        Yauheni Kaliuta <yauheni.kaliuta@...hat.com>,
        Viresh Kumar <viresh.kumar@...aro.org>,
        Pavel Machek <pavel@....cz>
Subject: Re: [PATCH 3/6] procfs: Use all-in-one vtime aware kcpustat accessor

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);

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ