source: general/prog/valgrind.xml@ a3394a71

systemd-13485
Last change on this file since a3394a71 was a3394a71, checked in by Douglas R. Reno <renodr@…>, 9 years ago

First round of tags for the day.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@16502 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 9.7 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY valgrind-download-http "http://valgrind.org/downloads/valgrind-&valgrind-version;.tar.bz2">
8 <!ENTITY valgrind-download-ftp " ">
9 <!ENTITY valgrind-md5sum "4ea62074da73ae82e0162d6550d3f129">
10 <!ENTITY valgrind-size "11.4 MB">
11 <!ENTITY valgrind-buildsize "572 MB (with the test suite)">
12 <!ENTITY valgrind-time "4.3 SBU (with the test suite)">
13]>
14
15<sect1 id="valgrind" xreflabel="Valgrind-&valgrind-version;">
16 <?dbhtml filename="valgrind.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>Valgrind-&valgrind-version;</title>
24
25 <indexterm zone="valgrind">
26 <primary sortas="a-Valgrind">Valgrind</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to Valgrind</title>
31
32 <para>
33 <application>Valgrind</application> is an instrumentation framework for
34 building dynamic analysis tools. There are Valgrind tools that can
35 automatically detect many memory management and threading bugs, and
36 profile programs in detail. Valgrind can also be used to build new
37 tools.
38 </para>
39
40 &lfs78_checked;
41
42 <bridgehead renderas="sect3">Package Information</bridgehead>
43 <itemizedlist spacing="compact">
44 <listitem>
45 <para>
46 Download (HTTP): <ulink url="&valgrind-download-http;"/>
47 </para>
48 </listitem>
49 <listitem>
50 <para>
51 Download (FTP): <ulink url="&valgrind-download-ftp;"/>
52 </para>
53 </listitem>
54 <listitem>
55 <para>
56 Download MD5 sum: &valgrind-md5sum;
57 </para>
58 </listitem>
59 <listitem>
60 <para>
61 Download size: &valgrind-size;
62 </para>
63 </listitem>
64 <listitem>
65 <para>
66 Estimated disk space required: &valgrind-buildsize;
67 </para>
68 </listitem>
69 <listitem>
70 <para>
71 Estimated build time: &valgrind-time;
72 </para>
73 </listitem>
74 </itemizedlist>
75
76 <bridgehead renderas="sect3">Valgrind Dependencies</bridgehead>
77
78 <bridgehead renderas="sect4">Optional</bridgehead>
79 <para role="optional">
80 <xref linkend="boost"/>,
81 <xref linkend="llvm"/> (with Clang),
82 <xref linkend="gdb"/> (for tests), and
83 <ulink url="http://www.open-mpi.org/">OpenMPI</ulink>
84 </para>
85
86 <bridgehead renderas="sect4">Optional for regenerating the documentation</bridgehead>
87 <para role="optional">
88 <xref linkend="libxslt"/> and
89 <xref linkend="texlive"/> (or <xref linkend="tl-installer"/>)
90 </para>
91
92 <para condition="html" role="usernotes">User Notes:
93 <ulink url="&blfs-wiki;/valgrind"/>
94 </para>
95 </sect2>
96
97 <sect2 role="installation">
98 <title>Installation of Valgrind</title>
99
100 <para>Install <application>Valgrind</application> by running the following
101 commands:</para>
102
103<screen><userinput>sed -i "s:/doc/valgrind::g" docs/Makefile.in &amp;&amp;
104./configure --prefix=/usr --datadir=/usr/share/doc/valgrind-&valgrind-version; &amp;&amp;
105make</userinput></screen>
106
107 <para>
108 To test the results, issue: <command>make regtest</command>.
109 </para>
110<!-- Note to maintainer: Recheck when next texlive (2015) is released.
111 <para>
112 If you wish to regenerate the documentation, run:
113 </para>
114
115<screen><userinput>make -C docs download-docs</userinput></screen>
116-->
117 <para>
118 Now, as the <systemitem class="username">root</systemitem> user:
119 </para>
120
121<screen role="root"><userinput>make install</userinput></screen>
122
123 </sect2>
124
125 <sect2 role="commands">
126 <title>Command Explanations</title>
127
128 <para>
129 <command>sed -i ... docs/Makefile.in </command>: This sed provides for
130 installing the documentation in a versioned directory.
131 </para>
132
133 </sect2>
134
135 <sect2 role="content">
136 <title>Contents</title>
137
138 <segmentedlist>
139 <segtitle>Installed Programs</segtitle>
140 <segtitle>Installed Library</segtitle>
141 <segtitle>Installed Directories</segtitle>
142
143 <seglistitem>
144 <seg>
145 callgrind_annotate,
146 callgrind_control,
147 cg_annotate,
148 cg_diff,
149 cg_merge,
150 ms_print,
151 valgrind,
152 valgrind-di-server,
153 valgrind-listener, and
154 vgdb
155 </seg>
156 <seg>
157 libcoregrind-&lt;Arch&gt;-linux.a,
158 libreplacemalloc_toolpreload-&lt;Arch&gt;-linux.a,
159 libvex-&lt;Arch&gt;-linux.a,
160 libvexmultiarch-&lt;Arch&gt;-linux.a,
161 vgpreload_core-&lt;Arch&gt;-linux.so,
162 vgpreload_drd-&lt;Arch&gt;-linux.so,
163 vgpreload_exp-dhat-&lt;Arch&gt;-linux.so,
164 vgpreload_exp-sgcheck-&lt;Arch&gt;-linux.so,
165 vgpreload_helgrind-&lt;Arch&gt;-linux.so,
166 vgpreload_massif-&lt;Arch&gt;-linux.so, and
167 vgpreload_memcheck-&lt;Arch&gt;-linux.so, where
168 &lt;Arch&gt;=x86, amd64. Libraries are in /usr/lib/valgrind.
169 </seg>
170 <seg>
171 /usr/lib/valgrind,
172 /usr/include/valgrind, and
173 /usr/share/doc/valgrind-&valgrind-version;
174 </seg>
175 </seglistitem>
176 </segmentedlist>
177
178 <variablelist>
179 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
180 <?dbfo list-presentation="list"?>
181 <?dbhtml list-presentation="table"?>
182
183 <varlistentry id="valgrind-prog">
184 <term><command>valgrind</command></term>
185 <listitem>
186 <para>
187 is a program for debugging and profiling Linux executables.
188 </para>
189 <indexterm zone="valgrind valgrind-prog">
190 <primary sortas="b-valgrind">valgrind</primary>
191 </indexterm>
192 </listitem>
193 </varlistentry>
194
195 <varlistentry id="callgrind_annotate">
196 <term><command>callgrind_annotate</command></term>
197 <listitem>
198 <para>
199 takes an output file produced by the
200 <application>Valgrind</application> tool Callgrind and prints the
201 information in an easy-to-read form.
202 </para>
203 <indexterm zone="callgrind_annotate">
204 <primary sortas="b-callgrind_annotate">callgrind_annotate</primary>
205 </indexterm>
206 </listitem>
207 </varlistentry>
208
209 <varlistentry id="callgrind_control">
210 <term><command>callgrind_control</command></term>
211 <listitem>
212 <para>
213 controls programs being run by the <application>Valgrind</application>
214 tool Callgrind.
215 </para>
216 <indexterm zone="valgrind callgrind_control">
217 <primary sortas="b-callgrind_control">callgrind_control</primary>
218 </indexterm>
219 </listitem>
220 </varlistentry>
221
222 <varlistentry id="cg_annotate">
223 <term><command>cg_annotate</command></term>
224 <listitem>
225 <para>
226 is a post-processing tool for the <application>Valgrind</application>
227 tool Cachegrind.
228 </para>
229 <indexterm zone="valgrind cg_annotate">
230 <primary sortas="b-cg_annotate">cg_annotate</primary>
231 </indexterm>
232 </listitem>
233 </varlistentry>
234
235 <varlistentry id="cg_diff">
236 <term><command>cg_diff</command></term>
237 <listitem>
238 <para>
239 compares two Cachegrind output files.
240 </para>
241 <indexterm zone="valgrind cg_diff">
242 <primary sortas="b-cg_diff">cg_diff</primary>
243 </indexterm>
244 </listitem>
245 </varlistentry>
246
247 <varlistentry id="cg_merge">
248 <term><command>cg_merge</command></term>
249 <listitem>
250 <para>
251 merges multiple Cachegrind output files into one.
252 </para>
253 <indexterm zone="valgrind cg_merge">
254 <primary sortas="b-cg_merge">cg_merge</primary>
255 </indexterm>
256 </listitem>
257 </varlistentry>
258
259 <varlistentry id="ms_print">
260 <term><command>ms_print</command></term>
261 <listitem>
262 <para>
263 takes an output file produced by the <application>Valgrind</application>
264 tool Massif and prints the information in an easy-to-read form.
265 </para>
266 <indexterm zone="valgrind ms_print">
267 <primary sortas="b-ms_print">ms_print</primary>
268 </indexterm>
269 </listitem>
270 </varlistentry>
271
272 <varlistentry id="valgrind-di-server">
273 <term><command>valgrind-di-server</command></term>
274 <listitem>
275 <para>
276 is a server that reads debuginfo from objects stored on a
277 different machine.
278 </para>
279 <indexterm zone="valgrind valgrind-di-server">
280 <primary sortas="b-valgrind-di-server">valgrind-di-server</primary>
281 </indexterm>
282 </listitem>
283 </varlistentry>
284
285 <varlistentry id="valgrind-listener">
286 <term><command>valgrind-listener</command></term>
287 <listitem>
288 <para>
289 listens on a socket for Valgrind commentary.
290 </para>
291 <indexterm zone="valgrind valgrind-listener">
292 <primary sortas="b-valgrind-listener">valgrind-listener</primary>
293 </indexterm>
294 </listitem>
295 </varlistentry>
296
297 <varlistentry id="vgdb">
298 <term><command>vgdb</command></term>
299 <listitem>
300 <para>
301 is an intermediary between Valgrind and GDB or a shell.
302 </para>
303 <indexterm zone="valgrind vgdb">
304 <primary sortas="b-vgdb">vgdb</primary>
305 </indexterm>
306 </listitem>
307 </varlistentry>
308
309 </variablelist>
310
311 </sect2>
312
313</sect1>
Note: See TracBrowser for help on using the repository browser.