Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3776880ybb; Tue, 31 Mar 2020 11:46:15 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvPp5BAEC6lNOVXW4s0PKdu8HvR8E8t2+7FPR1dCZoscolxn67CNe4kzvxl/SdAS7+IUv+T X-Received: by 2002:a9d:1d67:: with SMTP id m94mr14284425otm.140.1585680375592; Tue, 31 Mar 2020 11:46:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585680375; cv=none; d=google.com; s=arc-20160816; b=np6SIjYI0f+7TPUkUlMdrAAPZRsHx5yn3Hw8gBD8Idm4r00M5CnpTHOaDK9t0Z70BU F7a2Pu6LUAkRD/aRUqaLAmpdFVgdaPQB0n5qgkNBiOLX/1JtEVPY+gBVHXIOxhL9Y2cT qTVlzVYEJr2kIYqt14+JQvd+6ulsjhEtRuORTPmzvPXqeWs2OtWDeQjWlfXd5P7iIgjR zfl/KDPuEWtAu32Es23wZaBjL+/oUb+Fw9YsIzi2ZP/vBSaZm4/w4ElD0gruefayYvxh 6Zq4ueJfpIHDjJs+lf8ntEeEl4FPSVIFNl9YhcPYnFGqNX540xr9HaUyfDv2j5QrBRal f4EA== 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=+jNnUbembF63wQpsp/nI9GuzKOFEikcLRWTGuhXIyEU=; b=YRGMLZP4taVzqCO8kBb9ZEO+Zzro+hYmX4z3x6+QyinLYvW2mDjup5c9y3/+dIbvHG kFGOX7ZpxsUHzEvXy2K41zJ9TJWS+69ZeD94rx4U0aI5IV6httTQ1RmxE6eFsJeVHTGE xL92ZowIouWXLjgZGesuLkdCt/reKFxy2fzov7aPyBBotLPg4LOvpc/qcL5n1URLCKe2 Xkb18b0ixpYhHvBDbqCWQWwCeyB1HW2T5wdwNV+ZaaErAf6ChE7hnH/RcL+s8UeigtIx SGnjv+tHh1ZsLueHhmTxLjKUwxLhLnpvqrf58b/cyRKYUMYnsD98CsdNpDY62wcVK6Tb l1IQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n10si4883404otk.171.2020.03.31.11.46.02; Tue, 31 Mar 2020 11:46:15 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726977AbgCaSph (ORCPT + 99 others); Tue, 31 Mar 2020 14:45:37 -0400 Received: from mga02.intel.com ([134.134.136.20]:15082 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726209AbgCaSph (ORCPT ); Tue, 31 Mar 2020 14:45:37 -0400 IronPort-SDR: gJfjGxAvXhvL4DmX4qoAGLvkDhre59XWe8tZtuRoUV2D6H+m1yZsJn16TRfZma/JpAAY2+DrzV ForfPtR0RamQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Mar 2020 11:45:36 -0700 IronPort-SDR: zm4uUFx0EZdeysPbdQSBr5/blLu7c5wJUBAtX1dwRExJ+qEXEX3NIGo7NuyEeN6LVwrNt0JlAg 1taGleO553RQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,328,1580803200"; d="scan'208";a="395596154" Received: from chenyu-office.sh.intel.com ([10.239.158.173]) by orsmga004.jf.intel.com with ESMTP; 31 Mar 2020 11:45:34 -0700 From: Chen Yu To: Len Brown Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Zhang Rui , Chen Yu Subject: [PATCH 0/2][RFC] Add long time sampling time support Date: Wed, 1 Apr 2020 02:44:16 +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 Since the RAPL Joule Counter is 32 bit, turbostat would only print a *star* to indicate the overflow due to long duration. Print the actual energy consumed for long sampling time. Chen Yu (2): tools/power turbostat: Make the energy variable to be 64 bit tools/power turbostat: Introduce reliable RAPL display tools/power/x86/turbostat/Makefile | 2 +- tools/power/x86/turbostat/turbostat.c | 322 +++++++++++++++++++++++--- 2 files changed, 287 insertions(+), 37 deletions(-) -- 2.17.1