[PATCH] perf tools: Fix typos Muliplier -> Multiplier

Andrew Kreimer posted 1 patch 2 weeks, 1 day ago
tools/perf/util/intel-bts.c | 2 +-
tools/perf/util/intel-pt.c  | 2 +-
tools/perf/util/tsc.c       | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
[PATCH] perf tools: Fix typos Muliplier -> Multiplier
Posted by Andrew Kreimer 2 weeks, 1 day ago
There are some typos in fprintf messages.
Fix them via codespell.

Signed-off-by: Andrew Kreimer <algonell@gmail.com>
---
 tools/perf/util/intel-bts.c | 2 +-
 tools/perf/util/intel-pt.c  | 2 +-
 tools/perf/util/tsc.c       | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/perf/util/intel-bts.c b/tools/perf/util/intel-bts.c
index 3ea82d5e8d2e..a7c589fecb98 100644
--- a/tools/perf/util/intel-bts.c
+++ b/tools/perf/util/intel-bts.c
@@ -808,7 +808,7 @@ static int intel_bts_synth_events(struct intel_bts *bts,
 static const char * const intel_bts_info_fmts[] = {
 	[INTEL_BTS_PMU_TYPE]		= "  PMU Type           %"PRId64"\n",
 	[INTEL_BTS_TIME_SHIFT]		= "  Time Shift         %"PRIu64"\n",
-	[INTEL_BTS_TIME_MULT]		= "  Time Muliplier     %"PRIu64"\n",
+	[INTEL_BTS_TIME_MULT]		= "  Time Multiplier    %"PRIu64"\n",
 	[INTEL_BTS_TIME_ZERO]		= "  Time Zero          %"PRIu64"\n",
 	[INTEL_BTS_CAP_USER_TIME_ZERO]	= "  Cap Time Zero      %"PRId64"\n",
 	[INTEL_BTS_SNAPSHOT_MODE]	= "  Snapshot mode      %"PRId64"\n",
diff --git a/tools/perf/util/intel-pt.c b/tools/perf/util/intel-pt.c
index 3fe67bf652b6..30be6dfe09eb 100644
--- a/tools/perf/util/intel-pt.c
+++ b/tools/perf/util/intel-pt.c
@@ -4110,7 +4110,7 @@ static int intel_pt_parse_vm_tm_corr_args(struct intel_pt *pt)
 static const char * const intel_pt_info_fmts[] = {
 	[INTEL_PT_PMU_TYPE]		= "  PMU Type            %"PRId64"\n",
 	[INTEL_PT_TIME_SHIFT]		= "  Time Shift          %"PRIu64"\n",
-	[INTEL_PT_TIME_MULT]		= "  Time Muliplier      %"PRIu64"\n",
+	[INTEL_PT_TIME_MULT]		= "  Time Multiplier     %"PRIu64"\n",
 	[INTEL_PT_TIME_ZERO]		= "  Time Zero           %"PRIu64"\n",
 	[INTEL_PT_CAP_USER_TIME_ZERO]	= "  Cap Time Zero       %"PRId64"\n",
 	[INTEL_PT_TSC_BIT]		= "  TSC bit             %#"PRIx64"\n",
diff --git a/tools/perf/util/tsc.c b/tools/perf/util/tsc.c
index 2e33a20e1e1b..511a517ce613 100644
--- a/tools/perf/util/tsc.c
+++ b/tools/perf/util/tsc.c
@@ -119,7 +119,7 @@ size_t perf_event__fprintf_time_conv(union perf_event *event, FILE *fp)
 	size_t ret;
 
 	ret  = fprintf(fp, "\n... Time Shift      %" PRI_lu64 "\n", tc->time_shift);
-	ret += fprintf(fp, "... Time Muliplier  %" PRI_lu64 "\n", tc->time_mult);
+	ret += fprintf(fp, "... Time Multiplier %" PRI_lu64 "\n", tc->time_mult);
 	ret += fprintf(fp, "... Time Zero       %" PRI_lu64 "\n", tc->time_zero);
 
 	/*
-- 
2.47.0.245.gfacbe4f633
Re: [PATCH] perf tools: Fix typos Muliplier -> Multiplier
Posted by Adrian Hunter 1 week, 5 days ago
On 8/11/24 15:47, Andrew Kreimer wrote:
> There are some typos in fprintf messages.
> Fix them via codespell.
> 
> Signed-off-by: Andrew Kreimer <algonell@gmail.com>

Reviewed-by: Adrian Hunter <adrian.hunter@intel.com>

> ---
>  tools/perf/util/intel-bts.c | 2 +-
>  tools/perf/util/intel-pt.c  | 2 +-
>  tools/perf/util/tsc.c       | 2 +-
>  3 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/tools/perf/util/intel-bts.c b/tools/perf/util/intel-bts.c
> index 3ea82d5e8d2e..a7c589fecb98 100644
> --- a/tools/perf/util/intel-bts.c
> +++ b/tools/perf/util/intel-bts.c
> @@ -808,7 +808,7 @@ static int intel_bts_synth_events(struct intel_bts *bts,
>  static const char * const intel_bts_info_fmts[] = {
>  	[INTEL_BTS_PMU_TYPE]		= "  PMU Type           %"PRId64"\n",
>  	[INTEL_BTS_TIME_SHIFT]		= "  Time Shift         %"PRIu64"\n",
> -	[INTEL_BTS_TIME_MULT]		= "  Time Muliplier     %"PRIu64"\n",
> +	[INTEL_BTS_TIME_MULT]		= "  Time Multiplier    %"PRIu64"\n",
>  	[INTEL_BTS_TIME_ZERO]		= "  Time Zero          %"PRIu64"\n",
>  	[INTEL_BTS_CAP_USER_TIME_ZERO]	= "  Cap Time Zero      %"PRId64"\n",
>  	[INTEL_BTS_SNAPSHOT_MODE]	= "  Snapshot mode      %"PRId64"\n",
> diff --git a/tools/perf/util/intel-pt.c b/tools/perf/util/intel-pt.c
> index 3fe67bf652b6..30be6dfe09eb 100644
> --- a/tools/perf/util/intel-pt.c
> +++ b/tools/perf/util/intel-pt.c
> @@ -4110,7 +4110,7 @@ static int intel_pt_parse_vm_tm_corr_args(struct intel_pt *pt)
>  static const char * const intel_pt_info_fmts[] = {
>  	[INTEL_PT_PMU_TYPE]		= "  PMU Type            %"PRId64"\n",
>  	[INTEL_PT_TIME_SHIFT]		= "  Time Shift          %"PRIu64"\n",
> -	[INTEL_PT_TIME_MULT]		= "  Time Muliplier      %"PRIu64"\n",
> +	[INTEL_PT_TIME_MULT]		= "  Time Multiplier     %"PRIu64"\n",
>  	[INTEL_PT_TIME_ZERO]		= "  Time Zero           %"PRIu64"\n",
>  	[INTEL_PT_CAP_USER_TIME_ZERO]	= "  Cap Time Zero       %"PRId64"\n",
>  	[INTEL_PT_TSC_BIT]		= "  TSC bit             %#"PRIx64"\n",
> diff --git a/tools/perf/util/tsc.c b/tools/perf/util/tsc.c
> index 2e33a20e1e1b..511a517ce613 100644
> --- a/tools/perf/util/tsc.c
> +++ b/tools/perf/util/tsc.c
> @@ -119,7 +119,7 @@ size_t perf_event__fprintf_time_conv(union perf_event *event, FILE *fp)
>  	size_t ret;
>  
>  	ret  = fprintf(fp, "\n... Time Shift      %" PRI_lu64 "\n", tc->time_shift);
> -	ret += fprintf(fp, "... Time Muliplier  %" PRI_lu64 "\n", tc->time_mult);
> +	ret += fprintf(fp, "... Time Multiplier %" PRI_lu64 "\n", tc->time_mult);
>  	ret += fprintf(fp, "... Time Zero       %" PRI_lu64 "\n", tc->time_zero);
>  
>  	/*
Re: [PATCH] perf tools: Fix typos Muliplier -> Multiplier
Posted by Arnaldo Carvalho de Melo 1 week, 5 days ago
On Mon, Nov 11, 2024 at 08:17:29AM +0200, Adrian Hunter wrote:
> On 8/11/24 15:47, Andrew Kreimer wrote:
> > There are some typos in fprintf messages.
> > Fix them via codespell.
 
> > Signed-off-by: Andrew Kreimer <algonell@gmail.com>
 
> Reviewed-by: Adrian Hunter <adrian.hunter@intel.com>

Thanks, applied to perf-tools-next,

- Arnaldo