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/Command/_ktrace | |
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/Command/_ktrace')
-rw-r--r-- | Completion/BSD/Command/_ktrace | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Completion/BSD/Command/_ktrace b/Completion/BSD/Command/_ktrace new file mode 100644 index 000000000..13c11f15d --- /dev/null +++ b/Completion/BSD/Command/_ktrace @@ -0,0 +1,30 @@ +#compdef ktrace + +local args=( + '-a[append to the trace file]' + '(*)-C[disable tracing on all user owned processes or all processes if executed by root]' + '-c[clear the trace points]' + '-d[trace current decendants]' + '-f+[log trace to specified file]:trace file:_files' + '(-p *)-g+[enable/disable tracing on specified process group]:pgid:_pgids' + '-i[inherit trace flags on future children]' + '(-g *)-p+[enable/disable tracing on specified PID]: :_pids' + '-t+[select information to include in dump]:trace string:_ktrace_points' + '*:: : _normal -p ktrace' +) + +case $OSTYPE; in + openbsd*) + args+=( + '-B[process relocations immediately]' + ) + ;; + netbsd*) + args+=( + '-n[stop tracing if writes to the trace file would block]' + '-s[write to the trace file with synchronized I/O]' + ) + ;; +esac + +_arguments -s -S -A '-*' : $args |