Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1471660ybz; Sat, 18 Apr 2020 01:32:29 -0700 (PDT) X-Google-Smtp-Source: APiQypLKSar4g9H2Vt1xLwygdh4LfqqvK3VFRiH7DVNva489skfj87titMUN5MEcjSAR+NI2jiT+ X-Received: by 2002:a05:6402:221c:: with SMTP id cq28mr6064004edb.50.1587198748862; Sat, 18 Apr 2020 01:32:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587198748; cv=none; d=google.com; s=arc-20160816; b=IePNhdiBsXyP+ZknnknqA41yz9zuq8Tl8r+Jyg0ek8Y/p+tB8aK8A4+NwbSBlM5CTp VgD8gKC6w047ZcGXrKJkF8mrRt+iadH2GNO7UabKTyQT1XE0hrCcoHRqy1t+lOtYANXb iFvnbFZq/X13EXa3KSwTzbA+/Ss9gHVYMpmSr8Vt0L8+YrM6fiBSx1wUXxGxpAD1+jQf GAYHnpl3Y4jD/QkEFWkvIY3swVv5Sk0V002t9fw6S5uoleroFoZiXUXaksVBhQJ/xw5Z jhRGiJq78XAtakTTjUcrd0miFjRLaz3yMOiGXPTlvMcEBrTz0s5m+B+ObKok7OXMGRqh Yetg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :ironport-sdr:ironport-sdr; bh=jNFeKT0jVSFythMzWKu58YVIsqQzc6b3wYHKw7QhJR0=; b=GTImr/59HJKWaDgbdKiIkEgs83JD4D19SSwUUvHf/o5egQL7g1ZaGtb11m6xj06uAV FgY4aHOkwqmiRWvDr0byOlH8nx2AhgdAxn+93De90FP0p4EF2oi8n0H5wxMJ/V/2xU2F 7GD8pYokKrM/u47WpdVKTG3M5qR/wHO0hza5PFD6MojNRdO+5IOburspX/fumeT+J34m sEdOfkwv42uTn0UYHIOpjmXJjxCTpZ4nxBYbepu5e1eUd2pjeoQPvdalR/v5PWEE1GS2 iZby0XnvwuvReD0428at62ahcmpdUZ6Gcw0rmEwnKEj6kxFXte6rFq9sFKuhpS1cwFC8 H9Ag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hk16si15986968ejb.263.2020.04.18.01.32.05; Sat, 18 Apr 2020 01:32:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725887AbgDRIbN (ORCPT + 99 others); Sat, 18 Apr 2020 04:31:13 -0400 Received: from mga03.intel.com ([134.134.136.65]:9878 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725801AbgDRIbM (ORCPT ); Sat, 18 Apr 2020 04:31:12 -0400 IronPort-SDR: Rdk0uKTxrCtnJuz2Jtd9nncjie8rJ5PXrBJzY6wxySY8a1EHWuYJlkLUQ44TRTeA8LQrt0x86w OHrQ1aQkLFTg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Apr 2020 01:31:11 -0700 IronPort-SDR: hL1EjEYgZTvU2tAV9UO+xA2cb625vugVGc729HMVv1FGFqKwbRjC1RtWx/aeNTO0YrKYNU2TEC I4b4xEdTOkRg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,398,1580803200"; d="scan'208";a="455864199" Received: from chenyu-office.sh.intel.com ([10.239.158.173]) by fmsmga006.fm.intel.com with ESMTP; 18 Apr 2020 01:31:04 -0700 From: Chen Yu To: linux-pm@vger.kernel.org Cc: Len Brown , "Rafael J. Wysocki" , Doug Smythies , linux-kernel@vger.kernel.org, Chen Yu Subject: [PATCH 0/3][v3] tools/power turbostat: Enable accumulated energy consumption for long time sampling Date: Sat, 18 Apr 2020 16:31:34 +0800 Message-Id: X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The RAPL Joule Counter is 32 bit, turbostat would only print a *star* instead of printing the actual energy consumed due to the overflow of RAPL register. Introduce the accumulated RAPL mechanism to avoid the possible overflow. Chen Yu (3): tools/power turbostat: Make the energy variable to be 64 bit tools/power turbostat: Introduce functions to accumulate RAPL consumption tools/power turbostat: Enable accumulate RAPL display tools/power/x86/turbostat/Makefile | 2 +- tools/power/x86/turbostat/turbostat.c | 292 ++++++++++++++++++++++---- 2 files changed, 248 insertions(+), 46 deletions(-) -- 2.17.1