Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10817330ybi; Thu, 11 Jul 2019 11:30:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqwzoUk8yOwxOhZHauHQ0I+1toSo+nPaXc0S/gj+/CHsCNocaJDTIXkJvmp1bqL07NfSaT8g X-Received: by 2002:a63:6d6:: with SMTP id 205mr6041301pgg.262.1562869818336; Thu, 11 Jul 2019 11:30:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562869818; cv=none; d=google.com; s=arc-20160816; b=A5v4IrnJIfN2V/sxOHm5Q6muFw7cfLNWQP0jQW7k9/ZNDK83IYP8CVcPXu3BhhHvdw 8MPQmLx3N/YPTr8f/ALXPxJf77/A9XWl2qe/llq2+hgI1QIECXhD0ZSyq1JcQPFQTj43 8bOZoNi6IwxcSm275a+X7uOjTAkbViuaOdD9PKKvzQm2sjpGKZSQDlFtzgTeWrv7anaN fnbtb7VBrpcZ67Pd49uPM2/If2+W6QPDT1PjdHi7fbP5Sz1tA/D8U+hW/xzYBakeg5Uw AgY1qJKsg+sPKy8E5MfByAuBhS/hMC457Gf9ePJ9NHknOhCfXR8fWJpL3UHfAIitvVAz DfsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=nZ2xCbqq+ZyeKJrAKxbFQORvcQl19A1AFBpXVN56rT0=; b=WmlWi64iRUAOxLtqB8E9jxnmdhznUKTrABlKum3qJ/oI4jRumAq0/RDwJfwO42e145 P4La/Leq1WztDQ24wHVVwNtVxg7sByizsflJN0U1AwcRw37rVkPlf0QgfvKmRLYbcZU9 Ue99WcutTYfyCnl8pWQAVon6sV2QWjjo4QxyYzxeA7VBcyOlH2qYVoMb0AuqPPqYC8s1 VCUxK3CIe8Xcpfh/aqJg+bLIQ6s/3q9gBlUD97T0PjHkanNctBiwEFECLhLPfqlFLuA0 otTQ/JqmeoV21gYt910mQuRkEi6kn+IG54WMJlAcLtF4cpMypCdgqXyJs+g9aDPjfEwN 7boQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z72si5668082pgd.34.2019.07.11.11.30.02; Thu, 11 Jul 2019 11:30:18 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728823AbfGKSTf (ORCPT + 99 others); Thu, 11 Jul 2019 14:19:35 -0400 Received: from mga17.intel.com ([192.55.52.151]:57793 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728486AbfGKSTb (ORCPT ); Thu, 11 Jul 2019 14:19:31 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Jul 2019 11:19:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,479,1557212400"; d="scan'208";a="168097594" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.137]) by fmsmga007.fm.intel.com with ESMTP; 11 Jul 2019 11:19:30 -0700 Received: by tassilo.localdomain (Postfix, from userid 1000) id 044FB300FEA; Thu, 11 Jul 2019 11:19:30 -0700 (PDT) From: Andi Kleen To: acme@kernel.org Cc: jolsa@kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Andi Kleen Subject: [PATCH 3/3] perf script: Improve man page description of metrics Date: Thu, 11 Jul 2019 11:19:22 -0700 Message-Id: <20190711181922.18765-3-andi@firstfloor.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190711181922.18765-1-andi@firstfloor.org> References: <20190711181922.18765-1-andi@firstfloor.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andi Kleen Clarify that a metric is based on events, not referring to itself. Also some improvements with the sentences. Signed-off-by: Andi Kleen --- tools/perf/Documentation/perf-script.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/perf/Documentation/perf-script.txt b/tools/perf/Documentation/perf-script.txt index 042b9e5dcc32..caaab28f8400 100644 --- a/tools/perf/Documentation/perf-script.txt +++ b/tools/perf/Documentation/perf-script.txt @@ -228,11 +228,11 @@ OPTIONS With the metric option perf script can compute metrics for sampling periods, similar to perf stat. This requires - specifying a group with multiple metrics with the :S option + specifying a group with multiple events defining metrics with the :S option for perf record. perf will sample on the first event, and - compute metrics for all the events in the group. Please note + print computed metrics for all the events in the group. Please note that the metric computed is averaged over the whole sampling - period, not just for the sample point. + period (since the last sample), not just for the sample point. For sample events it's possible to display misc field with -F +misc option, following letters are displayed for each bit: -- 2.20.1