nethercote | f4928da | 2004-06-15 10:54:40 +0000 | [diff] [blame] | 1 | usage: valgrind --tool=<toolname> [options] prog-and-args |
| 2 | |
| 3 | common user options for all Valgrind tools, with defaults in [ ]: |
sewardj | b5f6f51 | 2005-03-10 23:59:00 +0000 | [diff] [blame] | 4 | --tool=<name> use the Valgrind tool named <name> [memcheck] |
nethercote | a76368b | 2004-06-16 11:56:29 +0000 | [diff] [blame] | 5 | -h --help show this message |
nethercote | f4928da | 2004-06-15 10:54:40 +0000 | [diff] [blame] | 6 | --help-debug show this message, plus debugging options |
| 7 | --version show version |
| 8 | -q --quiet run silently; only print error msgs |
| 9 | -v --verbose be more verbose, incl counts of errors |
| 10 | --trace-children=no|yes Valgrind-ise child processes? [no] |
nethercote | 0d58850 | 2004-06-21 13:27:11 +0000 | [diff] [blame] | 11 | --track-fds=no|yes track open file descriptors? [no] |
thughes | 6233a38 | 2004-08-21 11:10:44 +0000 | [diff] [blame] | 12 | --time-stamp=no|yes add timestamps to log messages? [no] |
njn | ce54555 | 2005-07-25 22:36:52 +0000 | [diff] [blame] | 13 | --log-fd=<number> log messages to file descriptor [2=stderr] |
| 14 | --log-file=<file> log messages to <file>.pid<pid> |
| 15 | --log-file-exactly=<file> log messages to <file> |
| 16 | --log-file-qualifier=<VAR> incorporate $VAR in logfile name [none] |
| 17 | --log-socket=ipaddr:port log messages to socket ipaddr:port |
nethercote | f4928da | 2004-06-15 10:54:40 +0000 | [diff] [blame] | 18 | |
| 19 | uncommon user options for all Valgrind tools: |
nethercote | 0d58850 | 2004-06-21 13:27:11 +0000 | [diff] [blame] | 20 | --run-libc-freeres=no|yes free up glibc memory at exit? [yes] |
sewardj | a0461a6 | 2005-09-28 01:14:32 +0000 | [diff] [blame^] | 21 | --weird-hacks=hack1,hack2,... known hacks: lax-ioctls |
njn | a23e6c9 | 2005-09-27 19:46:46 +0000 | [diff] [blame] | 22 | enable-outer [none] |
nethercote | f4928da | 2004-06-15 10:54:40 +0000 | [diff] [blame] | 23 | --pointercheck=no|yes enforce client address space limits [yes] |
sewardj | 8f01fbe | 2005-03-20 12:06:57 +0000 | [diff] [blame] | 24 | --show-emwarns=no|yes show warnings about emulation limits? [no] |
sewardj | 6c3a219 | 2005-07-24 07:00:45 +0000 | [diff] [blame] | 25 | --smc-check=none|stack|all checks for self-modifying code: none, |
| 26 | only for code found in stacks, or all [stack] |
nethercote | f4928da | 2004-06-15 10:54:40 +0000 | [diff] [blame] | 27 | |
| 28 | user options for Valgrind tools that report errors: |
njn | ce54555 | 2005-07-25 22:36:52 +0000 | [diff] [blame] | 29 | --xml=yes all output is in XML (Memcheck/Nulgrind only) |
njn | 483398e | 2005-07-20 03:03:44 +0000 | [diff] [blame] | 30 | --xml-user-comment=STR copy STR verbatim to XML output |
nethercote | f4928da | 2004-06-15 10:54:40 +0000 | [diff] [blame] | 31 | --demangle=no|yes automatically demangle C++ names? [yes] |
njn | cc6cc14 | 2005-03-12 20:59:29 +0000 | [diff] [blame] | 32 | --num-callers=<number> show <num> callers in stack traces [12] |
nethercote | f4928da | 2004-06-15 10:54:40 +0000 | [diff] [blame] | 33 | --error-limit=no|yes stop showing new errors if too many? [yes] |
| 34 | --show-below-main=no|yes continue stack traces below main() [no] |
| 35 | --suppressions=<filename> suppress errors described in <filename> |
sewardj | 09272c7 | 2005-01-11 14:21:02 +0000 | [diff] [blame] | 36 | --gen-suppressions=no|yes|all print suppressions for errors? [no] |
nethercote | f4928da | 2004-06-15 10:54:40 +0000 | [diff] [blame] | 37 | --db-attach=no|yes start debugger when errors detected? [no] |
| 38 | --db-command=<command> command to start debugger [gdb -nw %f %p] |
| 39 | --input-fd=<number> file descriptor for input [0=stdin] |
sewardj | 412ad6e | 2005-04-03 00:16:11 +0000 | [diff] [blame] | 40 | --max-stackframe=<number> assume stack switch for SP changes larger |
| 41 | than <number> bytes [2000000] |
nethercote | f4928da | 2004-06-15 10:54:40 +0000 | [diff] [blame] | 42 | |
| 43 | user options for Nulgrind: |
| 44 | (none) |
| 45 | |
| 46 | Extra options read from ~/.valgrindrc, $VALGRIND_OPTS, ./.valgrindrc |
| 47 | |
njn | 5361242 | 2005-03-12 16:22:54 +0000 | [diff] [blame] | 48 | Valgrind is Copyright (C) 2000-2005 Julian Seward et al. |
nethercote | f4928da | 2004-06-15 10:54:40 +0000 | [diff] [blame] | 49 | and licensed under the GNU General Public License, version 2. |
njn | 272b216 | 2005-05-17 03:22:38 +0000 | [diff] [blame] | 50 | Bug reports, feedback, admiration, abuse, etc, to: www.valgrind.org. |
nethercote | f4928da | 2004-06-15 10:54:40 +0000 | [diff] [blame] | 51 | |
| 52 | Tools are copyright and licensed by their authors. See each |
| 53 | tool's start-up message for more information. |
| 54 | |