[PATCH] perf docs: Correct typo of event_sources

Ian Rogers posted 1 patch 3 years, 10 months ago
tools/perf/Documentation/perf-record.txt | 2 +-
tools/perf/Documentation/perf-stat.txt   | 2 +-
tools/perf/Documentation/perf-top.txt    | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
[PATCH] perf docs: Correct typo of event_sources
Posted by Ian Rogers 3 years, 10 months ago
The sysfs directory is called event_source.

Reported-by: Kevin Nomura <nomurak@google.com>
Signed-off-by: Ian Rogers <irogers@google.com>
---
 tools/perf/Documentation/perf-record.txt | 2 +-
 tools/perf/Documentation/perf-stat.txt   | 2 +-
 tools/perf/Documentation/perf-top.txt    | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/perf/Documentation/perf-record.txt b/tools/perf/Documentation/perf-record.txt
index b4e9ef7edfef..cf8ad50f3de1 100644
--- a/tools/perf/Documentation/perf-record.txt
+++ b/tools/perf/Documentation/perf-record.txt
@@ -33,7 +33,7 @@ OPTIONS
         - a raw PMU event in the form of rN where N is a hexadecimal value
           that represents the raw register encoding with the layout of the
           event control registers as described by entries in
-          /sys/bus/event_sources/devices/cpu/format/*.
+          /sys/bus/event_source/devices/cpu/format/*.
 
         - a symbolic or raw PMU event followed by an optional colon
 	  and a list of event modifiers, e.g., cpu-cycles:p.  See the
diff --git a/tools/perf/Documentation/perf-stat.txt b/tools/perf/Documentation/perf-stat.txt
index 8d1cde00b8d6..d8a33f4a47c5 100644
--- a/tools/perf/Documentation/perf-stat.txt
+++ b/tools/perf/Documentation/perf-stat.txt
@@ -39,7 +39,7 @@ report::
 	- a raw PMU event in the form of rN where N is a hexadecimal value
 	  that represents the raw register encoding with the layout of the
 	  event control registers as described by entries in
-	  /sys/bus/event_sources/devices/cpu/format/*.
+	  /sys/bus/event_source/devices/cpu/format/*.
 
         - a symbolic or raw PMU event followed by an optional colon
 	  and a list of event modifiers, e.g., cpu-cycles:p.  See the
diff --git a/tools/perf/Documentation/perf-top.txt b/tools/perf/Documentation/perf-top.txt
index cac3dfbee7d8..c1fdba26bf53 100644
--- a/tools/perf/Documentation/perf-top.txt
+++ b/tools/perf/Documentation/perf-top.txt
@@ -41,7 +41,7 @@ Default is to monitor all CPUS.
 	(use 'perf list' to list all events) or a raw PMU event in the form
 	of rN where N is a hexadecimal value that represents the raw register
 	encoding with the layout of the event control registers as described
-	by entries in /sys/bus/event_sources/devices/cpu/format/*.
+	by entries in /sys/bus/event_source/devices/cpu/format/*.
 
 -E <entries>::
 --entries=<entries>::
-- 
2.36.1.255.ge46751e96f-goog
Re: [PATCH] perf docs: Correct typo of event_sources
Posted by Sandipan Das 3 years, 10 months ago
On 6/3/2022 10:27 AM, Ian Rogers wrote:
> The sysfs directory is called event_source.
> 
> Reported-by: Kevin Nomura <nomurak@google.com>
> Signed-off-by: Ian Rogers <irogers@google.com>
> ---
>  tools/perf/Documentation/perf-record.txt | 2 +-
>  tools/perf/Documentation/perf-stat.txt   | 2 +-
>  tools/perf/Documentation/perf-top.txt    | 2 +-
>  3 files changed, 3 insertions(+), 3 deletions(-)
> 
>  [...]

Thanks for fixing these.

Reviewed-by: Sandipan Das <sandipan.das@amd.com>
Re: [PATCH] perf docs: Correct typo of event_sources
Posted by Arnaldo Carvalho de Melo 3 years, 10 months ago
Em Fri, Jun 03, 2022 at 11:30:00AM +0530, Sandipan Das escreveu:
> 
> On 6/3/2022 10:27 AM, Ian Rogers wrote:
> > The sysfs directory is called event_source.
> > 
> > Reported-by: Kevin Nomura <nomurak@google.com>
> > Signed-off-by: Ian Rogers <irogers@google.com>
> > ---
> >  tools/perf/Documentation/perf-record.txt | 2 +-
> >  tools/perf/Documentation/perf-stat.txt   | 2 +-
> >  tools/perf/Documentation/perf-top.txt    | 2 +-
> >  3 files changed, 3 insertions(+), 3 deletions(-)
> > 
> >  [...]
> 
> Thanks for fixing these.
> 
> Reviewed-by: Sandipan Das <sandipan.das@amd.com>

Thanks, applied.

- Arnaldo