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 [ ]: |
nethercote | 0d58850 | 2004-06-21 13:27:11 +0000 | [diff] [blame^] | 4 | --tool=<name> use the Valgrind tool named <name> |
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] |
nethercote | f4928da | 2004-06-15 10:54:40 +0000 | [diff] [blame] | 12 | |
| 13 | uncommon user options for all Valgrind tools: |
nethercote | 0d58850 | 2004-06-21 13:27:11 +0000 | [diff] [blame^] | 14 | --run-libc-freeres=no|yes free up glibc memory at exit? [yes] |
| 15 | --weird-hacks=hack1,hack2,... recognised hacks: lax-ioctls [none] |
| 16 | --signal-polltime=<time> signal poll period (mS) for older kernels [50] |
| 17 | --lowlat-signals=no|yes improve thread signal wake-up latency [no] |
| 18 | --lowlat-syscalls=no|yes improve thread syscall wake-up latency [no] |
nethercote | f4928da | 2004-06-15 10:54:40 +0000 | [diff] [blame] | 19 | --pointercheck=no|yes enforce client address space limits [yes] |
| 20 | |
| 21 | user options for Valgrind tools that report errors: |
nethercote | f854867 | 2004-06-21 12:42:35 +0000 | [diff] [blame] | 22 | --log-fd=<number> log messages to file descriptor [2=stderr] |
| 23 | --log-file=<file> log messages to <file>.pid<pid> |
| 24 | --log-socket=ipaddr:port log messages to socket ipaddr:port |
nethercote | f4928da | 2004-06-15 10:54:40 +0000 | [diff] [blame] | 25 | --demangle=no|yes automatically demangle C++ names? [yes] |
| 26 | --num-callers=<number> show <num> callers in stack traces [4] |
| 27 | --error-limit=no|yes stop showing new errors if too many? [yes] |
| 28 | --show-below-main=no|yes continue stack traces below main() [no] |
| 29 | --suppressions=<filename> suppress errors described in <filename> |
| 30 | --gen-suppressions=no|yes print suppressions for errors detected [no] |
| 31 | --db-attach=no|yes start debugger when errors detected? [no] |
| 32 | --db-command=<command> command to start debugger [gdb -nw %f %p] |
| 33 | --input-fd=<number> file descriptor for input [0=stdin] |
| 34 | |
| 35 | user options for Nulgrind: |
| 36 | (none) |
| 37 | |
| 38 | debugging options for all Valgrind tools: |
| 39 | --sanity-level=<number> level of sanity checking to do [1] |
| 40 | --single-step=no|yes translate each instr separately? [no] |
| 41 | --optimise=no|yes improve intermediate code? [yes] |
| 42 | --profile=no|yes profile? (tool must be built for it) [no] |
| 43 | --chain-bb=no|yes do basic-block chaining? [yes] |
| 44 | --branchpred=yes|no generate branch prediction hints [no] |
| 45 | --trace-codegen=<XXXXX> show generated code? (X = 0|1) [00000] |
| 46 | --trace-syscalls=no|yes show all system calls? [no] |
| 47 | --trace-signals=no|yes show signal handling details? [no] |
| 48 | --trace-symtab=no|yes show symbol table details? [no] |
| 49 | --trace-sched=no|yes show thread scheduler details? [no] |
| 50 | --trace-pthread=none|some|all show pthread event details? [none] |
| 51 | --wait-for-gdb=yes|no pause on startup to wait for gdb attach |
| 52 | |
| 53 | debugging options for Valgrind tools that report errors |
| 54 | --dump-error=<number> show translation for basic block associated |
| 55 | with <number>'th error context [0=show none] |
| 56 | |
| 57 | debugging options for Nulgrind: |
| 58 | (none) |
| 59 | |
| 60 | Extra options read from ~/.valgrindrc, $VALGRIND_OPTS, ./.valgrindrc |
| 61 | |
| 62 | Valgrind is Copyright (C) 2000-2004 Julian Seward |
| 63 | and licensed under the GNU General Public License, version 2. |
| 64 | Bug reports, feedback, admiration, abuse, etc, to: valgrind.kde.org. |
| 65 | |
| 66 | Tools are copyright and licensed by their authors. See each |
| 67 | tool's start-up message for more information. |
| 68 | |