fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Fabian BoehmYet more shortening00e0d6ad9

master
5.6 KiB74 linesraw
1# Startup
2complete -c strace -s E -l env -d 'Remove var from the inherited environment before passing it on to the command'
3complete -c strace -s p -l attach -xa '(__fish_complete_pids)'
4complete -c strace -s u -l user -xa '(__fish_complete_users)'
5complete -c strace -l argv0 -d 'Set argv[0] of the command being executed to name'
6
7# Tracing
8complete -c strace -s b -l detach-on -d 'Detach when the specified syscall is reached'
9complete -c strace -s D -l daemonize -d 'Run tracer process as a grandchild, not as the parent of the tracee'
10complete -c strace -o DD -d "Run tracer process as tracee's grandchild in a separate process group."
11complete -c strace -o DDD -d "Run tracer process as tracee's grandchild in a separate session"
12complete -c strace -s f -l follow-forks
13complete -c strace -l output-separately
14complete -c strace -o ff -d 'Like --follow-forks --output-separately'
15complete -c strace -s I -l interruptible -d 'When strace can be interrupted by signals'
16complete -c strace -l syscall-limit -d 'Detach all tracees when LIMIT number of syscalls have been captured'
17complete -c strace -l kill-on-exit -d 'Set PTRACE_O_EXITKILL ptrace option to all tracee processes'
18
19# General/Filtering/Tampering
20complete -c strace -s e -l trace -d 'Set expression which modifies which events to trace'
21complete -c strace -s e -l trace-fds -d 'Set expression which modifies which events to trace'
22complete -c strace -s e -l signal -d 'Set expression which modifies which events to trace'
23complete -c strace -s e -l status -d 'Set expression which modifies which events to trace'
24complete -c strace -s P -l trace-path -d 'Trace only system calls accessing path'
25complete -c strace -s z -l successful-only -d 'Print only syscalls that returned without an error code'
26complete -c strace -s Z -l failed-only -d 'Print only syscalls that returned with an error code'
27
28# Output format
29complete -c strace -s a -l columns -d 'Align output in columns'
30complete -c strace -s e -l verbose -d 'Dereference structures for the specified set of system calls'
31complete -c strace -l decode-pids -d 'Decode various information associated with process IDs'
32complete -c strace -l silence -l silent -l quiet -d 'Suppress various information messages'
33complete -c strace -l decode-fds -d 'Decode various information associated with file descriptors'
34complete -c strace -l decode-pids -d 'Decode various information associated with process IDs'
35complete -c strace -l kvm -d 'Print the exit reason of kvm vcpu'
36complete -c strace -s i -l instruction-pointer -d 'Print the instruction pointer at the time of the system call'
37complete -c strace -s n -l syscall-number -d 'Print the syscall number'
38complete -c strace -s k -l stack-traces -d 'Print the execution stack trace of the traced processes after each system call'
39complete -c strace -s o -l output -d 'Write the trace output to the file filename rather than to stderr'
40complete -c strace -s A -l output-append-mode -d 'Open the file provided in the -o option in append mode'
41complete -c strace -s q -l quiet
42complete -c strace -o qq -l quiet
43complete -c strace -o qqq -l quiet
44complete -c strace -s r -l relative-timestamps -d 'Print a relative timestamp upon entry to each system call'
45complete -c strace -s s -l string-limit -d 'Specify the maximum string size to print (the default is 32)'
46complete -c strace -l absolute-timestamps -l timestamps -d 'Prefix each line of the trace with the wall clock time'
47complete -c strace -s t -l absolute-timestamps -d 'Prefix each line of the trace with the wall clock time'
48complete -c strace -o tt -l absolute-timestamps -d 'If given twice, the time printed will include the microseconds'
49complete -c strace -o ttt -l absolute-timestamps
50complete -c strace -s T -l syscall-times -d 'Show the time spent in system calls'
51complete -c strace -s v -l no-abbrev -d 'Print unabbreviated versions of environment'
52complete -c strace -l strings-in-hex -d 'Control usage of escape sequences with hexadecimal numbers in the printed strings'
53complete -c strace -s x -d 'Print all non-ASCII strings in hex format'
54complete -c strace -o xx -d 'Print all strings in hex format'
55complete -c strace -s X -l const-print-style -d 'Set the format for printing of named constants and flags'
56complete -c strace -o yy -l decode-fds -d 'Print all available information associated with file descriptors'
57complete -c strace -s y -l decode-fds -d 'Print paths associated with file descriptor arguments and with the AT_FDCWD constant'
58complete -c strace -l pidns-translation -l decode-pids -d "print PIDs in strace's namespace"
59complete -c strace -s Y -l decode-pids -d 'Print command names for PIDs'
60
61# Statistics
62complete -c strace -s c -l summary-only -d 'Suppress output and report summary on exit'
63complete -c strace -s C -l summary -d 'Display output and report summary on exit'
64complete -c strace -s O -l summary-syscall-overhead -d 'Set the overhead for tracing system calls to overhead'
65complete -c strace -s S -l summary-sort-by -xa 'time time_total total_time calls count errors error name syscall syscall_name nothing none' -d 'Sort summary by the specified criterion'
66complete -c strace -s U -l summary-columns -d 'Configure a set (and order) of columns being shown in the call summary'
67complete -c strace -s w -l summary-wall-clock -d 'Summarise the time difference between the beginning and end of each system call'
68
69# Miscellaneous
70complete -c strace -s d -l debug -d 'Debug output'
71complete -c strace -l seccomp-bpf -d 'Try to enable use of seccomp-bpf'
72complete -c strace -l tips -d 'Show strace tips, tricks, and tweaks before exit'
73complete -c strace -s h -l help -d 'Print help and exit'
74complete -c strace -s V -l version -d 'Print version and exit'