Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp581879ybz; Wed, 15 Apr 2020 14:30:28 -0700 (PDT) X-Google-Smtp-Source: APiQypLrIIlEjJ/7Mhr6wDQCxZKXdvIelt5H20WKKFIQh48qEnqQWcMW+nITiLr48EOFPsSUOrFB X-Received: by 2002:a17:906:1804:: with SMTP id v4mr7061408eje.104.1586986228709; Wed, 15 Apr 2020 14:30:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586986228; cv=none; d=google.com; s=arc-20160816; b=ZO2TiJXA9s4LiGA3iLWYnCtQMmU1/WoFLyd5b51Zqqil+t4D/Y1dOewRVofUG7xl+j d2GA5MH6un/WnTGkc9z8PzqJosUf04p9hzOKDYkl4hj/Qcbz+4obYpyTLg426RUV71c/ +kVGz0w39Yrin6d+xrYlSgANhPf0OA4NY1oHeSrIXGsng9IYw0CWHp41vHnxN6ZDptCf S2AQD3Py28YQ9o+uCO1UXB6DEkLkx1Vd2wFF6RVdltFk+YcRS6Z8E9iw7+mI/vR16WW7 lTCyvvrNpNufemvYqDcIUCE4t8rjI8tdOnvuVDMYguyz3UkZIOb1+9z6CD9rrGRrBxcu gFxg== 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=b/tjThAJNH3ohXZYo8xVvC+G/BWCOMcWNCrwvgCEzSg=; b=ureCu2QxMToOa96279wO9kKGZ7hU+7ztxhfP+yN782aANSd3rGKgtkl4eVAna9roCc ngNo6OeVd7+KwhjYLEEMAxwk83aY9EEzO4Tgft9K7SB+3O3rI0FZvWeRMXyWIGx05e/U bLG2Jtwk2Ozu6xITXP61n6OvZv9kfSxIkUijNr/yiIYIDR+RL8ZcYj6VXxSJn72DD4yC otcHRAk6zF3LmPl/xw0QTVsUqgp5DyOcVXwvDWroQiG/Zgfzzm5YnvuHTd2cTUzkjFB/ RzV7uVyb42o7WqU3xxyG5iUxr53zRvc8hJbpuEOetwXnycH4Uj/cWHU6VRW0uC6mbUB4 7dcw== 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 z6si10881001edm.108.2020.04.15.14.30.05; Wed, 15 Apr 2020 14:30: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 S2502422AbgDNM4H (ORCPT + 99 others); Tue, 14 Apr 2020 08:56:07 -0400 Received: from mga04.intel.com ([192.55.52.120]:50097 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2502340AbgDNM4B (ORCPT ); Tue, 14 Apr 2020 08:56:01 -0400 IronPort-SDR: X6FcYjS2eqFIifHJ85BT+Ng50P9yy1a8MjiAGa9MZ+/S9yVuhkyO2QFpl+w0AZ/SORN4wp0ARS 48bXwRkqgTiA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2020 05:55:59 -0700 IronPort-SDR: rWUMvFQJu/iBOGiTAM3Ryuo+wwWvjD0XPzEvZwU0i8H/vuMJ0sxFgKo1GqmBX/e4Wq7ZDUSvS6 /niiT0DnNPNg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,382,1580803200"; d="scan'208";a="427051389" Received: from chenyu-office.sh.intel.com ([10.239.158.173]) by orsmga005.jf.intel.com with ESMTP; 14 Apr 2020 05:55:57 -0700 From: Chen Yu To: linux-pm@vger.kernel.org Cc: Len Brown , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, Chen Yu Subject: [PATCH 0/3][RFC v2] tools/power turbostat: Enable accumulated energy consumption for long time sampling Date: Tue, 14 Apr 2020 20:56:21 +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 | 273 ++++++++++++++++++++++---- 2 files changed, 237 insertions(+), 38 deletions(-) -- 2.20.1