Commit graph

7 commits

Author SHA1 Message Date
zhenwei pi
4b2fadb1bc irqtop: support -C/--cpu-list
Specify cpus list format to show by -C/--cpu-list parameters, for
example, on an AMD server with 192 CPUs, to show statistics on NUMA
node 1:
  ~# ./irqtop -d 1 -C 48-95,144-191

Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
2022-04-01 10:21:31 +02:00
Karel Zak
d1732bba38 bash-completion: fix irqtop
Forgot update the option as introduced by commit
17f7caa451.

Signed-off-by: Karel Zak <kzak@redhat.com>
2021-11-10 10:56:02 +01:00
zhenwei pi
17f7caa451 irqtop: add -c/--cpu-stat option
Since a23aecc1bf("irqtop: add per-cpu stats"), irqtop always shows
per-cpu stats. Test on a modern AMD server with 2 socket(256 CPU),
irqtop shows messy output with too many columns.

In this patch, add -c/--cpu-stat option to enable/disable per-cpu stats.
And 'auto' option auto-detect window size, only show per-cpu stats
if the length of per-cpu stats is shorter than the width of window.

[kzak@redhat.com: - shorten the commit message
                  - rename --cpu to --cpu-stat
                  - use scols_table_enable_nowrap() rather than trim in irqtop.c
                  - reduce --help for the new option]

Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-11-10 10:35:50 +01:00
Karel Zak
6e7fb6c49a bash-completion: add irqtop/lsirq --softirq
Signed-off-by: Karel Zak <kzak@redhat.com>
2020-07-23 12:23:56 +02:00
Sami Kerola
723ec12457
bash-completion: update irqtop and lsirq completions
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2020-03-07 06:38:50 +00:00
Sami Kerola
68afc56bcd
irqtop: add total and delta as own columns
This commit add total and delta as separate columns rather than a toggle,
making output generally more informative.  When using command I found that
sort order key bindings should match with first letter of column headers so
that they are as easy as possible to remember, and therefore enhancing user
experience.

Requested-by: Karel Zak <kzak@redhat.com>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2020-02-23 17:27:12 +00:00
Sami Kerola
e11f242769
irqtop: add bash-completion
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2020-02-22 21:43:54 +00:00