From: Joe Jin <joe.jin@oracle.com>
To: Benno Schulenberg <bensberg@telfort.nl>, util-linux@vger.kernel.org
Cc: Zhenwei Pi <pizhenwei@bytedance.com>
Subject: Re: [PATCH 05/10] irqtop: improve several more option descriptions, and align them all
Date: Mon, 31 Mar 2025 08:02:59 -0700 [thread overview]
Message-ID: <a001f0dc-2b73-42bf-ad7c-1271e9727c36@oracle.com> (raw)
In-Reply-To: <20250331094443.9619-5-bensberg@telfort.nl>
On 3/31/25 02:44, Benno Schulenberg wrote:
> Keep at least two spaces between option+argument and its description,
> while making sure not to go above 80 columns per line.
>
> Also, improve the docstring (there is no need to mention that irqtop
> is a utility) and remove the ugly Q from the list of interactive keys.
>
> CC: Joe Jin <joe.jin@oracle.com>
> CC: Zhenwei Pi <pizhenwei@bytedance.com>
> Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
> ---
> sys-utils/irqtop.1.adoc | 4 ++--
> sys-utils/irqtop.c | 26 +++++++++++++-------------
> 2 files changed, 15 insertions(+), 15 deletions(-)
>
> diff --git a/sys-utils/irqtop.1.adoc b/sys-utils/irqtop.1.adoc
> index 04158a0ef..cf258d085 100644
> --- a/sys-utils/irqtop.1.adoc
> +++ b/sys-utils/irqtop.1.adoc
> @@ -8,7 +8,7 @@
>
> == NAME
>
> -irqtop - utility to display kernel interrupt information
> +irqtop - display kernel interrupt information
>
> == SYNOPSIS
>
> @@ -16,7 +16,7 @@ irqtop - utility to display kernel interrupt information
>
> == DESCRIPTION
>
> -Display kernel interrupt counter information in *top*(1) style view.
> +Display interrupt-counter information from the kernel in the style of *top*(1).
>
> The default output is subject to change. So whenever possible, you should avoid using default outputs in your scripts. Always explicitly define expected columns by using *--output*.
>
> diff --git a/sys-utils/irqtop.c b/sys-utils/irqtop.c
> index e0abddd82..3dbd030e0 100644
> --- a/sys-utils/irqtop.c
> +++ b/sys-utils/irqtop.c
> @@ -303,28 +303,28 @@ static void __attribute__((__noreturn__)) usage(void)
> printf(_(" %s [options]\n"), program_invocation_short_name);
> fputs(USAGE_SEPARATOR, stdout);
>
> - puts(_("Interactive utility to display kernel interrupt information."));
> + puts(_("Display kernel interrupt information."));
>
> fputs(USAGE_OPTIONS, stdout);
> - fputs(_(" -b, --batch send tables to stdout, not to a static screen\n"), stdout);
> - fputs(_(" -c, --cpu-stat <mode> show per-cpu stat (auto, enable, disable)\n"), stdout);
> - fputs(_(" -C, --cpu-list <list> specify cpus in list format\n"), stdout);
> - fputs(_(" -d, --delay <secs> wait this number of seconds between updates\n"), stdout);
> - fputs(_(" -J, --json use JSON output format (implies --batch)\n"), stdout);
> - fputs(_(" -n, --iter <number> the maximum number of iterations\n"), stdout);
> - fputs(_(" -o, --output <list> define which output columns to use\n"), stdout);
> - fputs(_(" -s, --sort <column> specify sort column\n"), stdout);
> - fputs(_(" -S, --softirq show softirqs instead of interrupts\n"), stdout);
> - fputs(_(" -t, --threshold <N> only IRQs with counters above <N>\n"), stdout);
> + fputs(_(" -b, --batch send tables to stdout, not to a static screen\n"), stdout);
> + fputs(_(" -c, --cpu-stat <mode> whether to show the per-cpu stats (auto|enable|disable)\n"), stdout);
> + fputs(_(" -C, --cpu-list <list> show IRQs only for the specified cpus\n"), stdout);
> + fputs(_(" -d, --delay <secs> wait this number of seconds between updates\n"), stdout);
> + fputs(_(" -J, --json use JSON output format (implies --batch)\n"), stdout);
> + fputs(_(" -n, --iter <number> the maximum number of iterations\n"), stdout);
> + fputs(_(" -o, --output <list> which columns to show, and in which order\n"), stdout);
> + fputs(_(" -s, --sort <column> sort the table on this column\n"), stdout);
> + fputs(_(" -S, --softirq show softirqs instead of interrupts\n"), stdout);
> + fputs(_(" -t, --threshold <num> show only IRQs with counters above this number\n"), stdout);
> fputs(USAGE_SEPARATOR, stdout);
> - fprintf(stdout, USAGE_HELP_OPTIONS(22));
> + fprintf(stdout, USAGE_HELP_OPTIONS(24));
>
> fputs(_("\nThe following interactive key commands are valid:\n"), stdout);
> fputs(_(" i sort by IRQ\n"), stdout);
> fputs(_(" t sort by TOTAL\n"), stdout);
> fputs(_(" d sort by DELTA\n"), stdout);
> fputs(_(" n sort by NAME\n"), stdout);
> - fputs(_(" q Q quit program\n"), stdout);
> + fputs(_(" q quit program\n"), stdout);
Why remove the "Q"?
Thanks,
Joe
>
> fputs(USAGE_COLUMNS, stdout);
> irq_print_columns(stdout, 0);
next prev parent reply other threads:[~2025-03-31 15:03 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-31 9:44 [PATCH 01/10] enosys: add the missing arguments of -s and -i to the usage text Benno Schulenberg
2025-03-31 9:44 ` [PATCH 02/10] uclampset: simplify the synopsis in the --help " Benno Schulenberg
2025-03-31 9:44 ` [PATCH 03/10] last: don't use a tab character " Benno Schulenberg
2025-03-31 9:44 ` [PATCH 04/10] irqtop: improve the description of --batch, and align it with others Benno Schulenberg
2025-03-31 14:57 ` Joe Jin
2025-03-31 9:44 ` [PATCH 05/10] irqtop: improve several more option descriptions, and align them all Benno Schulenberg
2025-03-31 15:02 ` Joe Jin [this message]
2025-03-31 15:47 ` Benno Schulenberg
2025-03-31 16:12 ` Joe Jin
2025-04-01 9:17 ` Benno Schulenberg
2025-04-02 10:58 ` Karel Zak
2025-03-31 9:44 ` [PATCH 06/10] findmnt: (man) remove duplicated option, and correct a description Benno Schulenberg
2025-03-31 9:44 ` [PATCH 07/10] hardlink: fix typoed semicolon to colon in error message Benno Schulenberg
2025-03-31 9:44 ` [PATCH 08/10] lsblk: (man) remove the incorrect spaces between the arguments of --ct Benno Schulenberg
2025-03-31 9:44 ` [PATCH 09/10] coresched: reduce excessive whitespace and verbosity in usage text Benno Schulenberg
2025-03-31 11:00 ` Phil Auld
2025-04-03 8:11 ` Karel Zak
2025-04-03 9:55 ` Benno Schulenberg
2025-04-03 12:08 ` Karel Zak
2025-03-31 9:44 ` [PATCH 10/10] coresched: rename option '--dest-type' to just '--type' Benno Schulenberg
2025-03-31 11:09 ` Phil Auld
2025-04-01 8:35 ` Karel Zak
2025-04-01 9:25 ` Benno Schulenberg
2025-04-01 12:20 ` Karel Zak
2025-04-02 11:11 ` [PATCH 01/10] enosys: add the missing arguments of -s and -i to the usage text Karel Zak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a001f0dc-2b73-42bf-ad7c-1271e9727c36@oracle.com \
--to=joe.jin@oracle.com \
--cc=bensberg@telfort.nl \
--cc=pizhenwei@bytedance.com \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).