Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3807298imu; Fri, 30 Nov 2018 06:23:03 -0800 (PST) X-Google-Smtp-Source: AFSGD/VnbGAaSUx3+mP95WT4bZpN0aIRVAnlmFWRjJumDd6GpZ2/0ylUNDgvkvDibjxBm8x3o1to X-Received: by 2002:a63:eb0e:: with SMTP id t14mr5060790pgh.445.1543587783575; Fri, 30 Nov 2018 06:23:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543587783; cv=none; d=google.com; s=arc-20160816; b=CVvMBQCeV/4QMSf1AFpIDdWL3z9mbO7BACzNf5QEAalXKJ5jd2CCfls93u2azFfTSg NKCiB04v6rtJncVvqySwoqaGvgSH3DXArjQHjpAly9rwc0SsuA2brrwE+uhJUsvBdUgH 8OAqhgxxnC7ijIHixYwroMI9dWzbIy9IySZ4w10DwQFrIeDb0k+CZlSFxnPE6lx6EgWJ ogPr3F7wsm/nHOZBIQ+M2a0ORNko6ebLXrW1Xow9AmOIcT/4UuzTgL14gXKvMsRWoAV7 g3EVxGlSKD3f5fQsuh2sDpnxHTyhLKnE/MAKQRybCzAt7lJKNWpeqYBuDQCzz40wc2Mw eFJQ== 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=hrz6jHuLdhjE2uhw2f7vRbC/QCZBWo7QMTqDcGV57oc=; b=IkFxlqwlXOq5gfJp8kYFFPSe2/pUU94j0pZ/igtAyneaEzbNEojLQ9sUrtzMgv4QVm mHlcRCYzOfxHzJ/62IROcHucyuIY+evVVItPJ4xftekR2tlJtopDNq2eQ8x5gsQPgTyt 5UvGjfb4jxF8m0rJUhpNX1v9T7KAa7dHHsFNkvxLj/dOV5HmGYgJ2dzVqRDbHXH7+Xg3 DOkNtvJWcczfrvDviFTHafgyKZkzr8R1egTd2qQMg0AdakpvJaptA4eSdvGT7PsHPmN5 JCLsd4RR/ioCcOgorVbHWYQDiP2W033qdRsyDar0sxgdR6YmMn7CX7nilMj4KVVGROmJ m5dQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GMkRrWEC; 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 d185-v6si5257683pfc.256.2018.11.30.06.22.33; Fri, 30 Nov 2018 06:23:03 -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=GMkRrWEC; 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 S1726932AbeLABbR (ORCPT + 99 others); Fri, 30 Nov 2018 20:31:17 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:35747 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726489AbeLABbQ (ORCPT ); Fri, 30 Nov 2018 20:31:16 -0500 Received: by mail-wr1-f67.google.com with SMTP id 96so5487268wrb.2 for ; Fri, 30 Nov 2018 06:21:48 -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=hrz6jHuLdhjE2uhw2f7vRbC/QCZBWo7QMTqDcGV57oc=; b=GMkRrWEChzP4d00iC/Jm4I3/50OeDGaJQyFG3faVCG4F0itlTaPdnrCPMQWZ0FyM9J pI7kNbgXD8pmTIu0M0vbgUj3sc1TDZrV4SC01h8g906slR84hwXKTosce3oil8y0Fev1 gtTuJ5pWnGw1UAXRSG/mbLrXuiGcEpx/oBl78= 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=hrz6jHuLdhjE2uhw2f7vRbC/QCZBWo7QMTqDcGV57oc=; b=XSrll02rbYzpvSKrdup2dtdK9//U9k+3eEMVBwSWrRVMafWwxhXYHEMHZl6XsPTjaq 1CQ/o3I41nEgBvFosqr74Y4C+L4QDTQ4/kULQKgqLCiOaD/dw+IcdVRCbD1BWErdmz1e Wb1XVPxRCIeK3NxK91ODfQcVALYvhgkmy+W22lHMxRJAPa6Zzn80Xsf7NuXXQpF808h8 IB2AQSd8zbDUFpSJ0pKw7aaeBtQamDOVmvdGpMYtBOGgL/u0MliDYH5TSONtnRHtMORo t9geZUlmqNLRP7Z5Bw4bYukq9/r3Y0FitOo7kFwwmk3ug5P7BkqOI5NG6iMey2D5bxU8 9t7w== X-Gm-Message-State: AA+aEWZANte+PeALu6cewnkIHLRE0/tD4GFODcklYRnhWthh/nXNfEa+ IwQFTRJz3wRXNuPKdVVGM6IfdQ== X-Received: by 2002:a5d:660e:: with SMTP id n14mr5054675wru.19.1543587707710; Fri, 30 Nov 2018 06:21:47 -0800 (PST) Received: from leoy-ThinkPad-X240s ([209.250.228.18]) by smtp.gmail.com with ESMTPSA id t6sm1645962wru.11.2018.11.30.06.21.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Nov 2018 06:21:46 -0800 (PST) Date: Fri, 30 Nov 2018 22:21:40 +0800 From: leo.yan@linaro.org To: Jiri Olsa Cc: Arnaldo Carvalho de Melo , Alexander Shishkin , Andi Kleen , linux-kernel@vger.kernel.org, Daniel Thompson Subject: Re: [PATCH] perf evsel: Correct clock unit to nanosecond Message-ID: <20181130142140.GB11833@leoy-ThinkPad-X240s> References: <1543572365-11706-1-git-send-email-leo.yan@linaro.org> <20181130102154.GA3617@krava> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181130102154.GA3617@krava> 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 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. Thanks, Leo Yan