Re: [PATCH 3/3] tools/power turbostat: Fix --cpu summary description
From: Zhang, Rui
Date: Fri Nov 27 2026 - 00:55:08 EST
On Tue, 2026-11-24 at 11:27 +0800, Qinyun Tan wrote:
> The man page states that --cpu only filters output and that the
> summary
> always includes all CPUs. Numeric CPU selections also restrict
> counter
> collection and the summary, while core and package only filter
> displayed
> rows.
>
> Correct the option and row descriptions to match this behavior.
>
> Fixes: 0fe375290137 ("tools/power/turbostat: Obey allowed CPUs for
> system summary")
> Signed-off-by: Qinyun Tan <qinyuntan@xxxxxxxxxxxxxxxxx>
Acked-by: Zhang Rui <rui.zhang@xxxxxxxxx>
-rui
> ---
> tools/power/x86/turbostat/turbostat.8 | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tools/power/x86/turbostat/turbostat.8
> b/tools/power/x86/turbostat/turbostat.8
> index c905198d0501..c2b86d20db95 100644
> --- a/tools/power/x86/turbostat/turbostat.8
> +++ b/tools/power/x86/turbostat/turbostat.8
> @@ -92,7 +92,7 @@ name as necessary to disambiguate it from others is
> necessary. Note that option
> '%x' hex identifier of the PMT MMIO region.
> .fi
> .PP
> -\fB--cpu cpu-set\fP limit output to system summary plus the
> specified cpu-set. If cpu-set is the string "core", then the system
> summary plus the first CPU in each core are printed -- eg. subsequent
> HT siblings are not printed. Or if cpu-set is the string "package",
> then the system summary plus the first CPU in each package is
> printed. Otherwise, the system summary plus the specified set of
> CPUs are printed. The cpu-set is ordered from low to high, comma
> delimited with ".." and "-" permitted to denote a range. eg.
> 1,2,8,14..17,21-44 Multiple invocations of --cpu are OR'd together.
> +\fB--cpu cpu-set\fP select CPUs to monitor or limit the rows
> displayed. If cpu-set is the string "core", then the system summary
> plus the first CPU in each core are printed -- eg. subsequent HT
> siblings are not printed. Or if cpu-set is the string "package",
> then the system summary plus the first CPU in each package is
> printed. Otherwise, counter collection, output and the system
> summary are restricted to the specified set of CPUs. The cpu-set is
> ordered from low to high, comma delimited with ".." and "-" permitted
> to denote a range. eg. 1,2,8,14..17,21-44 Multiple invocations of --
> cpu are OR'd together.
> .PP
> \fB--hide column\fP do not show the specified built-in columns. May
> be invoked multiple times, or with a comma-separated list of column
> names.
> .PP
> @@ -138,7 +138,7 @@ The \fBcommand\fP parameter forks \fBcommand\fP,
> and upon its exit,
> displays the statistics gathered since it was forked.
> .PP
> .SH ROW DESCRIPTIONS
> -The system configuration dump (if --quiet is not used) is followed
> by statistics. The first row of the statistics labels the content of
> each column (below). The second row of statistics is the system
> summary line. The system summary line has a '-' in the columns for
> the Package, Core, and CPU. The contents of the system summary line
> depends on the type of column. Columns that count items (eg. IRQ)
> show the sum across all CPUs in the system. Columns that show a
> percentage show the average across all CPUs in the system. Columns
> that dump raw MSR values simply show 0 in the summary. After the
> system summary row, each row describes a specific Package/Core/CPU.
> Note that if the --cpu parameter is used to limit which specific CPUs
> are displayed, turbostat will still collect statistics for all CPUs
> in the system and will still show the system summary for all CPUs in
> the system.
> +The system configuration dump (if --quiet is not used) is followed
> by statistics. The first row of the statistics labels the content of
> each column (below). The second row of statistics is the system
> summary line. The system summary line has a '-' in the columns for
> the Package, Core, and CPU. The contents of the system summary line
> depends on the type of column. Columns that count items (eg. IRQ)
> show the sum across the monitored CPUs. Columns that show a
> percentage show the average across the monitored CPUs. Columns that
> dump raw MSR values simply show 0 in the summary. After the system
> summary row, each row describes a specific Package/Core/CPU. The
> system summary covers the CPUs being monitored; see --cpu for CPU
> selection.
> .SH COLUMN DESCRIPTIONS
> .PP
> \fBusec\fP For each CPU, the number of microseconds elapsed during
> counter collection, including thread migration -- if any. This
> counter is disabled by default, and is enabled with "--enable usec",
> or --debug. On the summary row, usec refers to the total elapsed
> time to snapshot the procfs/sysfs and collect the counters on all
> cpus.