aboutsummaryrefslogtreecommitdiffstats
path: root/bash-completion
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2024-11-05 11:22:06 +0100
committerRobin Jarry <robin@jarry.cc>2024-11-06 11:06:11 +0100
commit068b899ab865c6b7e9b5d151d979d58d0d4f0486 (patch)
tree604d2fd1c9417df272b6ed1fce5ae8e9df02a75e /bash-completion
parent9e2aafe5a493284615a17572c4ead4737bcc66a3 (diff)
downloadutil-linux-068b899ab865c6b7e9b5d151d979d58d0d4f0486.tar.gz
lsirq,irqtop: add threshold option
Add a new option to filter out IRQs whose counters are below the specified value. The argument supports plain integers and human readable values (e.g. 1.2K). Signed-off-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'bash-completion')
-rw-r--r--bash-completion/irqtop4
-rw-r--r--bash-completion/lsirq4
2 files changed, 8 insertions, 0 deletions
diff --git a/bash-completion/irqtop b/bash-completion/irqtop
index 7688f673c4..b9e454d4cb 100644
--- a/bash-completion/irqtop
+++ b/bash-completion/irqtop
@@ -12,6 +12,9 @@ _irqtop_module()
'-C'|'--cpu-list')
return 0
;;
+ '-t'|'--threshold')
+ return 0
+ ;;
'-d'|'--delay')
COMPREPLY=( $(compgen -W "secs" -- $cur) )
return 0
@@ -43,6 +46,7 @@ _irqtop_module()
--sort
--output
--softirq
+ --threshold
--help
--version"
COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
diff --git a/bash-completion/lsirq b/bash-completion/lsirq
index 09893d8141..d4dd19efa3 100644
--- a/bash-completion/lsirq
+++ b/bash-completion/lsirq
@@ -22,6 +22,9 @@ _lsirq_module()
COMPREPLY=( $(compgen -W "irq total name" -- $cur) )
return 0
;;
+ '-t'|'--threshold')
+ return 0
+ ;;
'-h'|'--help'|'-V'|'--version')
return 0
;;
@@ -32,6 +35,7 @@ _lsirq_module()
--output
--softirq
--sort
+ --threshold
--help
--version"
COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )