diff options
author | Matthew Martin <phy1729@gmail.com> | 2020-05-29 22:27:08 -0500 |
---|---|---|
committer | Matthew Martin <phy1729@gmail.com> | 2020-06-01 21:18:25 -0500 |
commit | c479107f70d75ec4522cb9d97c2c178ead4607dd (patch) | |
tree | 3ff64e67f147265187d09f9fcd1b0486f5f6b462 /Completion/BSD/Type | |
parent | 7ec05332a281ab0229a864bb4ccc4571e4f8ca1b (diff) | |
download | zsh-c479107f70d75ec4522cb9d97c2c178ead4607dd.tar.gz zsh-c479107f70d75ec4522cb9d97c2c178ead4607dd.tar.xz zsh-c479107f70d75ec4522cb9d97c2c178ead4607dd.zip |
45940: Add _kdump and _ktrace completers and supporting _ktrace_points type
Diffstat (limited to 'Completion/BSD/Type')
-rw-r--r-- | Completion/BSD/Type/_ktrace_points | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/Completion/BSD/Type/_ktrace_points b/Completion/BSD/Type/_ktrace_points new file mode 100644 index 000000000..1993c8d7b --- /dev/null +++ b/Completion/BSD/Type/_ktrace_points @@ -0,0 +1,50 @@ +#autoload + +local points=( + 'c[trace system calls]' + 'i[trace I/O]' + 'n[trace namei translations]' + 's[trace signal processing]' + 'u[trace user data]' + '+[trace the default points]' +) + +case $OSTYPE in + dragonfly*|freebsd*|netbsd*) + points+=( + 'w[context switches]' + ) + ;| + freebsd*|openbsd*) + points+=( + 't[trace various structures]' + ) + ;| + freebsd*) + points+=( + 'f[trace page faults]' + 'p[trace capability check failures]' + 'y[trace sysctl(3) requests]' + ) + ;; + netbsd*) + points+=( + 'A[trace all tracepoints]' + 'a[trace exec arguments]' + 'e[trace emulation changes]' + 'f[trace open file descriptors after exec]' + 'S[trace MIB access (sysctl)]' + 'v[trace exec environment]' + '-[do not trace following trace points]' + ) + ;; + openbsd*) + points+=( + 'p[trace violation of pledge(2) restrictions]' + 'x[trace argument vector in execve(2)]' + 'X[trace environment in execve(2)]' + ) + ;; +easc + +_values -s '' 'ktrace point' $points |