Download Valgrind Documentation Set
Transcript
Using and understanding the Valgrind core • --trace-sched=no [default] --trace-sched=yes Enable/disable tracing of thread scheduling events. • --trace-pthread=none [default] --trace-pthread=some --trace-pthread=all Specifies amount of trace detail for pthread-related events. • --trace-symtab=no [default] --trace-symtab=yes Enable/disable tracing of symbol table reading. • --trace-malloc=no [default] --trace-malloc=yes Enable/disable tracing of malloc/free (et al) intercepts. • --trace-computeroutputgen=XXXXX [default: 00000] Enable/disable tracing of computeroutput generation. Computeroutput can be printed at five different stages of translation; each X element must be 0 or 1. • --dump-error=<number> [default: inactive] After the program has exited, show gory details of the translation of the basic block containing the <number>’th error context. When used with --single-step=yes, can show the exact x86 instruction causing an error. This is all fairly dodgy and doesn’t work at all if threads are involved. Setting default Options Note that Valgrind also reads options from three places: 1. The file ~/.valgrindrc 2. The environment variable $VALGRIND_OPTS 3. The file ./.valgrindrc 14