Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3880475imu; Fri, 30 Nov 2018 07:26:44 -0800 (PST) X-Google-Smtp-Source: AFSGD/W6lviNs87VFrnflkHsDJEFMEqMJYt+Z9ku9o+FqB+AF+tMWQ/PiI0RY12d1ghnTpvPfz2O X-Received: by 2002:a17:902:2dc3:: with SMTP id p61mr5974529plb.166.1543591604116; Fri, 30 Nov 2018 07:26:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543591604; cv=none; d=google.com; s=arc-20160816; b=mKZ/WkFVEKh4lGrrjY0IYPXMgnYFiJ0ZHC05hsR71Aj7+YB8/pdGs3LOgFsQq9E/jH ECLLz2qD3QnnQatctHJMxan2LdQpA0pbNd16YLo35oL/t74iQuOsE8u9ysIgO3NWHTiK FVaoHL+H/hBR//TzL0mDBsKJEEtjJtaoJ1j9RclSxtljGT5VT/TSLJF23UJks+Nu/eUC ll1497R4tS1WIz/Jm96nEDGQplmM+RDDU4nA24rS9oJ97DvHy54s4VpmS7LEhozk1M7J 0oDA+PCjvwbRtFKG2hI/sn3vVD/xX+eMQrEuFwtsLrlVuNk2jiMzgxydLU/PGG/kNJ/J iGQA== 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=j1dgbU8AerzoHIIMSmdZvJ4rQew3X9/CULXHoh5QqAw=; b=MFCfVcccsEAH/yqUW5FFyqN39GKsd35/JK+hiAVUml27EelOCrS+uKrbOBdEdZvyA2 2rDaEW5Yeu+cHDJ+RgzjfJ8eCEjj9MHrHH5yd+EgcVciYkFPNAz+JEYVkWRAiWZWbImJ RW1KXWkYH+hj7yds5i5ZuBQpwbtfWXh7R3IFhJCjzDMc2cR0w9XGiukoSFCJpgQxjMEg FdMnZ82OUK3UWVaAYvOifklCi5EIFmaTRf6lOof/fYrp2oDE/g1BGbyf7LQ0RrXxZ9h4 YdvlpXnK3Xl4PB2J/4hTMP/01AEcwMHf8dAo50bvv1jE8iZUE1tiucJdukoy8FYVqxdE hWvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=U9G8Ahwj; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m4si5205790pgj.61.2018.11.30.07.26.10; Fri, 30 Nov 2018 07:26:44 -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=@kernel.org header.s=default header.b=U9G8Ahwj; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726771AbeLACfG (ORCPT + 99 others); Fri, 30 Nov 2018 21:35:06 -0500 Received: from mail.kernel.org ([198.145.29.99]:52558 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726519AbeLACfF (ORCPT ); Fri, 30 Nov 2018 21:35:05 -0500 Received: from quaco.infradead.org (unknown [179.97.41.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E761C20868; Fri, 30 Nov 2018 15:25:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543591525; bh=YnUhBgI7GmanGOODiaoIpAmmhmxpm5Ko5iOH8ys2vis=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=U9G8AhwjwEEiizz3+hNfJalx4X7mbb2IWZG29y8mxiyUPac+5Zop5GJlrms7tx8NQ P5ehws4opYws0Yb7T5XirgTq+NVZA+l5cYHIua6PkypFttUkm2BD9+F9LdU9q8SV4O 86nE5YWZsktiPbbeoXJrFN0sQs5HfE4GyK/ZxhsI= Received: by quaco.infradead.org (Postfix, from userid 1000) id 9B6E440358; Fri, 30 Nov 2018 12:25:21 -0300 (-03) Date: Fri, 30 Nov 2018 12:25:21 -0300 From: Arnaldo Carvalho de Melo To: leo.yan@linaro.org 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: <20181130152521.GA10748@kernel.org> References: <1543572365-11706-1-git-send-email-leo.yan@linaro.org> <20181130102154.GA3617@krava> <20181130142140.GB11833@leoy-ThinkPad-X240s> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181130142140.GB11833@leoy-ThinkPad-X240s> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 :-) - Arnaldo