Debian Codegraph @

docs/html/manual-intro.html

raw
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4 <title>1. Introduction</title>
5 <link rel="stylesheet" type="text/css" href="vg_basic.css">
6 <meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
7 <link rel="home" href="index.html" title="Valgrind Documentation">
8 <link rel="up" href="manual.html" title="Valgrind User Manual">
9 <link rel="prev" href="manual.html" title="Valgrind User Manual">
10 <link rel="next" href="manual-core.html" title="2. Using and understanding the Valgrind core">
11 </head>
12 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13 <div><table class="nav" width="100%" cellspacing="3" cellpadding="3" border="0" summary="Navigation header"><tr>
14 <td width="22px" align="center" valign="middle"><a accesskey="p" href="manual.html"><img src="images/prev.png" width="18" height="21" border="0" alt="Prev"></a></td>
15 <td width="25px" align="center" valign="middle"><a accesskey="u" href="manual.html"><img src="images/up.png" width="21" height="18" border="0" alt="Up"></a></td>
16 <td width="31px" align="center" valign="middle"><a accesskey="h" href="index.html"><img src="images/home.png" width="27" height="20" border="0" alt="Up"></a></td>
17 <th align="center" valign="middle">Valgrind User Manual</th>
18 <td width="22px" align="center" valign="middle"><a accesskey="n" href="manual-core.html"><img src="images/next.png" width="18" height="21" border="0" alt="Next"></a></td>
19 </tr></table></div>
20 <div class="chapter">
21 <div class="titlepage"><div><div><h1 class="title">
22 <a name="manual-intro"></a>1. Introduction</h1></div></div></div>
23 <div class="toc">
24 <p><b>Table of Contents</b></p>
25 <dl class="toc">
26 <dt><span class="sect1"><a href="manual-intro.html#manual-intro.overview">1.1. An Overview of Valgrind</a></span></dt>
27 <dt><span class="sect1"><a href="manual-intro.html#manual-intro.navigation">1.2. How to navigate this manual</a></span></dt>
28 </dl>
29 </div>
30 <div class="sect1">
31 <div class="titlepage"><div><div><h2 class="title" style="clear: both">
32 <a name="manual-intro.overview"></a>1.1. An Overview of Valgrind</h2></div></div></div>
33 <p>Valgrind is an instrumentation framework for building dynamic analysis
34 tools. It comes with a set of tools each of which performs some kind of
35 debugging, profiling, or similar task that helps you improve your programs.
36 Valgrind's architecture is modular, so new tools can be created easily
37 and without disturbing the existing structure.</p>
38 <p>A number of useful tools are supplied as standard.</p>
39 <div class="orderedlist"><ol class="orderedlist" type="1">
40 <li class="listitem"><p><span class="command"><strong>Memcheck</strong></span> is a memory error detector. It helps
41 you make your programs, particularly those written in C and C++, more
42 correct.</p></li>
43 <li class="listitem"><p><span class="command"><strong>Cachegrind</strong></span> is a cache and branch-prediction
44 profiler. It helps you make your programs run faster.</p></li>
45 <li class="listitem"><p><span class="command"><strong>Callgrind</strong></span> is a call-graph generating cache
46 profiler. It has some overlap with Cachegrind, but also gathers some
47 information that Cachegrind does not.</p></li>
48 <li class="listitem"><p><span class="command"><strong>Helgrind</strong></span> is a thread error detector.
49 It helps you make your multi-threaded programs more correct.
50 </p></li>
51 <li class="listitem"><p><span class="command"><strong>DRD</strong></span> is also a thread error detector. It is
52 similar to Helgrind but uses different analysis techniques and so may
53 find different problems.</p></li>
54 <li class="listitem"><p><span class="command"><strong>Massif</strong></span> is a heap profiler. It helps you
55 make your programs use less memory.</p></li>
56 <li class="listitem"><p><span class="command"><strong>DHAT</strong></span> is a different kind of heap
57 profiler. It helps you understand issues of block lifetimes,
58 block utilisation, and layout inefficiencies.</p></li>
59 <li class="listitem"><p><span class="command"><strong>BBV</strong></span> is an experimental SimPoint basic block
60 vector generator. It is useful to people doing computer architecture
61 research and development.</p></li>
62 </ol></div>
63 <p>There are also a couple of minor tools that aren't useful to
64 most users: <span class="command"><strong>Lackey</strong></span> is an example tool that illustrates
65 some instrumentation basics; and <span class="command"><strong>Nulgrind</strong></span> is the minimal
66 Valgrind tool that does no analysis or instrumentation, and is only useful
67 for testing purposes.</p>
68 <p>Valgrind is closely tied to details of the CPU and operating
69 system, and to a lesser extent, the compiler and basic C libraries.
70 Nonetheless, it supports a number of widely-used platforms, listed in full
71 at <a class="ulink" href="http://www.valgrind.org/" target="_top">http://www.valgrind.org/</a>.</p>
72 <p>Valgrind is built via the standard Unix
73 <code class="computeroutput">./configure</code>,
74 <code class="computeroutput">make</code>, <code class="computeroutput">make
75 install</code> process; full details are given in the
76 README file in the distribution.</p>
77 <p>Valgrind is licensed under the <a class="xref" href="license.gpl.html" title="1. The GNU General Public License"> The GNU General Public License</a>,
78 version 2. The <code class="computeroutput">valgrind/*.h</code> headers
79 that you may wish to include in your code (eg.
80 <code class="filename">valgrind.h</code>, <code class="filename">memcheck.h</code>,
81 <code class="filename">helgrind.h</code>, etc.) are
82 distributed under a BSD-style license, so you may include them in your
83 code without worrying about license conflicts. Some of the PThreads
84 test cases, <code class="filename">pth_*.c</code>, are taken from "Pthreads
85 Programming" by Bradford Nichols, Dick Buttlar &amp; Jacqueline Proulx
86 Farrell, ISBN 1-56592-115-1, published by O'Reilly &amp; Associates,
87 Inc.</p>
88 <p>If you contribute code to Valgrind, please ensure your
89 contributions are licensed as "GPLv2, or (at your option) any later
90 version." This is so as to allow the possibility of easily upgrading
91 the license to GPLv3 in future. If you want to modify code in the VEX
92 subdirectory, please also see the file VEX/HACKING.README in the
93 distribution.</p>
94 </div>
95 <div class="sect1">
96 <div class="titlepage"><div><div><h2 class="title" style="clear: both">
97 <a name="manual-intro.navigation"></a>1.2. How to navigate this manual</h2></div></div></div>
98 <p>This manual's structure reflects the structure of Valgrind itself.
99 First, we describe the Valgrind core, how to use it, and the options
100 it supports. Then, each tool has its own chapter in this manual. You
101 only need to read the documentation for the core and for the tool(s) you
102 actually use, although you may find it helpful to be at least a little
103 bit familiar with what all tools do. If you're new to all this, you probably
104 want to run the Memcheck tool and you might find the <a class="xref" href="quick-start.html" title="The Valgrind Quick Start Guide">The Valgrind Quick Start Guide</a> useful.</p>
105 <p>Be aware that the core understands some command line options, and
106 the tools have their own options which they know about. This means
107 there is no central place describing all the options that are
108 accepted -- you have to read the options documentation both for
109 <a class="xref" href="manual-core.html" title="2. Using and understanding the Valgrind core">Valgrind's core</a> and for the tool you want to use.</p>
110 </div>
111 </div>
112 <div>
113 <br><table class="nav" width="100%" cellspacing="3" cellpadding="2" border="0" summary="Navigation footer">
114 <tr>
115 <td rowspan="2" width="40%" align="left">
116 <a accesskey="p" href="manual.html">&lt;&lt; Valgrind User Manual</a> </td>
117 <td width="20%" align="center"><a accesskey="u" href="manual.html">Up</a></td>
118 <td rowspan="2" width="40%" align="right"> <a accesskey="n" href="manual-core.html">2. Using and understanding the Valgrind core &gt;&gt;</a>
119 </td>
120 </tr>
121 <tr><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td></tr>
122 </table>
123 </div>
124 </body>
125 </html>