Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp420449pxk; Fri, 11 Sep 2020 10:22:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfNo0326hreNj8OBFXos8bwq4kLrNTfRafs6xwU4nFghXw+ygSDMP1gB3yK/LQchRJSHy1 X-Received: by 2002:a17:906:c2c5:: with SMTP id ch5mr3122550ejb.183.1599844976458; Fri, 11 Sep 2020 10:22:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599844976; cv=none; d=google.com; s=arc-20160816; b=UbS51ALpx0DuO2xGIJLxBfw5VmKTo2WbrFqfTq39QFPchzu/2VMfK1zKymeoREu9iV ODLv4cSR1R/os7tObKSW2tn9B87ZnVZ4Sent5Imwt1Pr/2rr9Q/8a4O3iyrcQmIHtLwi rgr3AS9Kgo5qvdqt8NsR/2n+DFBrvqJlX5GNDfieA96p8Gf6h9BDfcq6Hay3O6MkpC/S 4upVEjMdibrt8O+bEYgITfYYHFWoy8Mw9VCY5V1DdADgRqKYXo2cffJ6lXHZsN6gBMKt z360GUDF73taJz41wPgDVmMozJPHpBPeWCX/7Rkh6YWPtRyhAkSfzTmJBvLDkRaw0f+y 3YGw== 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=Lwn5zhSROK22UvnmbJFHdmfY7R/MrJ1IMjnuAgz7hps=; b=IIVvi8ZyR0JtHn2ySLk3oB0Z/TcIlU254EwQoYbet3OVQphwmcJX+PHTW/U9FLZsWN AQMxnbKrziJxFq0hgygGKgrDu9hIf88F7e6Ti1xgjNsY2mqEbrz5GeisLtYmnF09RuzL PwdSqb91I1PW4J0/tQiZCCJQJIfUTOQWp+yMjHRcickCXl261uZBHXNtQrQYoEwRSSRJ vMj6KA7K34I1nnshz11Sqma2k4e1t87IQYFdlkSWqelHOpUQuiu/x7n5Ccwnp10+LySn e5bstO9OpulmcsaCdE8oiycA91Lc9GNV51BLwDM43S1k3S/A0rzytNKQ+aVV0QAIVKbe 8GRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=f9FhIvEG; 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 ds2si1726813ejc.117.2020.09.11.10.22.33; Fri, 11 Sep 2020 10:22:56 -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=f9FhIvEG; 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 S1726320AbgIKRUn (ORCPT + 99 others); Fri, 11 Sep 2020 13:20:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:53998 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726156AbgIKNBU (ORCPT ); Fri, 11 Sep 2020 09:01:20 -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 4144622273; Fri, 11 Sep 2020 12:56:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599829010; bh=2KyM0zyTyAF7Q0cHjuH0ooZbkjR8Hm3BGkhz+dWheOM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=f9FhIvEGqm/BJhJGeQkC3q3JLdvUKqdMV1MdIz8QdU3des/1ARC8bOv2PfRrQSnQo yRU+ue9TImGLpRQ0AOUdIyFNgGFEk205Pc/73ehEn1INGbO6mIHJHl9nXua80GTrzw 56Nqe3uW3D1KqOckV9zbMO3977yqKw90NLgnx/Tk= 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.9 03/71] perf record/stat: Explicitly call out event modifiers in the documentation Date: Fri, 11 Sep 2020 14:45:47 +0200 Message-Id: <20200911122505.108443345@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200911122504.928931589@linuxfoundation.org> References: <20200911122504.928931589@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_source/devices//format/*. --- a/tools/perf/Documentation/perf-stat.txt +++ b/tools/perf/Documentation/perf-stat.txt @@ -39,6 +39,10 @@ report:: - 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/*