Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1268849imm; Wed, 26 Sep 2018 14:49:11 -0700 (PDT) X-Google-Smtp-Source: ACcGV60FJ8yWijzphaukB2X4s3WEUHBrQiXAcxUpqOY/4uVZYeiGswCi4Ko4ZC1TmZm6ruAFFsfm X-Received: by 2002:a63:7f0e:: with SMTP id a14-v6mr1617162pgd.296.1537998550966; Wed, 26 Sep 2018 14:49:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537998550; cv=none; d=google.com; s=arc-20160816; b=AucBh2lJP7UkWO9VHAqyMqeBeDi8BHRvgu1XdQWdMvPJr6TiPvPsnZYRuqNnjHHjtu CCrTChlFlAn4CX1ugVRwKGB7B6kx1P8+7ivkabdZFgncgnceOj4FeW+WtYhf+tgEtMFW Ym7RWuJSwQ5JmnB8H2xa9s4u9+BGbq2oM+srqY3ZvPjmiWC9it7uKYCdawIo7esSQRGN L1WhfwezBrbvBjy4DcZqZ75nhynnxahSuuvjr+4BGWT1W4paRNQvdPoxHHji2eeqTqFA UBoHjTYGU9Vjm3rJaws7DtD4b4Q8yCbSDyrMe+i3RZAX6JjrDnCFCu3Y8gHdcSjLVN/M dd8g== 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; bh=9xhGxeT+OnovnRqSe/nzk/tQiu3dF/KrlrqsZGqhyTs=; b=z9vPJaYrAZ07gQW9aN3UAHq3YPshOWhNb4ZodXDaF8yWubqETEHaqbkVgqvxt5uiST v2TKORnGKltVM73Ygt8Fj6ibTSQO4n5BvvrkPRPZ7/OvLdClrZXeg3NcRhAfmA+5k8Nu +l2xHGuLQbvzG/Lu285nPEvMEIPL78pb2kEdZ0pugulrGdNwGIz2oqiz0HsuY/0r2V1r 7TewScYlUlWVw9O1h11UJkuU014c9+YvA2P/5l8XPsZh7xv4maA+4is42xQ7ek03FdIi UUMD2DEbnvMHwtG1+tpcd2l+NaUSv1xENO7lsXstPQmf5Ax1DN/oKN1G9lWSqTpX0ZJg DNew== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q16-v6si155357pgn.86.2018.09.26.14.48.55; Wed, 26 Sep 2018 14:49:10 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726524AbeI0EDr (ORCPT + 99 others); Thu, 27 Sep 2018 00:03:47 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52862 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726164AbeI0EDq (ORCPT ); Thu, 27 Sep 2018 00:03:46 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E7A64307D913; Wed, 26 Sep 2018 21:48:47 +0000 (UTC) Received: from krava (ovpn-204-45.brq.redhat.com [10.40.204.45]) by smtp.corp.redhat.com (Postfix) with SMTP id 4A59E103BAB2; Wed, 26 Sep 2018 21:48:38 +0000 (UTC) Date: Wed, 26 Sep 2018 23:48:37 +0200 From: Jiri Olsa To: Milian Wolff Cc: Andi Kleen , Jiri Olsa , Arnaldo Carvalho de Melo , Peter Zijlstra , lkml , Ingo Molnar , Namhyung Kim , David Ahern , Alexander Shishkin , Stephane Eranian , Frederic Weisbecker Subject: Re: [RFC 00/10] perf: Add cputime events/metrics Message-ID: <20180926214837.GB15357@krava> References: <20180606221513.11302-1-jolsa@kernel.org> <20180606231016.o3u3u3nduoq7227e@two.firstfloor.org> <6856997.NognPVqETE@milian-kdab2> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6856997.NognPVqETE@milian-kdab2> User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.48]); Wed, 26 Sep 2018 21:48:48 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 26, 2018 at 04:44:08PM +0200, Milian Wolff wrote: > On Thursday, June 7, 2018 1:10:18 AM CEST Andi Kleen wrote: > > > 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. > > Hey Jiri, > > what happened to this patch series? I also believe it's super useful, even > when it's not yet perfect. heya, got sidetracked.. thanks for feedback, will refresh and repost sane version thanks, jirka