source: general/prog/valgrind.xml@ 51a0e43

7.6-blfs 7.6-systemd kde5-14269 kde5-14686 systemd-13485
Last change on this file since 51a0e43 was 51a0e43, checked in by Krejzi <krejzi@…>, 10 years ago

More checks. Fix w3m image loading capabilities.

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

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