Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1845194ybh; Thu, 23 Jul 2020 20:30:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHz79YGqdtp1PkFS/gfuDIed3xXoMqgQdo93G6UOgE3SjPfJV6EGyKf5kTevXXuZEzVNxr X-Received: by 2002:aa7:d297:: with SMTP id w23mr6967047edq.49.1595561439773; Thu, 23 Jul 2020 20:30:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595561439; cv=none; d=google.com; s=arc-20160816; b=o5c+F7n+jMkd+gyaEK/QCg3KKqIJMv2tuPFc5xXVABXHCbkCaQSnbnP7h3m4hudZTn yFiOfBKlN0KA9RmKeUGGFenIHQ/IkcfurCKBwHK2h1kIbyHJtvOchSRvdMmrAmRtpElT xPX522tWaVfgWsywMyeSoX++3QM4juCyAWJTMOT1CHSbfXmx2AR75wN0/I5+cqTzTFli 7fNUERrybO7mXRrRWFtbDjOggC0ebMA7S4aGARh87JFZ3BAzX1LKVMfbxb05AcQRyKLe huP6kDkVUqHkiiHDiHIRYjvVnzKwZwGg2f7dCSb+wy43LeoSKZM8pimX3/9bzPwnuygy YIqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=DikFx0aZiK7ddvAeQ5knZ1pFD9F99/VdgdgjRfHigAs=; b=h/QXgcd3qHjVeQ9Pv2OUiVx5aKuwqtsAYzwhJ/z+iAUU5z3MKUK/rcpmh4gZlusG1I lFNhTTqhwSJETJ2n4GVipv5s4xjciwglsQARVQBDR8XVVl/OaLFrjetK8cY3fu9Kq2XU Q3Y7I8iz5u0N/7MRa8ouVIyPPFKVPTajfPjBmoO8NqJmkAjGqlgVx7ywTz/1HhCowak1 UcDC6mi4A6wfBVYQ7n8v1oeLMOICf3MHeu0sRu57dxSD4SGtPwk/eDflbHQYX7/NN+EF 711bwtt5oc85fsnnHLsXIiMfSJ+H4u/sSQue5hs5Qrh8lhaykiQtD6+/lXq7smAjVDmD t8AA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v6si3580577ejr.238.2020.07.23.20.30.17; Thu, 23 Jul 2020 20:30:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726703AbgGXD3Y (ORCPT + 99 others); Thu, 23 Jul 2020 23:29:24 -0400 Received: from mga05.intel.com ([192.55.52.43]:63599 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726437AbgGXD3Y (ORCPT ); Thu, 23 Jul 2020 23:29:24 -0400 IronPort-SDR: 7sEPOlg2g0vCizuj5NeQO+2Pr3lxSbc2eSex4DLWoTp86Dxak0B800oCCvDS8mkaVy9+e0UtHV RnsFT59dYduw== X-IronPort-AV: E=McAfee;i="6000,8403,9691"; a="235532455" X-IronPort-AV: E=Sophos;i="5.75,389,1589266800"; d="scan'208";a="235532455" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jul 2020 20:29:24 -0700 IronPort-SDR: F0pCIRnT00o/gFlmlMdddXBgAQteEuDnthZw+xus5QxzuwsRyhZG1QQuCs5gkmy8w960ulnYDk 8raY/cEkWJmw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,389,1589266800"; d="scan'208";a="328786431" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.21]) by orsmga007.jf.intel.com with ESMTP; 23 Jul 2020 20:29:24 -0700 Received: by tassilo.localdomain (Postfix, from userid 1000) id EC43F301BF9; Thu, 23 Jul 2020 20:29:23 -0700 (PDT) Date: Thu, 23 Jul 2020 20:29:23 -0700 From: Andi Kleen To: kan.liang@linux.intel.com Cc: peterz@infradead.org, acme@redhat.com, mingo@kernel.org, linux-kernel@vger.kernel.org, jolsa@kernel.org, eranian@google.com, alexander.shishkin@linux.intel.com, like.xu@linux.intel.com Subject: Re: [PATCH V7 12/14] perf, tools, stat: Support new per thread TopDown metrics Message-ID: <20200724032923.GB1180481@tassilo.jf.intel.com> References: <20200723171117.9918-1-kan.liang@linux.intel.com> <20200723171117.9918-13-kan.liang@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200723171117.9918-13-kan.liang@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > + if (topdown_metric_attrs[0] && str) {` > + if (!stat_config.interval) { > + fprintf(stat_config.output, > + "Topdown accuracy may decreases when measuring long period.\n" > + "Please print the result regularly, e.g. -I1000\n"); Can you disable this warning when --metrics-only is used? In this case it doesn't matter because the error is proportional to the percentage accuracy and should be invisible. You can only see a difference when looking at the expanded counts. -andi