Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1446329imm; Wed, 6 Jun 2018 16:32:18 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIB1w3V0yrauIy43Bz0K5ZFtloL1b3gUxBNsXpmNwFYgbD5PzrBOM1dOQfBFd3/WZdzqmfd X-Received: by 2002:a65:6319:: with SMTP id g25-v6mr4179154pgv.437.1528327938417; Wed, 06 Jun 2018 16:32:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528327938; cv=none; d=google.com; s=arc-20160816; b=0vWTa/qsxi0STJztNdoIBmtOmOKQNWJxpECQ0kAKCYTR8fFHCOJWvaz7vxPNsAOIsA Hmr076KpiTkYAJx0Fv3vpp/z3usaLM29itRMzO+4JKQlIaFxOFTk3gf213BPxN3PoEq8 WJ0AXj9VCGHeZOVIBbCVH0xxIkQk0uNfGoB4zNPR32VhTZx4aJIzJ7ejHNnN1sUvdtXE KFslu9iWa41Mk3D1+J4bOAsPp5r8oIRXUrMiu/hGkPyzBJPMJNqLoqIBq1WXaXWTBtd5 keAH/2DxQs7ObmnL/kFiXO5AUGZY+eD+CjFatcxw7o+dq0UncLIOOeSHX2vxMTKmoiO9 p4sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=zAOmezn9GbuQKOyTyvMXjgyUTVwXo8fCUosiXbek8Ek=; b=FsGVrOJ0M13hrG39mU3mIwk4Fbq/pk7UV2zL2Oo42QXTNVEIIDQCM0Sd6RVjxerT1K uPoFeZELeC7MrhnGsjRPYKWuntA+eE8MIHe8edjrnWf6YD9U6d7jRT0NH8u2SQVxPPo8 iWVzTpVWFD72X2WWN30MfF541VMAiEs/GZUvnkhelBEbRu45JT80lRJZ/2mMgfOa+Qdw Ze/9hoiiex6Nozi8eboRCx9KLPkjdSCYC9r+/yTtYu70yyKp9kTzdMhJW8qBz1EWR0YP cTweD+WzotakLBC5kgTuwgpK+7jFmPV7Qjs22m+FrRzq7m46YNnD68Oc0nAHKNbxN2nC roKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@firstfloor.org header.s=mail header.b=WnVThfxK; 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 m1-v6si9576444pfk.56.2018.06.06.16.32.04; Wed, 06 Jun 2018 16:32:18 -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; dkim=pass header.i=@firstfloor.org header.s=mail header.b=WnVThfxK; 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 S1752724AbeFFXSd (ORCPT + 99 others); Wed, 6 Jun 2018 19:18:33 -0400 Received: from one.firstfloor.org ([193.170.194.197]:42390 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752042AbeFFXSb (ORCPT ); Wed, 6 Jun 2018 19:18:31 -0400 X-Greylist: delayed 489 seconds by postgrey-1.27 at vger.kernel.org; Wed, 06 Jun 2018 19:18:31 EDT Received: by one.firstfloor.org (Postfix, from userid 503) id 43C7586897; Thu, 7 Jun 2018 01:10:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=firstfloor.org; s=mail; t=1528326619; bh=lZE/h/QyE9RRJ+CpBm0gwuWPPWRMlhvf59REC+HsWTM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WnVThfxKgMwOQy1D2QsQWOFlBqZMsh4B8J/PPAGDqRPYipSEI4K5JMN9FQPuvVAHW du3li48YEi5ysyMqqa3bgiWJIgvsFjnVkzz3w9Sq+pMXpohdP+BsQjHb2FM5EzwK4c X3skt5q1cFiUzao+HGw2+jb3sOFhSjp/ZBD4UTeQ= Date: Wed, 6 Jun 2018 16:10:18 -0700 From: Andi Kleen To: Jiri Olsa Cc: Arnaldo Carvalho de Melo , Peter Zijlstra , lkml , Ingo Molnar , Namhyung Kim , David Ahern , Alexander Shishkin , Stephane Eranian , Milian Wolff , Andi Kleen , Frederic Weisbecker Subject: Re: [RFC 00/10] perf: Add cputime events/metrics Message-ID: <20180606231016.o3u3u3nduoq7227e@two.firstfloor.org> References: <20180606221513.11302-1-jolsa@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180606221513.11302-1-jolsa@kernel.org> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > I had some issues with IDLE counter being miscounted due to stopping > of the idle tick. I tried to solve it in this patch (it's part of the > patchset): > perf/cputime: Don't stop idle tick if there's live cputime event > > but I'm pretty sure it's wrong and there's better solution. At least on intel we already have hardware counters for different idle states. You just would need to add them and convert to the same unit. But of course it's still useful when this is not available. > My current plan is now to read those counters in perf top/record/report > to show (at least) the idle percentage for the current profile. It's useful. Thanks for working on it. I was thinking about doing something similar for some time. -Andi