source: general/prog/valgrind.xml@ 9dfdd942

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 9dfdd942 was 9dfdd942, checked in by Fernando de Oliveira <fernando@…>, 10 years ago

Valgrind-3.10.0: tweaks.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@14596 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 9.5 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 "7c311a72a20388aceced1aa5573ce970">
10 <!ENTITY valgrind-size "10.4 MB">
11 <!ENTITY valgrind-buildsize "672 MB">
12 <!ENTITY valgrind-time "1.3 SBU and an additional 4.5 SBU for tests">
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 &lfs76_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.openmp.org">OpenMP</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"/>
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/-mt//g' configure &amp;&amp;
104sed -i 's|/doc/valgrind||' docs/Makefile.in &amp;&amp;
105
106./configure --prefix=/usr \
107 --datadir=/usr/share/doc/valgrind-&valgrind-version; &amp;&amp;
108make</userinput></screen>
109
110 <para>
111 To test the results, issue: <command>make regtest</command>.
112 </para>
113
114 <para>
115 If you wish to regenerate the documentation, run:
116 </para>
117
118<screen><userinput>pushd docs &amp;&amp;
119make download-docs &amp;&amp;
120popd</userinput></screen>
121
122 <para>
123 Now, as the <systemitem class="username">root</systemitem> user:
124 </para>
125
126<screen role="root"><userinput>make install</userinput></screen>
127
128 </sect2>
129
130 <sect2 role="commands">
131 <title>Command Explanations</title>
132
133 <para>
134 <command>sed -i 's/-mt//g' configure</command>: Fixes configure script to
135 find newer versions of Boost.
136 </para>
137
138 <para>
139 <command>sed -i ... docs/Makefile.in </command>: This sed provides for
140 installing the documentation in a versioned directory.
141 </para>
142
143 </sect2>
144
145 <sect2 role="content">
146 <title>Contents</title>
147
148 <segmentedlist>
149 <segtitle>Installed Programs</segtitle>
150 <segtitle>Installed Library</segtitle>
151 <segtitle>Installed Directories</segtitle>
152
153 <seglistitem>
154 <seg>
155 callgrind_annotate,
156 callgrind_control,
157 cg_annotate,
158 cg_diff,
159 cg_merge,
160 ms_print,
161 valgrind,
162 valgrind-di-server,
163 valgrind-listener, and
164 vgdb
165 </seg>
166 <seg>
167 vgpreload_core-amd64-linux.so,
168 vgpreload_drd-amd64-linux.so,
169 vgpreload_exp-dhat-amd64-linux.so,
170 vgpreload_exp-sgcheck-amd64-linux.so,
171 vgpreload_helgrind-amd64-linux.so,
172 vgpreload_massif-amd64-linux.so, and
173 vgpreload_memcheck-amd64-linux.so
174 </seg>
175 <seg>
176 /usr/lib/valgrind,
177 /usr/include/valgrind, and
178 /usr/share/doc/valgrind-&valgrind-version;
179 </seg>
180 </seglistitem>
181 </segmentedlist>
182
183 <variablelist>
184 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
185 <?dbfo list-presentation="list"?>
186 <?dbhtml list-presentation="table"?>
187
188 <varlistentry id="valgrind-prog">
189 <term><command>valgrind</command></term>
190 <listitem>
191 <para>
192 is a program for debugging and profiling Linux executables.
193 </para>
194 <indexterm zone="valgrind valgrind-prog">
195 <primary sortas="b-valgrind">valgrind</primary>
196 </indexterm>
197 </listitem>
198 </varlistentry>
199
200 <varlistentry id="callgrind_annotate">
201 <term><command>callgrind_annotate</command></term>
202 <listitem>
203 <para>
204 takes an output file produced by the
205 <application>Valgrind</application> tool Callgrind and prints the
206 information in an easy-to-read form.
207 </para>
208 <indexterm zone="callgrind_annotate">
209 <primary sortas="b-callgrind_annotate">callgrind_annotate</primary>
210 </indexterm>
211 </listitem>
212 </varlistentry>
213
214 <varlistentry id="callgrind_control">
215 <term><command>callgrind_control</command></term>
216 <listitem>
217 <para>
218 controls programs being run by the <application>Valgrind</application>
219 tool Callgrind.
220 </para>
221 <indexterm zone="valgrind callgrind_control">
222 <primary sortas="b-callgrind_control">callgrind_control</primary>
223 </indexterm>
224 </listitem>
225 </varlistentry>
226
227 <varlistentry id="cg_annotate">
228 <term><command>cg_annotate</command></term>
229 <listitem>
230 <para>
231 is a post-processing tool for the <application>Valgrind</application>
232 tool Cachegrind.
233 </para>
234 <indexterm zone="valgrind cg_annotate">
235 <primary sortas="b-cg_annotate">cg_annotate</primary>
236 </indexterm>
237 </listitem>
238 </varlistentry>
239
240 <varlistentry id="cg_diff">
241 <term><command>cg_diff</command></term>
242 <listitem>
243 <para>
244 compares two Cachegrind output files.
245 </para>
246 <indexterm zone="valgrind cg_diff">
247 <primary sortas="b-cg_diff">cg_diff</primary>
248 </indexterm>
249 </listitem>
250 </varlistentry>
251
252 <varlistentry id="cg_merge">
253 <term><command>cg_merge</command></term>
254 <listitem>
255 <para>
256 merges multiple Cachegrind output files into one.
257 </para>
258 <indexterm zone="valgrind cg_merge">
259 <primary sortas="b-cg_merge">cg_merge</primary>
260 </indexterm>
261 </listitem>
262 </varlistentry>
263
264 <varlistentry id="ms_print">
265 <term><command>ms_print</command></term>
266 <listitem>
267 <para>
268 takes an output file produced by the <application>Valgrind</application>
269 tool Massif and prints the information in an easy-to-read form.
270 </para>
271 <indexterm zone="valgrind ms_print">
272 <primary sortas="b-ms_print">ms_print</primary>
273 </indexterm>
274 </listitem>
275 </varlistentry>
276
277 <varlistentry id="valgrind-di-server">
278 <term><command>valgrind-di-server</command></term>
279 <listitem>
280 <para>
281 is a server that reads debuginfo from objects stored on a
282 different machine.
283 </para>
284 <indexterm zone="valgrind valgrind-di-server">
285 <primary sortas="b-valgrind-di-server">valgrind-di-server</primary>
286 </indexterm>
287 </listitem>
288 </varlistentry>
289
290 <varlistentry id="valgrind-listener">
291 <term><command>valgrind-listener</command></term>
292 <listitem>
293 <para>
294 listens on a socket for Valgrind commentary.
295 </para>
296 <indexterm zone="valgrind valgrind-listener">
297 <primary sortas="b-valgrind-listener">valgrind-listener</primary>
298 </indexterm>
299 </listitem>
300 </varlistentry>
301
302 <varlistentry id="vgdb">
303 <term><command>vgdb</command></term>
304 <listitem>
305 <para>
306 is an intermediary between Valgrind and GDB or a shell.
307 </para>
308 <indexterm zone="valgrind vgdb">
309 <primary sortas="b-vgdb">vgdb</primary>
310 </indexterm>
311 </listitem>
312 </varlistentry>
313
314 </variablelist>
315
316 </sect2>
317
318</sect1>
Note: See TracBrowser for help on using the repository browser.