Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6385644imu; Sun, 2 Dec 2018 16:59:32 -0800 (PST) X-Google-Smtp-Source: AFSGD/XEvztQGS28494d6597vD0vXmtFlHbbG3ivKrlASE45hk6XFy8OkRb3Yh007yzoKFSJJ87q X-Received: by 2002:a17:902:24e7:: with SMTP id l36mr2333675plg.61.1543798772639; Sun, 02 Dec 2018 16:59:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543798772; cv=none; d=google.com; s=arc-20160816; b=gH3oI/oEad7jkdmTH7ROy2vCgqGeKVoRyy2qIazGqa4YddXOiz+gzvDyL+0KoChTXB SUQb2tvQajb2QVyD7d1uRbGr2YLF+NmrGKF/D+jSAHN1izKFjkPZRpvo8P/8t/8+beMt Rm6zLs1KEQXgXHNSwslvxWm0dT0DevUfHWq3WeFpNqtVfJrlkvXXJKVzur6C7MG4wKaK KoCqpS61bOlPPaQ12EMtOApjzP2gOqbvQEEfr/0ZOhGg8hRmLxQSY/Z73WJUpwhW40f7 fLp5Ceq+tqIxnZAJyYnJgyW/ERN7+ZhUi9zW/+ncxjqGNhSqjL1Do/NUhhYXOS+CLv53 547g== 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; bh=NcjtOCYw/6QcEDkBwqPK/9c48OIQd9jaQJkVCXyxaFg=; b=U4swq/abXlq4e/Hf+HAj9K1QNmJ5WgJ/WANTqkfy6sqg0/4yfUqDah6PmEobkhxTjw nfzuIQqNHrw/NlPiWbGLgaP2QoHEp8hnxY19Pbwv4Bz8JKzoQpASeKtY3QHnjhk9k1fE aWojGo8BfZdA3KUWDfLLQ31B/yE5kRVl+tvj2XrwUdZm7K6G31LK7fOBNjDFwy1/kBmU MFdODbIC60p3e74Q57597kzm5skBuUSxeUzOvQquWpxgI0ZGaibZ98KoccoH3JBwoDtk qibq7XaY2anv34RLKX4jBVghFQcFm8RbQBeetaj7GcbpnVJ4ohx827oSsxtmzOpP1GPz 0MsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U0kr3bTI; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g9si13355068pfd.86.2018.12.02.16.59.17; Sun, 02 Dec 2018 16:59:32 -0800 (PST) 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=@linaro.org header.s=google header.b=U0kr3bTI; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725800AbeLCA6r (ORCPT + 99 others); Sun, 2 Dec 2018 19:58:47 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:39704 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725785AbeLCA6q (ORCPT ); Sun, 2 Dec 2018 19:58:46 -0500 Received: by mail-wm1-f66.google.com with SMTP id f81so1574223wmd.4 for ; Sun, 02 Dec 2018 16:58:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=NcjtOCYw/6QcEDkBwqPK/9c48OIQd9jaQJkVCXyxaFg=; b=U0kr3bTIduMEARm+wZRSyq1VqUwd3FSq1Q3N8WZmX8HRYkPLIh+XkFxsg0mGJvCtgu Jil9CO5MWURHBdVUK/w7EkJz+6/s3LcsNGO9hip+yljr/D0fPeFWFl5MbJ1yGvLrTr8p fgrrsxt+yNSOMmoAY7/V0P5EkPIajLTgYk5Xc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=NcjtOCYw/6QcEDkBwqPK/9c48OIQd9jaQJkVCXyxaFg=; b=RudJgKjptj5OBK+LvPsiLVH8etEa27S89qojVsA93uU8fMejxSpLgmuhmJChQWsUWY osE1uEpdwtou7Mr2jrrWl5nlfKDXw6CuydcEWWtg/bSdc8XmEphVaewHp+gIrsHVlvrU kYdEZ51X/HlR9745FcLU7OSgWK/BgiP6i+yrD0+wxKmjnyXzVZVsAwlaCRbI2vgjeS3D BOL8UqLwIiBrANN8l4xN5qjAZupY4sVal2DWJtCr/BNRd277rrSAeFI6hmAyhqTHKLFg fg5xB9KwOKdUeHb9G9TzuE7T+JPAZPa/SHHEHlJWILR6D9oCJbKAHXWemX5wve4KV1L7 KMEA== X-Gm-Message-State: AA+aEWZsN5YNXEglvFlIjlOQZpyaiZPMkQSA4oUR3QmeCnpEdo86T/Z1 U0cLHOKxTYvP8Bx0aVePXjC2Yw== X-Received: by 2002:a1c:5dd1:: with SMTP id r200mr6577063wmb.93.1543798720454; Sun, 02 Dec 2018 16:58:40 -0800 (PST) Received: from leoy-ThinkPad-X240s ([209.250.228.18]) by smtp.gmail.com with ESMTPSA id n15sm16903937wrt.21.2018.12.02.16.58.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Dec 2018 16:58:39 -0800 (PST) Date: Mon, 3 Dec 2018 08:58:28 +0800 From: leo.yan@linaro.org To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , Alexander Shishkin , Andi Kleen , linux-kernel@vger.kernel.org, Daniel Thompson Subject: Re: [PATCH] perf evsel: Correct clock unit to nanosecond Message-ID: <20181203005828.GC12322@leoy-ThinkPad-X240s> References: <1543572365-11706-1-git-send-email-leo.yan@linaro.org> <20181130102154.GA3617@krava> <20181130142140.GB11833@leoy-ThinkPad-X240s> <20181130152521.GA10748@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181130152521.GA10748@kernel.org> User-Agent: Mutt/1.10+31 (9cdd884) (2018-06-19) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 30, 2018 at 12:25:21PM -0300, Arnaldo Carvalho de Melo wrote: > Em Fri, Nov 30, 2018 at 10:21:40PM +0800, leo.yan@linaro.org escreveu: > > On Fri, Nov 30, 2018 at 11:21:54AM +0100, Jiri Olsa wrote: > > > On Fri, Nov 30, 2018 at 06:06:05PM +0800, Leo Yan wrote: > > > > Since commit 0aa802a79469 ("perf stat: Get rid of extra clock display > > > > function"), the cpu and task clock unit has been changed from > > > > nanosecond value to millisecond value. This introduces confusion for > > > > CPU run time statistics, we can see in below flow the clock value is > > > > scaled from nanosecond value to millisecond value; but this is > > > > contradiction with statistics type 'STAT_NSECS', which always takes > > > > clock as nanosecond unit. > > > > [...] > > > > > there was fix for this recently, could you please check > > > if it's working for you: > > > 6e269c85dcea perf stat: Fix shadow stats for clock events > > > > Ah, I missed this patch ... > > > > Yeah, I tested this patch and can confirm this patch fixes > > this issue. > > My fault, new notebook update process got in the way causing > acme/perf/core to pile up, a perf/core pull req is about to be sent to > Ingo now tho :-) No worry :) This patch has been passed by my email filter, so I should check inbox carefully. Thanks, Leo Yan