Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp428697pxk; Fri, 11 Sep 2020 10:36:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzc2kGx8FixzOsHAIKTtODQ7UklMVLqoHDdwG5JmrdVR2YZlvQkUKfdbBbn/XOD16rU0EL1 X-Received: by 2002:aa7:dd16:: with SMTP id i22mr3397023edv.335.1599845786283; Fri, 11 Sep 2020 10:36:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599845786; cv=none; d=google.com; s=arc-20160816; b=rxayZaNL2Q2Rxxy2xUOKqPF7KIk++PefDsnbAmInrARONGRxTMF276OFX1YL8S9Mc5 x0ZPORY5ollend0rujTPRo4aeCDDv5loPmitJ1cTsrDLHl2qitv7PYqy19OWO1ueuots F8SRESPxM2J15Pjge9umh4DFc6UvggHHJuvkO5nmiFxJDxr4cQDTHoHHFchkdyZ9RazW +qymOgJriW9OQ1ALw/WWunkoNCJP7zoaQaUc48iZFR4AhRjCcmx1XYFggJdOxGLAAOxj mj4QdCydfbJRvz5K9ZIhJSW0Sh4KM+TeDJAht9CC0j9OeM+JhGT/v50pJrfXAWcxOKix 9DdA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Ukb9HUacix6tV64yp7kY8rgBrdkvyUyfMTrqaI9FZLA=; b=uSuuU4TLYgUcfeM2f70EazBZGcjcieEF7tFaHElaxgwl4FYJMLx62SZxUAA+I4Hey0 cpo3rKH60u4F5Hg8NKcZnjOLtcHlL1uMXxegZQnULtI+0I5pyx+/fSxEx1F/GLrBI+89 21OWaCiKj/xHS6JzGnH9Z3Q6V0zed7U6KB/cVo503fSJygJseP4k2XMl0TfPUr9IskkU l0vUAMEHK2tJoxB9EJSpQTJsug/e9VmzMO0xxb68lNW3BpWM18RUkU2d3Pl/oJiVb8vI +jJTNIIw+TNnYN3FIp73kYtXhWp2M/vzzD5qIHhCOBa+/djlLnCBQG4YRoocPmT6mTTI 1/rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iQxqpltc; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bk4si1751551ejb.215.2020.09.11.10.35.56; Fri, 11 Sep 2020 10:36:26 -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; dkim=pass header.i=@kernel.org header.s=default header.b=iQxqpltc; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726365AbgIKRdl (ORCPT + 99 others); Fri, 11 Sep 2020 13:33:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:49250 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726046AbgIKMye (ORCPT ); Fri, 11 Sep 2020 08:54:34 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 3744E22210; Fri, 11 Sep 2020 12:53:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599828828; bh=kruzOKCTPxnOTx70+MyuJMTS8UQqa8dxkdaLKKGd+l8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iQxqpltcT7xD59DX+eek2pazPNtzFt7bVq+FJrsQy0iU3NiqGeSOYA3xaGGEx7OEb 0M4pEpeDpOOmJVRkWX0d7DJy5HkEWWrKo+7iLFxELU545oKAY8J0d4KFSfCCK+B7P1 hgPc+0zrUn8nsvRoxMQtGCveCH7Roc9KHhNUiaOg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kim Phillips , Adrian Hunter , Alexander Shishkin , Alexey Budankov , Ian Rogers , Jin Yao , Jiri Olsa , Mark Rutland , Namhyung Kim , Paul Clarke , Peter Zijlstra , Stephane Eranian , Tony Jones , Arnaldo Carvalho de Melo Subject: [PATCH 4.4 03/62] perf record/stat: Explicitly call out event modifiers in the documentation Date: Fri, 11 Sep 2020 14:45:46 +0200 Message-Id: <20200911122502.568324530@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200911122502.395450276@linuxfoundation.org> References: <20200911122502.395450276@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kim Phillips commit e48a73a312ebf19cc3d72aa74985db25c30757c1 upstream. Event modifiers are not mentioned in the perf record or perf stat manpages. Add them to orient new users more effectively by pointing them to the perf list manpage for details. Fixes: 2055fdaf8703 ("perf list: Document precise event sampling for AMD IBS") Signed-off-by: Kim Phillips Cc: Adrian Hunter Cc: Alexander Shishkin Cc: Alexey Budankov Cc: Ian Rogers Cc: Jin Yao Cc: Jiri Olsa Cc: Mark Rutland Cc: Namhyung Kim Cc: Paul Clarke Cc: Peter Zijlstra Cc: Stephane Eranian Cc: Tony Jones Cc: stable@vger.kernel.org Link: http://lore.kernel.org/lkml/20200901215853.276234-1-kim.phillips@amd.com Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Greg Kroah-Hartman --- tools/perf/Documentation/perf-record.txt | 4 ++++ tools/perf/Documentation/perf-stat.txt | 4 ++++ 2 files changed, 8 insertions(+) --- a/tools/perf/Documentation/perf-record.txt +++ b/tools/perf/Documentation/perf-record.txt @@ -33,6 +33,10 @@ OPTIONS - a raw PMU event (eventsel+umask) in the form of rNNN where NNN is a hexadecimal event descriptor. + - a symbolic or raw PMU event followed by an optional colon + and a list of event modifiers, e.g., cpu-cycles:p. See the + linkperf:perf-list[1] man page for details on event modifiers. + - a symbolically formed PMU event like 'pmu/param1=0x3,param2/' where 'param1', 'param2', etc are defined as formats for the PMU in /sys/bus/event_sources/devices//format/*. --- a/tools/perf/Documentation/perf-stat.txt +++ b/tools/perf/Documentation/perf-stat.txt @@ -32,6 +32,10 @@ OPTIONS - a raw PMU event (eventsel+umask) in the form of rNNN where NNN is a hexadecimal event descriptor. + - a symbolic or raw PMU event followed by an optional colon + and a list of event modifiers, e.g., cpu-cycles:p. See the + linkperf:perf-list[1] man page for details on event modifiers. + - a symbolically formed event like 'pmu/param1=0x3,param2/' where param1 and param2 are defined as formats for the PMU in /sys/bus/event_sources/devices//format/*