Valgrind-3.9.0

Introduction to Valgrind

Valgrind is an instrumentation framework for building dynamic analysis tools. There are Valgrind tools that can automatically detect many memory management and threading bugs, and profile programs in detail. Valgrind can also be used to build new tools.

This package is known to build and work properly using an LFS-7.5 platform.

Package Information

Valgrind Dependencies

Optional

Boost-1.56.0, LLVM-3.4.2 (with Clang), and OpenMP

Optional for regenerating the documentation

libxslt-1.1.28 and texlive-20140525

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/valgrind

Installation of Valgrind

Install Valgrind by running the following commands:

sed -i 's|2.18|2.19|'      configure        &&
sed -i 's|/doc/valgrind||' docs/Makefile.in &&

./configure --prefix=/usr \
            --datadir=/usr/share/doc/valgrind-3.9.0 &&
make

To test the results, issue: make regtest.

If you wish to regenerate the documentation, run:

pushd docs         &&
make download-docs &&
popd

Now, as the root user:

make install

Command Explanations

sed s|2.18|2.19| ... : This sed allows the program to build with glibc-2.19.

sed s|/doc/valgrind|| ... : This sed provides for installing the documentation in a versioned directory.

Contents

Installed Programs: callgrind_annotate, callgrind_control, cg_annotate, cg_diff, cg_merge, ms_print, valgrind, valgrind-di-server, valgrind-listener, and vgdb
Installed Library: vgpreload_core-amd64-linux.so, vgpreload_drd-amd64-linux.so, vgpreload_exp-dhat-amd64-linux.so, vgpreload_exp-sgcheck-amd64-linux.so, vgpreload_helgrind-amd64-linux.so, vgpreload_massif-amd64-linux.so, and vgpreload_memcheck-amd64-linux.so
Installed Directories: /usr/lib/valgrind, /usr/include/valgrind, and /usr/share/doc/valgrind-3.9.0

Short Descriptions

valgrind

is a program for debugging and profiling Linux executables.

callgrind_annotate

takes an output file produced by the Valgrind tool Callgrind and prints the information in an easy-to-read form.

callgrind_control

controls programs being run by the Valgrind tool Callgrind.

cg_annotate

is a post-processing tool for the Valgrind tool Cachegrind.

cg_diff

compares two Cachegrind output files.

cg_merge

merges multiple Cachegrind output files into one.

ms_print

takes an output file produced by the Valgrind tool Massif and prints the information in an easy-to-read form.

valgrind-di-server

is a server that reads debuginfo from objects stored on a different machine.

valgrind-listener

listens on a socket for Valgrind commentary.

vgdb

is an intermediary between Valgrind and GDB or a shell.

Last updated on 2014-08-15 16:06:53 +0000