blob: 64ccf1d5a644d1c14872d8d78a4af5443f997aed [file] [log] [blame]
debad57fc2005-12-03 22:33:29 +00001<?xml version="1.0"?> <!-- -*- sgml -*- -->
2<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
4[ <!ENTITY % vg-entities SYSTEM "vg-entities.xml"> %vg-entities; ]>
5
6
7<refentry id="valgrind">
8
9<refmeta>
10 <refentrytitle>VALGRIND</refentrytitle>
11 <manvolnum>1</manvolnum>
12 <refmiscinfo>Release &rel-version;</refmiscinfo>
13</refmeta>
14
15<refnamediv>
16 <refname>valgrind</refname>
17 <refpurpose>a suite of tools for debugging and profiling programs</refpurpose>
18</refnamediv>
19
20<refsynopsisdiv>
21<cmdsynopsis>
22 <command>valgrind</command>
njn3a5786e2009-07-30 04:22:09 +000023 <arg><replaceable>valgrind-options</replaceable></arg>
24 <arg><command>your-program</command></arg>
25 <arg><replaceable>your-program-options</replaceable></arg>
debad57fc2005-12-03 22:33:29 +000026</cmdsynopsis>
27</refsynopsisdiv>
28
29
30<refsect1 id="description">
31<title>Description</title>
32
33<para><command>Valgrind</command> is a flexible program for debugging
34and profiling Linux executables. It consists of a core, which provides
njn3a5786e2009-07-30 04:22:09 +000035a synthetic CPU in software, and a series of debugging and profiling tools.
36The architecture is modular, so that new tools can be created easily and
37without disturbing the existing structure.</para>
38
39<para>Some of the options described below work with all Valgrind tools, and
40some only work with a few or one. The section MEMCHECK OPTIONS and those
41below it describe tool-specific options.</para>
debad57fc2005-12-03 22:33:29 +000042
43<para>This manual page covers only basic usage and options. For more
44comprehensive information, please see the HTML documentation on your
njn25ac3842009-08-07 02:58:11 +000045system: <filename>&vg-docs-path;</filename>, or online:
46<filename>&vg-docs-url;</filename>.</para>
debad57fc2005-12-03 22:33:29 +000047
48</refsect1>
49
50
debad57fc2005-12-03 22:33:29 +000051
52<refsect1 id="basic-options">
53<title>Basic Options</title>
54
de03e0e7c2005-12-03 23:02:33 +000055<xi:include href="manual-core.xml" xpointer="basic.opts.para"
56 xmlns:xi="http://www.w3.org/2001/XInclude" />
debad57fc2005-12-03 22:33:29 +000057
de03e0e7c2005-12-03 23:02:33 +000058<xi:include href="manual-core.xml" xpointer="basic.opts.list"
debad57fc2005-12-03 22:33:29 +000059 xmlns:xi="http://www.w3.org/2001/XInclude" />
60
61</refsect1>
62
63
64
65<refsect1 id="error-related-options">
66<title>Error-Related Options</title>
67
de03e0e7c2005-12-03 23:02:33 +000068<xi:include href="manual-core.xml" xpointer="error-related.opts.para"
69 xmlns:xi="http://www.w3.org/2001/XInclude" />
debad57fc2005-12-03 22:33:29 +000070
de03e0e7c2005-12-03 23:02:33 +000071<xi:include href="manual-core.xml" xpointer="error-related.opts.list"
debad57fc2005-12-03 22:33:29 +000072 xmlns:xi="http://www.w3.org/2001/XInclude" />
73
74</refsect1>
75
76
77
78<refsect1 id="malloc-related-options">
79<title>malloc()-related Options</title>
80
de03e0e7c2005-12-03 23:02:33 +000081<xi:include href="manual-core.xml" xpointer="malloc-related.opts.para"
82 xmlns:xi="http://www.w3.org/2001/XInclude" />
debad57fc2005-12-03 22:33:29 +000083
de03e0e7c2005-12-03 23:02:33 +000084<xi:include href="manual-core.xml" xpointer="malloc-related.opts.list"
debad57fc2005-12-03 22:33:29 +000085 xmlns:xi="http://www.w3.org/2001/XInclude" />
86
87</refsect1>
88
89
90
91<refsect1 id="uncommon-options">
92<title>Uncommon Options</title>
93
debad57fc2005-12-03 22:33:29 +000094
de03e0e7c2005-12-03 23:02:33 +000095<xi:include href="manual-core.xml" xpointer="uncommon.opts.para"
96 xmlns:xi="http://www.w3.org/2001/XInclude" />
97
98<xi:include href="manual-core.xml" xpointer="uncommon.opts.list"
debad57fc2005-12-03 22:33:29 +000099 xmlns:xi="http://www.w3.org/2001/XInclude" />
100
101</refsect1>
102
103
104
105<refsect1 id="debugging-valgrind-options">
106<title>Debugging Valgrind Options</title>
107
de03e0e7c2005-12-03 23:02:33 +0000108<xi:include href="manual-core.xml" xpointer="debug.opts.para"
109 xmlns:xi="http://www.w3.org/2001/XInclude" />
debad57fc2005-12-03 22:33:29 +0000110
111</refsect1>
112
113
114
115<refsect1 id="memcheck-options">
116<title>Memcheck Options</title>
117
de03e0e7c2005-12-03 23:02:33 +0000118<xi:include href="../../memcheck/docs/mc-manual.xml"
119 xpointer="mc.opts.list"
debad57fc2005-12-03 22:33:29 +0000120 xmlns:xi="http://www.w3.org/2001/XInclude" />
121
122</refsect1>
123
124
125
126<refsect1 id="cachegrind-options">
127<title>Cachegrind Options</title>
128
de03e0e7c2005-12-03 23:02:33 +0000129<xi:include href="../../cachegrind/docs/cg-manual.xml"
130 xpointer="cg.opts.para"
debad57fc2005-12-03 22:33:29 +0000131 xmlns:xi="http://www.w3.org/2001/XInclude" />
132
de03e0e7c2005-12-03 23:02:33 +0000133<xi:include href="../../cachegrind/docs/cg-manual.xml"
134 xpointer="cg.opts.list"
debad57fc2005-12-03 22:33:29 +0000135 xmlns:xi="http://www.w3.org/2001/XInclude" />
136
137</refsect1>
138
139
140
weidendoaf0e7232006-03-20 10:29:30 +0000141<refsect1 id="callgrind-options">
142<title>Callgrind Options</title>
143
144<xi:include href="../../callgrind/docs/cl-manual.xml"
weidendocbf4e192007-11-27 01:27:12 +0000145 xpointer="cl.opts.list.creation"
146 xmlns:xi="http://www.w3.org/2001/XInclude" />
147<xi:include href="../../callgrind/docs/cl-manual.xml"
148 xpointer="cl.opts.list.activity"
149 xmlns:xi="http://www.w3.org/2001/XInclude" />
150<xi:include href="../../callgrind/docs/cl-manual.xml"
151 xpointer="cl.opts.list.collection"
152 xmlns:xi="http://www.w3.org/2001/XInclude" />
153<xi:include href="../../callgrind/docs/cl-manual.xml"
154 xpointer="cl.opts.list.simulation"
155 xmlns:xi="http://www.w3.org/2001/XInclude" />
weidendoaf0e7232006-03-20 10:29:30 +0000156</refsect1>
157
158
159
njn3a5786e2009-07-30 04:22:09 +0000160<refsect1 id="helgrind-options">
161<title>Helgrind Options</title>
debad57fc2005-12-03 22:33:29 +0000162
njn3a5786e2009-07-30 04:22:09 +0000163<xi:include href="../../helgrind/docs/hg-manual.xml"
164 xpointer="hg.opts.list"
debad57fc2005-12-03 22:33:29 +0000165 xmlns:xi="http://www.w3.org/2001/XInclude" />
166
167</refsect1>
168
169
170
njn3a5786e2009-07-30 04:22:09 +0000171<refsect1 id="drd-options">
172<title>DRD Options</title>
debad57fc2005-12-03 22:33:29 +0000173
njn3a5786e2009-07-30 04:22:09 +0000174<xi:include href="../../drd/docs/drd-manual.xml"
175 xpointer="drd.opts.list"
176 xmlns:xi="http://www.w3.org/2001/XInclude" />
177
178</refsect1>
179
180
181
182<refsect1 id="massif-options">
183<title>Massif Options</title>
184
185<xi:include href="../../massif/docs/ms-manual.xml"
186 xpointer="ms.opts.list"
debad57fc2005-12-03 22:33:29 +0000187 xmlns:xi="http://www.w3.org/2001/XInclude" />
188
189</refsect1>
190
191
192
sewardj37a78a02008-10-23 13:15:23 +0000193<refsect1 id="ptrcheck-options">
194<title>Ptrcheck Options</title>
195
196<xi:include href="../../exp-ptrcheck/docs/pc-manual.xml"
197 xpointer="pc.opts.list"
198 xmlns:xi="http://www.w3.org/2001/XInclude" />
199
200</refsect1>
201
njndbebecc2009-07-14 01:39:54 +0000202<refsect1 id="bbv-options">
203<title>BBV Options</title>
204
205<xi:include href="../../exp-bbv/docs/bbv-manual.xml"
206 xpointer="bbv.opts.list"
207 xmlns:xi="http://www.w3.org/2001/XInclude" />
208
209</refsect1>
sewardj37a78a02008-10-23 13:15:23 +0000210
211
debad57fc2005-12-03 22:33:29 +0000212<refsect1 id="lackey-options">
213<title>Lackey Options</title>
214
de03e0e7c2005-12-03 23:02:33 +0000215<xi:include href="../../lackey/docs/lk-manual.xml"
216 xpointer="lk.opts.list"
debad57fc2005-12-03 22:33:29 +0000217 xmlns:xi="http://www.w3.org/2001/XInclude" />
218
219</refsect1>
220
221
debad57fc2005-12-03 22:33:29 +0000222<refsect1 id="see_also">
223<title>See Also</title>
224
225<para>
njn25ac3842009-08-07 02:58:11 +0000226<filename>&vg-docs-path;</filename>,
debad57fc2005-12-03 22:33:29 +0000227and/or
njn25ac3842009-08-07 02:58:11 +0000228<filename>&vg-docs-url;</filename>.
debad57fc2005-12-03 22:33:29 +0000229</para>
230
231</refsect1>
232
233
234<refsect1 id="author">
235<title>Author</title>
236
237<para>This manpage has been written by Andres Roldan &lt;aroldan@debian.org&gt;
238for the Debian Project, but can be used for any other distribution.</para>
239
240<para>Updated, rearranged and expanded by Robert Walsh
241&lt;rjwalsh@durables.org&gt; for the 2.4.0 release, and by other
242Valgrind developers subsequently.</para>
243
244</refsect1>
245
246
247</refentry>
248