diff options
Diffstat (limited to 'Completion/Linux/Command/_valgrind')
| -rw-r--r-- | Completion/Linux/Command/_valgrind | 45 |
1 files changed, 39 insertions, 6 deletions
diff --git a/Completion/Linux/Command/_valgrind b/Completion/Linux/Command/_valgrind index 6bf0e4450..638b29cf5 100644 --- a/Completion/Linux/Command/_valgrind +++ b/Completion/Linux/Command/_valgrind @@ -2,7 +2,7 @@ local curcontext="$curcontext" state line local -a cmd common_{own_malloc,read_varinfo,report_errors,partial} -local -a args args_{addrcheck,drd,memcheck,cachegrind,helgrind,lackey,massif,none,exp_{bbv,dhat,sgcheck}} +local -a args args_{{addr,mem}check,drd,{cache,call,hel}grind,lackey,massif,none,exp_{bbv,dhat,sgcheck}} cmd=( '1: : _command_names -e' @@ -20,7 +20,7 @@ common_own_malloc=( '--alignment=-[set minimum alignment of heap allocations]:number [16]' '--redzone-size=-[set minimum size of redzones added before/after heap blocks]:size (bytes) [16]' '--xtree-memory=-[profile heap memory in an xtree [none]:(none allocs full)' - '--xtree-memory-file=-[specify xtree memory report file]:file [xtmemory.kcg.%%p]:_files' + '--xtree-memory-file=-[specify xtree memory report file]:file [xtmemory.kcg.%p]:_files' ) common_read_varinfo=( @@ -67,7 +67,7 @@ args_addrcheck=( '(--show-leak-kinds)--show-reachable=-[show reachable blocks in leak check]:enable:(yes no)' '(--show-leak-kinds)--show-possibly-lost=-:enable:(yes no)' '--xtree-leak=-[output leak result in xtree format]:enable [no]:(yes no)' - '--xtree-leak-file=-[specify xtree leak report file]:file [xtleak.kcg.%%p]:_files' + '--xtree-leak-file=-[specify xtree leak report file]:file [xtleak.kcg.%p]:_files' '--undef-value-errors=-[check for undefined value errors]:enable [yes]:(yes no)' '--track-origins=-[show origins of undefined values]:enable [no]:(yes no)' $common_partial @@ -124,7 +124,39 @@ args_cachegrind=( '--LL=-[set LL cache manually]:size,assoc,line_size' '--cache-sim=-[collect cache stats]:enable [yes]:(yes no)' '--branch-sim=-[collect branch prediction stats]:enable [no]:(yes no)' - '--cachegrind-out-file=-[specify output file name]:file name [cachegrind.out.%%p]:_files' + '--cachegrind-out-file=-[specify output file name]:file name [cachegrind.out.%p]:_files' +) + +args_callgrind=( + '--callgrind-out-file=-[specify output file name]:file name [callgrind.out.%p]:_files' + '--dump-line=-[perform event counting at source line granularity]:enable [yes]:(yes no)' + '--dump-instr=-[perform event counting at instruction granularity]:enable [no]:(yes no)' + '--compress-strings=-[identify file and function names by numbers]:enable [yes]:(yes no)' + '--compress-pos=-[compress positions in profile dump]:enable [yes]:(yes no)' + '--compress-dumps=-[concatenate all dumps into same file]:enable [no]:(yes no)' + '--dump-every-bb=-[specify dump period in basic blocks]:blocks [0, never]' + '*--dump-before=-[dump when entering specified function]:function' + '*--zero-before=-[zero all costs when entering specified function]:function' + '*--dump-after=-[dump when leaving specified function]:function' + '--instr-atstart=-[do instrumentation at callgrind start]:enable [yes]:(yes no)' + '--collect-atstart=-[collect at process/thread start]:enable [yes]:(yes no)' + '*--toggle-collect=-[toggle collection on enter/leave specified function]:function' + '--collect-jumps=-[collect jumps]:enable [no]:(yes no)' + '--collect-bus=-[collect global bus events]:enable [no]:(yes no)' + '--collect-systime=-[collect system call time info]:enable [no]:(no yes msec usec nsec)' + '--separate-threads=-[separate data per thread]:enable [no]:(yes no)' + '--separate-callers=-[separate functions by call chain length]:length [0]' + '--separate-recs=-[separate function recursions up to level]:level [2]' + '--skip-plt=-[ignore calls to/from PLT sections]:enable [yes]:(yes no)' + '--skip-direct-rec=-[ignore direct recursio]:enable [yes]:(yes no)' + '*--fn-skip=-[ignore calls to/from specified function]:function' + '--branch-sim=-[collect branch prediction stats]:enable [no]:(yes no)' + '--cache-sim=-[collect cache stats]:enable [no]:(yes no)' + '--simulate-wb=-[count write-back events]:enable [no]:(yes no)' + '--simulate-hwpref=-[simulate hardware prefetch]:enable [no]:(yes no)' + '--cacheuse=-[collect cache block use]:enable [no]:(yes no)' + '--I1=-[set I1 cache manually]:size,assoc,line_size' + '--D1=-[set D1 cache manually]:size,assoc,line_size' ) args_helgrind=( @@ -170,7 +202,7 @@ args_massif=( ))" '--detailed-freq=-[every Nth snapshot should be detailed]:snapshot interval [10]' '--max-snapshots=-[specofy maximum number of snapshots recorded]:maximum [100]' - '--massif-out-file=-[specify output file name]:filename [massif.out.%%p]:_files' + '--massif-out-file=-[specify output file name]:filename [massif.out.%p]:_files' ) args_exp_bbv=( @@ -217,7 +249,8 @@ _arguments -C ${(P)args} $cmd \ '--vgdb=-[activate gdbserver]:enable [yes]:(yes no full)' \ '--vgdb-error=-[invoke gdbserver after specified number of errors]:errors [999999999]:errors' \ '--vgdb-stop-at=-[invoke gdbserver for given events]:event:_sequence compadd - startup exit abexit valgrindabexit all none' \ - '--track-fds=-[track open file descriptors]:enable [no]:(yes no all)' \ + '--track-fds=-[track open file descriptors]:enable [no]:(yes no all bad)' \ + '--modify-fds=-[modify newly open file descriptors]:enable:(yes no high)' \ '--time-stamp=-[add timestamps to log messages]:enable:(yes no)' \ '--log-fd=-[log messages to specified file descriptor]:file descriptor:_file_descriptors' \ '--log-file=-[log messages to specified file with pid appended]:file:_files' \ |
