aboutsummaryrefslogtreecommitdiffstats
path: root/bash-completion
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2024-11-05 11:02:38 +0100
committerRobin Jarry <robin@jarry.cc>2024-11-06 11:06:12 +0100
commit609c958c630b67e7ba2ff50ed6b64fa310874fe1 (patch)
tree9c4e1e7c2ad68d8aa0d41c2915770ed867b408bf /bash-completion
parent068b899ab865c6b7e9b5d151d979d58d0d4f0486 (diff)
downloadutil-linux-609c958c630b67e7ba2ff50ed6b64fa310874fe1.tar.gz
lsirq: add option to limit cpus
For consistency with irqtop, add a --cpu-list lsirq option to specify a list of CPUs for which to display interrupt counters. get_scols_table() already supports a cpu_set_t argument. Simply parse the argument and pass it down. Signed-off-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'bash-completion')
-rw-r--r--bash-completion/lsirq4
1 files changed, 4 insertions, 0 deletions
diff --git a/bash-completion/lsirq b/bash-completion/lsirq
index d4dd19efa3..4c3c9f04fa 100644
--- a/bash-completion/lsirq
+++ b/bash-completion/lsirq
@@ -25,6 +25,9 @@ _lsirq_module()
'-t'|'--threshold')
return 0
;;
+ '-C'|'--cpu-list')
+ return 0
+ ;;
'-h'|'--help'|'-V'|'--version')
return 0
;;
@@ -36,6 +39,7 @@ _lsirq_module()
--softirq
--sort
--threshold
+ --cpu-list
--help
--version"
COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )