Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8988550ybi; Tue, 23 Jul 2019 19:33:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqwsaxPy3XM0dy8TIMWVp+ZHaV93MYMGbFf5mjLHM8J1yvCxfOpKIHDs4bKNUBmWD7PxG6Sm X-Received: by 2002:a17:902:704a:: with SMTP id h10mr81695744plt.337.1563935582919; Tue, 23 Jul 2019 19:33:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563935582; cv=none; d=google.com; s=arc-20160816; b=bsBnv0eb5LJlJFIdnMTOH75sPsr/ZK+LKtzfvaPkfqajAZXvILckPB/viGk1ec+p+f 3cXwT2ph5CRSxiceRHlfPSejPdDp0aTrHsQoyPy684ELZYult5smRRELgHRJ5QRZ8OZD 8M9n+VBF60QyZWFrPJc6q20NVgCsq0l1+Yud7FVJz8qKKauFmgT9qx5L/90g7Om3fDb7 pnT2jhm4qagzBuXbRIc5v0Q/1EjDnAp0GsxRzfoNu7cJJk3Yv84fZi9Xt4Qyx4KlrpO8 v0kasxrDMK1UTxV7Q/hp8JeR/IWffoEIFvvugnXhMdwmvShMdQ5+kRrEwJ54GUHlXzcH W8Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:dkim-signature:dkim-filter; bh=H9KbfxF8BQHFZl9IR2r05MTgWvvujShaR8IVagHtCnU=; b=ka0hZLmGVU6fr6XviQlaV3XCuXerpCd8Tj3s6A//dC3LxJjk6U1y6KNf4zTxn6We8S gTnLc+eSLvpWrscAahIIGRae9U1uYhHS7OqAVkgVN/xu+bzuRJzsYJms2krLnnYL/9U4 mw6hrYOtIEp1CFxdBFnc/1ebmOaUu/rXru/iKgyHpTpZIVIhk04cu6E6VHjtbvzGXYp7 1ZdY9ZS9LUn9tj39ihm2AOUE/9gyi4nBarkv33+7V2rEbLpmfTHdpe3j3z+EpFyOYWy1 tCUZ60l/Rn45D11bS98bCeGWRrURHT4e/MhW3TkyHS5vz7JrpnixiwCFG9kAGagGGBYv PxPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2019071901 header.b=OZDaTl7I; 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=zytor.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d13si13903620pgu.268.2019.07.23.19.32.47; Tue, 23 Jul 2019 19:33:02 -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; dkim=pass header.i=@zytor.com header.s=2019071901 header.b=OZDaTl7I; 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=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392186AbfGWVrM (ORCPT + 99 others); Tue, 23 Jul 2019 17:47:12 -0400 Received: from terminus.zytor.com ([198.137.202.136]:52291 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392173AbfGWVrM (ORCPT ); Tue, 23 Jul 2019 17:47:12 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x6NLl4rJ253003 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Tue, 23 Jul 2019 14:47:04 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 terminus.zytor.com x6NLl4rJ253003 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2019071901; t=1563918425; bh=H9KbfxF8BQHFZl9IR2r05MTgWvvujShaR8IVagHtCnU=; h=Date:From:Cc:Reply-To:In-Reply-To:References:To:Subject:From; b=OZDaTl7IFMlnApjBI80Xz7DpuMcsBtjTlxWoTSoU5yBBetvvYOMkkCr1YdjLiNeId lkFE3AjhVLnok6T4Y+1x6l2kNH8uKS2YfGcGocG1AF6NIiu8iHgS89TpCAuNK3NEhv vblNSIKcVkB4yApccLVIEdYh1G0v998zYZ6brrHYd++lLgn3xqmjyZdshsoje9pPrW g63/esvCDVmio+XsD04EZbW6nfvh/DMznlzWb3cQy9d20LTFdrcWXP1QhSBikrgO7c u9ht2F+1fdoPn0SKTLxd9y/xf/UUtXdoB6aRt+8E3cPi06yxeVryuE2S2aS0NaHMvQ dCWx2bk6TWFWQ== Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x6NLl3Cw253000; Tue, 23 Jul 2019 14:47:03 -0700 Date: Tue, 23 Jul 2019 14:47:03 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Andi Kleen Message-ID: Cc: tglx@linutronix.de, acme@redhat.com, mingo@kernel.org, linux-kernel@vger.kernel.org, jolsa@kernel.org, hpa@zytor.com, ak@linux.intel.com Reply-To: linux-kernel@vger.kernel.org, jolsa@kernel.org, tglx@linutronix.de, hpa@zytor.com, mingo@kernel.org, acme@redhat.com, ak@linux.intel.com In-Reply-To: <20190711181922.18765-3-andi@firstfloor.org> References: <20190711181922.18765-3-andi@firstfloor.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/urgent] perf script: Improve man page description of metrics Git-Commit-ID: 7db7218a7ea577f04c2df92453d47ab5ebfc8863 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-0.3 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_96_Q,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 7db7218a7ea577f04c2df92453d47ab5ebfc8863 Gitweb: https://git.kernel.org/tip/7db7218a7ea577f04c2df92453d47ab5ebfc8863 Author: Andi Kleen AuthorDate: Thu, 11 Jul 2019 11:19:22 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 23 Jul 2019 08:58:11 -0300 perf script: Improve man page description of metrics Clarify that a metric is based on events, not referring to itself. Also some improvements with the sentences. Signed-off-by: Andi Kleen Cc: Jiri Olsa Link: http://lkml.kernel.org/r/20190711181922.18765-3-andi@firstfloor.org Signed-off-by: Arnaldo Carvalho de Melo --- 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: