source: general/prog/valgrind.xml@ 2d98031c

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 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 2d98031c was 2d98031c, checked in by Ken Moffat <ken@…>, 9 years ago

Remove redundant text from tl-installer (using the binary is no longer required), add first set of '(or install-tl-unx)' links to packages which have texlive as an optional dep.

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

  • Property mode set to 100644
File size: 9.8 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 "60ddae962bc79e7c95cfc4667245707f">
10 <!ENTITY valgrind-size "10.5 MB">
11 <!ENTITY valgrind-buildsize "401 MB and an additional 20 MB for tests">
12 <!ENTITY valgrind-time "1.1 SBU and an 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),
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"/> (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/-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<!-- Note to maintainer: Recheck when next texlive (2015) is released.
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 libcoregrind-&lt;Arch&gt;-linux.a,
168 libreplacemalloc_toolpreload-&lt;Arch&gt;-linux.a,
169 libvex-&lt;Arch&gt;-linux.a,
170 vgpreload_core-&lt;Arch&gt;-linux.so,
171 vgpreload_drd-&lt;Arch&gt;-linux.so,
172 vgpreload_exp-dhat-&lt;Arch&gt;-linux.so,
173 vgpreload_exp-sgcheck-&lt;Arch&gt;-linux.so,
174 vgpreload_helgrind-&lt;Arch&gt;-linux.so,
175 vgpreload_massif-&lt;Arch&gt;-linux.so, and
176 vgpreload_memcheck-&lt;Arch&gt;-linux.so, where
177 &lt;Arch&gt;=x86, amd64
178 </seg>
179 <seg>
180 /usr/lib/valgrind,
181 /usr/include/valgrind, and
182 /usr/share/doc/valgrind-&valgrind-version;
183 </seg>
184 </seglistitem>
185 </segmentedlist>
186
187 <variablelist>
188 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
189 <?dbfo list-presentation="list"?>
190 <?dbhtml list-presentation="table"?>
191
192 <varlistentry id="valgrind-prog">
193 <term><command>valgrind</command></term>
194 <listitem>
195 <para>
196 is a program for debugging and profiling Linux executables.
197 </para>
198 <indexterm zone="valgrind valgrind-prog">
199 <primary sortas="b-valgrind">valgrind</primary>
200 </indexterm>
201 </listitem>
202 </varlistentry>
203
204 <varlistentry id="callgrind_annotate">
205 <term><command>callgrind_annotate</command></term>
206 <listitem>
207 <para>
208 takes an output file produced by the
209 <application>Valgrind</application> tool Callgrind and prints the
210 information in an easy-to-read form.
211 </para>
212 <indexterm zone="callgrind_annotate">
213 <primary sortas="b-callgrind_annotate">callgrind_annotate</primary>
214 </indexterm>
215 </listitem>
216 </varlistentry>
217
218 <varlistentry id="callgrind_control">
219 <term><command>callgrind_control</command></term>
220 <listitem>
221 <para>
222 controls programs being run by the <application>Valgrind</application>
223 tool Callgrind.
224 </para>
225 <indexterm zone="valgrind callgrind_control">
226 <primary sortas="b-callgrind_control">callgrind_control</primary>
227 </indexterm>
228 </listitem>
229 </varlistentry>
230
231 <varlistentry id="cg_annotate">
232 <term><command>cg_annotate</command></term>
233 <listitem>
234 <para>
235 is a post-processing tool for the <application>Valgrind</application>
236 tool Cachegrind.
237 </para>
238 <indexterm zone="valgrind cg_annotate">
239 <primary sortas="b-cg_annotate">cg_annotate</primary>
240 </indexterm>
241 </listitem>
242 </varlistentry>
243
244 <varlistentry id="cg_diff">
245 <term><command>cg_diff</command></term>
246 <listitem>
247 <para>
248 compares two Cachegrind output files.
249 </para>
250 <indexterm zone="valgrind cg_diff">
251 <primary sortas="b-cg_diff">cg_diff</primary>
252 </indexterm>
253 </listitem>
254 </varlistentry>
255
256 <varlistentry id="cg_merge">
257 <term><command>cg_merge</command></term>
258 <listitem>
259 <para>
260 merges multiple Cachegrind output files into one.
261 </para>
262 <indexterm zone="valgrind cg_merge">
263 <primary sortas="b-cg_merge">cg_merge</primary>
264 </indexterm>
265 </listitem>
266 </varlistentry>
267
268 <varlistentry id="ms_print">
269 <term><command>ms_print</command></term>
270 <listitem>
271 <para>
272 takes an output file produced by the <application>Valgrind</application>
273 tool Massif and prints the information in an easy-to-read form.
274 </para>
275 <indexterm zone="valgrind ms_print">
276 <primary sortas="b-ms_print">ms_print</primary>
277 </indexterm>
278 </listitem>
279 </varlistentry>
280
281 <varlistentry id="valgrind-di-server">
282 <term><command>valgrind-di-server</command></term>
283 <listitem>
284 <para>
285 is a server that reads debuginfo from objects stored on a
286 different machine.
287 </para>
288 <indexterm zone="valgrind valgrind-di-server">
289 <primary sortas="b-valgrind-di-server">valgrind-di-server</primary>
290 </indexterm>
291 </listitem>
292 </varlistentry>
293
294 <varlistentry id="valgrind-listener">
295 <term><command>valgrind-listener</command></term>
296 <listitem>
297 <para>
298 listens on a socket for Valgrind commentary.
299 </para>
300 <indexterm zone="valgrind valgrind-listener">
301 <primary sortas="b-valgrind-listener">valgrind-listener</primary>
302 </indexterm>
303 </listitem>
304 </varlistentry>
305
306 <varlistentry id="vgdb">
307 <term><command>vgdb</command></term>
308 <listitem>
309 <para>
310 is an intermediary between Valgrind and GDB or a shell.
311 </para>
312 <indexterm zone="valgrind vgdb">
313 <primary sortas="b-vgdb">vgdb</primary>
314 </indexterm>
315 </listitem>
316 </varlistentry>
317
318 </variablelist>
319
320 </sect2>
321
322</sect1>
Note: See TracBrowser for help on using the repository browser.