Home | History | Annotate | Download | only in tests
      1 usage: valgrind [options] prog-and-args
      2 
      3   tool-selection option, with default in [ ]:
      4     --tool=<name>             use the Valgrind tool named <name> [memcheck]
      5 
      6   basic user options for all Valgrind tools, with defaults in [ ]:
      7     -h --help                 show this message
      8     --help-debug              show this message, plus debugging options
      9     --version                 show version
     10     -q --quiet                run silently; only print error msgs
     11     -v --verbose              be more verbose -- show misc extra info
     12     --trace-children=no|yes   Valgrind-ise child processes (follow execve)? [no]
     13     --trace-children-skip=patt1,patt2,...    specifies a list of executables
     14                               that --trace-children=yes should not trace into
     15     --child-silent-after-fork=no|yes omit child output between fork & exec? [no]
     16     --track-fds=no|yes        track open file descriptors? [no]
     17     --time-stamp=no|yes       add timestamps to log messages? [no]
     18     --log-fd=<number>         log messages to file descriptor [2=stderr]
     19     --log-file=<file>         log messages to <file>
     20     --log-socket=ipaddr:port  log messages to socket ipaddr:port
     21 
     22   user options for Valgrind tools that report errors:
     23     --xml=yes                 emit error output in XML (some tools only)
     24     --xml-fd=<number>         XML output to file descriptor
     25     --xml-file=<file>         XML output to <file>
     26     --xml-socket=ipaddr:port  XML output to socket ipaddr:port
     27     --xml-user-comment=STR    copy STR verbatim into XML output
     28     --demangle=no|yes         automatically demangle C++ names? [yes]
     29     --num-callers=<number>    show <number> callers in stack traces [12]
     30     --error-limit=no|yes      stop showing new errors if too many? [yes]
     31     --error-exitcode=<number> exit code to return if errors found [0=disable]
     32     --show-below-main=no|yes  continue stack traces below main() [no]
     33     --suppressions=<filename> suppress errors described in <filename>
     34     --gen-suppressions=no|yes|all    print suppressions for errors? [no]
     35     --db-attach=no|yes        start debugger when errors detected? [no]
     36     --db-command=<command>    command to start debugger [... -nw %f %p]
     37     --input-fd=<number>       file descriptor for input [0=stdin]
     38     --dsymutil=no|yes         run dsymutil on Mac OS X when helpful? [no]
     39     --max-stackframe=<number> assume stack switch for SP changes larger
     40                               than <number> bytes [2000000]
     41     --main-stacksize=<number> set size of main thread's stack (in bytes)
     42                               [use current 'ulimit' value]
     43 
     44   user options for Valgrind tools that replace malloc:
     45     --alignment=<number>      set minimum alignment of heap allocations [...]
     46 
     47   uncommon user options for all Valgrind tools:
     48     --fullpath-after=         (with nothing after the '=')
     49                               show full source paths in call stacks
     50     --fullpath-after=string   like --fullpath-after=, but only show the
     51                               part of the path after 'string'.  Allows removal
     52                               of path prefixes.  Use this flag multiple times
     53                               to specify a set of prefixes to remove.
     54     --smc-check=none|stack|all  checks for self-modifying code: none,
     55                               only for code found in stacks, or all [stack]
     56     --read-var-info=yes|no    read debug info on stack and global variables
     57                               and use it to print better error messages in
     58                               tools that make use of it (Memcheck, Helgrind,
     59                               DRD) [no]
     60     --run-libc-freeres=no|yes free up glibc memory at exit on Linux? [yes]
     61     --sim-hints=hint1,hint2,...  known hints:
     62                                  lax-ioctls, enable-outer [none]
     63     --kernel-variant=variant1,variant2,...  known variants: bproc [none]
     64                               handle non-standard kernel variants
     65     --show-emwarns=no|yes     show warnings about emulation limits? [no]
     66     --require-text-symbol=:sonamepattern:symbolpattern    abort run if the
     67                               stated shared object doesn't have the stated
     68                               text symbol.  Patterns can contain ? and *.
     69 
     70   user options for Nulgrind:
     71     (none)
     72 
     73   Extra options read from ~/.valgrindrc, $VALGRIND_OPTS, ./.valgrindrc
     74 
     75   Nulgrind is Copyright (C) 2002-2010, and GNU GPL'd, by Nicholas Nethercote.
     76   Valgrind is Copyright (C) 2000-2010, and GNU GPL'd, by Julian Seward et al.
     77   LibVEX is Copyright (C) 2004-2010, and GNU GPL'd, by OpenWorks LLP et al.
     78 
     79   Bug reports, feedback, admiration, abuse, etc, to: www.valgrind.org.
     80 
     81