1 <?xml version="1.0"?> <!-- -*- sgml -*- -->
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
4 [ <!ENTITY % vg-entities SYSTEM "vg-entities.xml"> %vg-entities; ]>
7 <refentry id="valgrind">
10 <refentrytitle>VALGRIND</refentrytitle>
11 <manvolnum>1</manvolnum>
12 <refmiscinfo class="source">Release &rel-version;</refmiscinfo>
16 <refname>valgrind</refname>
17 <refpurpose>a suite of tools for debugging and profiling programs</refpurpose>
22 <command>valgrind</command>
23 <arg><replaceable>valgrind-options</replaceable></arg>
24 <arg><replaceable>your-program</replaceable></arg>
25 <arg><replaceable>your-program-options</replaceable></arg>
30 <refsect1 id="description">
31 <title>Description</title>
33 <para><command>Valgrind</command> is a flexible program for debugging
34 and profiling Linux executables. It consists of a core, which provides
35 a synthetic CPU in software, and a series of debugging and profiling tools.
36 The architecture is modular, so that new tools can be created easily and
37 without disturbing the existing structure.</para>
39 <para>Some of the options described below work with all Valgrind tools, and
40 some only work with a few or one. The section MEMCHECK OPTIONS and those
41 below it describe tool-specific options.</para>
43 <para>This manual page covers only basic usage and options. For more
44 comprehensive information, please see the HTML documentation on your
45 system: <filename>&vg-docs-path;</filename>, or online:
46 <filename>&vg-docs-url;</filename>.</para>
52 <refsect1 id="tool-selection-options">
53 <title>Tool Selection Options</title>
55 <xi:include href="manual-core.xml" xpointer="tool.opts.para"
56 xmlns:xi="http://www.w3.org/2001/XInclude" />
58 <xi:include href="manual-core.xml" xpointer="tool.opts.list"
59 xmlns:xi="http://www.w3.org/2001/XInclude" />
65 <refsect1 id="basic-options">
66 <title>Basic Options</title>
68 <xi:include href="manual-core.xml" xpointer="basic.opts.para"
69 xmlns:xi="http://www.w3.org/2001/XInclude" />
71 <xi:include href="manual-core.xml" xpointer="basic.opts.list"
72 xmlns:xi="http://www.w3.org/2001/XInclude" />
78 <refsect1 id="error-related-options">
79 <title>Error-Related Options</title>
81 <xi:include href="manual-core.xml" xpointer="error-related.opts.para"
82 xmlns:xi="http://www.w3.org/2001/XInclude" />
84 <xi:include href="manual-core.xml" xpointer="error-related.opts.list"
85 xmlns:xi="http://www.w3.org/2001/XInclude" />
91 <refsect1 id="malloc-related-options">
92 <title>malloc()-related Options</title>
94 <xi:include href="manual-core.xml" xpointer="malloc-related.opts.para"
95 xmlns:xi="http://www.w3.org/2001/XInclude" />
97 <xi:include href="manual-core.xml" xpointer="malloc-related.opts.list"
98 xmlns:xi="http://www.w3.org/2001/XInclude" />
104 <refsect1 id="uncommon-options">
105 <title>Uncommon Options</title>
108 <xi:include href="manual-core.xml" xpointer="uncommon.opts.para"
109 xmlns:xi="http://www.w3.org/2001/XInclude" />
111 <xi:include href="manual-core.xml" xpointer="uncommon.opts.list"
112 xmlns:xi="http://www.w3.org/2001/XInclude" />
118 <refsect1 id="debugging-valgrind-options">
119 <title>Debugging Valgrind Options</title>
121 <xi:include href="manual-core.xml" xpointer="debug.opts.para"
122 xmlns:xi="http://www.w3.org/2001/XInclude" />
128 <refsect1 id="memcheck-options">
129 <title>Memcheck Options</title>
131 <xi:include href="../../memcheck/docs/mc-manual.xml"
132 xpointer="mc.opts.list"
133 xmlns:xi="http://www.w3.org/2001/XInclude" />
139 <refsect1 id="cachegrind-options">
140 <title>Cachegrind Options</title>
142 <xi:include href="../../cachegrind/docs/cg-manual.xml"
143 xpointer="cg.opts.list"
144 xmlns:xi="http://www.w3.org/2001/XInclude" />
150 <refsect1 id="callgrind-options">
151 <title>Callgrind Options</title>
153 <xi:include href="../../callgrind/docs/cl-manual.xml"
154 xpointer="cl.opts.list.creation"
155 xmlns:xi="http://www.w3.org/2001/XInclude" />
156 <xi:include href="../../callgrind/docs/cl-manual.xml"
157 xpointer="cl.opts.list.activity"
158 xmlns:xi="http://www.w3.org/2001/XInclude" />
159 <xi:include href="../../callgrind/docs/cl-manual.xml"
160 xpointer="cl.opts.list.collection"
161 xmlns:xi="http://www.w3.org/2001/XInclude" />
162 <xi:include href="../../callgrind/docs/cl-manual.xml"
163 xpointer="cl.opts.list.simulation"
164 xmlns:xi="http://www.w3.org/2001/XInclude" />
169 <refsect1 id="helgrind-options">
170 <title>Helgrind Options</title>
172 <xi:include href="../../helgrind/docs/hg-manual.xml"
173 xpointer="hg.opts.list"
174 xmlns:xi="http://www.w3.org/2001/XInclude" />
180 <refsect1 id="drd-options">
181 <title>DRD Options</title>
183 <xi:include href="../../drd/docs/drd-manual.xml"
184 xpointer="drd.opts.list"
185 xmlns:xi="http://www.w3.org/2001/XInclude" />
186 <xi:include href="../../drd/docs/drd-manual.xml"
187 xpointer="drd.debugopts.list"
188 xmlns:xi="http://www.w3.org/2001/XInclude" />
194 <refsect1 id="massif-options">
195 <title>Massif Options</title>
197 <xi:include href="../../massif/docs/ms-manual.xml"
198 xpointer="ms.opts.list"
199 xmlns:xi="http://www.w3.org/2001/XInclude" />
205 <refsect1 id="bbv-options">
206 <title>BBV Options</title>
208 <xi:include href="../../exp-bbv/docs/bbv-manual.xml"
209 xpointer="bbv.opts.list"
210 xmlns:xi="http://www.w3.org/2001/XInclude" />
215 <refsect1 id="lackey-options">
216 <title>Lackey Options</title>
218 <xi:include href="../../lackey/docs/lk-manual.xml"
219 xpointer="lk.opts.list"
220 xmlns:xi="http://www.w3.org/2001/XInclude" />
225 <refsect1 id="see_also">
226 <title>See Also</title>
230 callgrind_annotate(1),
231 callgrind_control(1),
233 <filename>&vg-docs-path;</filename> or
234 <filename>&vg-docs-url;</filename>,
235 <ulink id="&vg-gdbserver-id;"
236 xreflabel="&vg-gdbserver-label;"
237 url="&vg-gdbserver-url;">&vg-gdbserver-label;</ulink>
238 <ulink id="&vg-vgdb-id;"
239 xreflabel="&vg-vgdb-label;"
240 url="&vg-vgdb-url;">&vg-vgdb-label;</ulink>,
241 <ulink id="&vg-monitor-id;"
242 xreflabel="&vg-monitor-label;"
243 url="&vg-monitor-url;">&vg-monitor-label;</ulink>,
244 <ulink id="&vg-comment-id;"
245 xreflabel="&vg-comment-label;"
246 url="&vg-comment-url;">&vg-comment-label;</ulink>,
247 <ulink id="&vg-pthreads-perf-sched-id;"
248 xreflabel="&vg-pthreads-perf-sched-label;"
249 url="&vg-pthreads-perf-sched-url;">&vg-pthreads-perf-sched-label;</ulink>,
250 <ulink id="&vg-cg-manual-id;"
251 xreflabel="&vg-cg-manual-label;"
252 url="&vg-cg-manual-url;">&vg-cg-manual-label;</ulink>.
253 <ulink id="&vg-xtree-id;"
254 xreflabel="&vg-xtree-label;"
255 url="&vg-xtree-url;">&vg-xtree-label;</ulink>
261 <refsect1 id="author">
262 <title>Author</title>
264 <para>See the AUTHORS file in the valgrind distribution for a
265 comprehensive list of authors.</para>
266 <para>This manpage was written by Andres Roldan <aroldan@debian.org>
267 and the Valgrind developers.</para>