util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Joe Jin <joe.jin@oracle.com>
To: Benno Schulenberg <bensberg@telfort.nl>, util-linux@vger.kernel.org
Subject: Re: [PATCH 04/10] irqtop: improve the description of --batch, and align it with others
Date: Mon, 31 Mar 2025 07:57:27 -0700	[thread overview]
Message-ID: <53dc46c7-f793-4fcf-b6a5-eda5d22e2449@oracle.com> (raw)
In-Reply-To: <20250331094443.9619-4-bensberg@telfort.nl>

Change looks good to me.
Reviewed-by: Joe Jin <joe.jin@oracle.com>

Thanks,
Joe

On 3/31/25 02:44, Benno Schulenberg wrote:
> Also improve the description of --delay and tweak the one of --json,
> and align both descriptions with the preceding ones.
>
> CC: Joe Jin <joe.jin@oracle.com>
> Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
> ---
>  sys-utils/irqtop.1.adoc | 7 ++++---
>  sys-utils/irqtop.c      | 6 +++---
>  2 files changed, 7 insertions(+), 6 deletions(-)
>
> diff --git a/sys-utils/irqtop.1.adoc b/sys-utils/irqtop.1.adoc
> index 880ee1906..04158a0ef 100644
> --- a/sys-utils/irqtop.1.adoc
> +++ b/sys-utils/irqtop.1.adoc
> @@ -26,7 +26,8 @@ The default output is subject to change. So whenever possible, you should avoid
>  Specify which output columns to print. Use *--help* to get a list of all supported columns. The default list of columns may be extended if list is specified in the format _+list_.
>  
>  *-b*, *--batch*::
> -Starts irqtop in batch mode, which could be useful for sending output to other programs or to a file.
> +Send the produced tables to stdout instead of to a static screen.
> +This can be used for sending the output to other programs or to a file.
>  
>  *-c*, *--cpu-stat* _mode_::
>  Show per-cpu statistics by specified mode. Available modes are: *auto*, *enable*, *disable*. The default option *auto* detects the width of window, then shows the per-cpu statistics if the width of window is large enough to show a full line of statistics.
> @@ -35,10 +36,10 @@ Show per-cpu statistics by specified mode. Available modes are: *auto*, *enable*
>  Specify cpus in list format to show.
>  
>  *-d*, *--delay* _seconds_::
> -Update interrupt output every _seconds_ intervals.
> +Update the tables every this number of seconds.
>  
>  *-J*, *--json*::
> -Use JSON output format. irqtop will run in batch mode.
> +Use JSON output format. Implies *--batch*.
>  
>  *-n*, *--iter* _number_::
>  Specifies the maximum iterations before quitting.
> diff --git a/sys-utils/irqtop.c b/sys-utils/irqtop.c
> index 751e9e19b..e0abddd82 100644
> --- a/sys-utils/irqtop.c
> +++ b/sys-utils/irqtop.c
> @@ -306,11 +306,11 @@ static void __attribute__((__noreturn__)) usage(void)
>  	puts(_("Interactive utility to display kernel interrupt information."));
>  
>  	fputs(USAGE_OPTIONS, stdout);
> -	fputs(_(" -b, --batch batch mode\n"), 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>   delay updates\n"), stdout);
> -	fputs(_(" -J, --json  use JSON output format (will run in batch mode)\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);


  reply	other threads:[~2025-03-31 14:57 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 [this message]
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
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=53dc46c7-f793-4fcf-b6a5-eda5d22e2449@oracle.com \
    --to=joe.jin@oracle.com \
    --cc=bensberg@telfort.nl \
    --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).