Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3138318ybl; Sun, 8 Dec 2019 08:09:21 -0800 (PST) X-Google-Smtp-Source: APXvYqyrkVYX5NKpDXhtnvezAE2KHI8KvWGU8AXc3ndNGmyQavrnbNAMZMx4w5HHBDhbI1ERlD5V X-Received: by 2002:aca:ef85:: with SMTP id n127mr21470412oih.54.1575821361325; Sun, 08 Dec 2019 08:09:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575821361; cv=none; d=google.com; s=arc-20160816; b=JAK13Kd07XHwm6bWfFXJf6gsov98FQ6tcRRBRD21God/RzScTuu8VwbOOQSuORWuNI 8+ZpR7z5jNzxvVJXAbgb14Z3lRf4XyXuV9kzzazShz9AEiys2ibbrh9wAAtahO6idNur T7v6NwixbVB6hKowDMhgX+aM+mVy4Z5fITqmPyoMGEZjuIOg8rzzyY6L3K8VorxTjmwI aRZ3IvlMWaWwxGFEGt879Swy2/YMf9+pij/idIh37dsFdH9ft4HrEkIge9IkrvXGp1mJ mRkHb/TRj6SREO2cxSZNTTO3zTr4wBZZKPA57r7TXxQEY/LxxuWBqD/K034/Ilt8EJ8o VHtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=/RnvN20Ws6y75GcB1wshSUUTXDSR30LW8Y7WmXoT6+8=; b=DDUvFh2iDoSKO5bVI4FhLGkxdwz8TrBzW1afhJv/o46poxtUygCBp8nd1NvstOA7UD rPTKwsfjNSdZ3Bk/ANbLJp5iWRd6GQnqXomuqwTGtGgzxgx3NpqoMIYWt0agY/JVfDTs JlAgVRrhmaSQD927TphZ037DoFOmU7NJH+exaCyQgYBcpRJ99WU+JbXTCnd6Bkwl0gok 5SowQfBKoQnEUY0f2O45zZN3+znHUauxKU96aHszx3ZZlDGp7XUsm2dCGpzUBoQ+rbUJ mMsemTNxinYsGN5ZhWVcE34tUeqRAFOmFupiR9nA6QzeXxD/eoKQ8Pv1JcjnIBZ1UYyK A3NQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q124si9914032oig.228.2019.12.08.08.08.37; Sun, 08 Dec 2019 08:09:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726501AbfLHQFY (ORCPT + 99 others); Sun, 8 Dec 2019 11:05:24 -0500 Received: from p3plsmtpa06-06.prod.phx3.secureserver.net ([173.201.192.107]:54550 "EHLO p3plsmtpa06-06.prod.phx3.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726440AbfLHQFY (ORCPT ); Sun, 8 Dec 2019 11:05:24 -0500 X-Greylist: delayed 438 seconds by postgrey-1.27 at vger.kernel.org; Sun, 08 Dec 2019 11:05:24 EST Received: from [192.168.0.107] ([195.114.147.136]) by :SMTPAUTH: with ESMTPSA id dywbiGNGbMmCzdywcixeP3; Sun, 08 Dec 2019 08:58:05 -0700 Subject: Re: [PATCH 3/6] procfs: Use all-in-one vtime aware kcpustat accessor To: Frederic Weisbecker , Peter Zijlstra , Ingo Molnar Cc: LKML , Jacek Anaszewski , Wanpeng Li , "Rafael J . Wysocki" , Benjamin Herrenschmidt , Rik van Riel , Thomas Gleixner , Yauheni Kaliuta , Viresh Kumar , Pavel Machek References: <20191121024430.19938-1-frederic@kernel.org> <20191121024430.19938-4-frederic@kernel.org> From: Paul Orlyk Message-ID: <14ca94e3-5320-6f95-9d76-101dccb7e1b5@smartexe.com> Date: Sun, 8 Dec 2019 17:57:47 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191121024430.19938-4-frederic@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfPD8UtUrvbG3QCUWJkQl3+Ub9Mw9p7U1V0WH+2kIqr6vtza8PI+UsZKeDLHX6EbO/hDiWcuuXhwqQzE68YfVSDB3BCL3jSePCb6xAqe/2qdU1401kzMj 3N29B+/sADzfL+Ly/c9uRSD1lm1PwST+zmlwOi58lLnejtHeNLjWpVGtBNBG46EkzpbMlURxpPM9OAiM227MU/dU0jRYTlxM661Iq+TFCzJWTlj2GMcKVGdr ddn6RCcsn2tAc86uTLCSBO/wy7e2TLaMyNGpP85aEgtuy+vKCA5r3p1NHAgJmof3YRu6mb6BbFaJZp9IcEVuVsyvyMHVML5485hBVNP1tq185yNvT8ClKg7+ 8cz1ivX3pTU/g8LHKEhTR+vSiLnF7nXaJOG+uTFo3K/VxDd6Q0XKkohUboKKkG3svKScpC5wTUKB7YLABsQFmiAfFSY1vHySvjFzTWfVsFpzlm1HMc8YQuHK u/pFpEU7BaVCMHUSlxJ9Wv6vyAO77gwpAsM2UFqoXUJ2T7bYvfWeuO6ZDxgaCfpnsMolC3nQrpfIwRS/t1tsoBb7M4HQn1KxTt/GkA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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);