summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_vmstat
diff options
context:
space:
mode:
authorOliver Kiddle <okiddle@yahoo.co.uk>2019-05-09 00:17:04 +0200
committerOliver Kiddle <okiddle@yahoo.co.uk>2019-05-09 00:17:04 +0200
commit09c6acf7b23f6ea6af6c5ac9cce18aa1afc49aa7 (patch)
tree601415774d4ab34958807bc0872322d9062a59a0 /Completion/Unix/Command/_vmstat
parentffacb17886e8071332c0b1dc8263e7dbe6af268a (diff)
downloadzsh-09c6acf7b23f6ea6af6c5ac9cce18aa1afc49aa7.tar.gz
zsh-09c6acf7b23f6ea6af6c5ac9cce18aa1afc49aa7.zip
44279: completion updates for Dragonfly 5.4, FreeBSD 12 and OpenBSD 6.5
Diffstat (limited to 'Completion/Unix/Command/_vmstat')
-rw-r--r--Completion/Unix/Command/_vmstat30
1 files changed, 23 insertions, 7 deletions
diff --git a/Completion/Unix/Command/_vmstat b/Completion/Unix/Command/_vmstat
index 7d3008592..bc13a5505 100644
--- a/Completion/Unix/Command/_vmstat
+++ b/Completion/Unix/Command/_vmstat
@@ -21,10 +21,9 @@ case $OSTYPE in
'(- :)'{-D,--disk-sum}'[summarize disk statistics]'
)
;;
- *bsd*)
+ *bsd*|dragonfly*)
specs=(
'-c+[specify number of times to refresh the display]:count'
- '-f[report on the number fork syscalls since boot and pages of virtual memory for each]'
'-i[report the number of interrupts taken by devices since boot]'
'-M+[specify core file to extract values associated with the name list from]:core:_files'
'-N+[specify file to extract the name list from]:system:_files'
@@ -32,18 +31,27 @@ case $OSTYPE in
'*:disk:_files'
)
;|
+ *bsd*)
+ specs=(
+ '-f[report on the number fork syscalls since boot and pages of virtual memory for each]'
+ )
+ ;|
+ freebsd*|dragonfly*)
+ specs+=(
+ '-m[report on the usage of kernel dynamic memory allocated using malloc(9) by type]'
+ '-n+[change the maximum number of disks to display]:number of disks to display [2]'
+ '*-p+[specify which types of devices to display]: :->devices'
+ '-s[display the contents of the SUM structure]'
+ '-z[report on memory used by the kernel zone allocator, uma(9), by zone]'
+ )
+ ;|
freebsd*)
specs+=(
'-a[include statistics about all interrupts]'
'-h[human readable memory columns output]'
'-H[scriptable memory columns output]'
- '-m[report on the usage of kernel dynamic memory allocated using malloc(9) by type]'
- '-n+[change the maximum number of disks to display]:number of disks to display'
'-o[list virtual memory objects]'
'-P[report per-cpu system/user/idle cpu statistics]'
- '-p+[specify which types of devices to display]: :->devices'
- '-s[display the contents of the SUM structure]'
- '-z[report on memory used by the kernel zone allocator, uma(9), by zone]'
)
;|
(net|open)bsd*)
@@ -73,6 +81,14 @@ case $OSTYPE in
'-W[print more information about kernel memory pools]'
)
;;
+ dragonfly*)
+ specs+=(
+ '-b[use brief format for formatted numbers]'
+ '-o[report usage of kernel object cache]'
+ '-u[output unformatted numeric values]'
+ '-v[include IRQ numbers and IRQ target CPU numbers before device names (with -i)]'
+ )
+ ;;
freebsd*|solaris*)
specs+=(
'::disk:_files -W /dev -g "*(-%b)"'