]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Make Execution Trees references available in both manual and man pages.
authorMark Wielaard <mark@klomp.org>
Thu, 14 May 2020 15:50:40 +0000 (17:50 +0200)
committerMark Wielaard <mark@klomp.org>
Thu, 14 May 2020 15:50:52 +0000 (17:50 +0200)
Both the manual and the man pages reference xtrees. Create some shared
entities so both can reference the section.

docs/xml/manual-core-adv.xml
docs/xml/manual-core.xml
docs/xml/valgrind-manpage.xml
docs/xml/vg-entities.xml
helgrind/docs/hg-manual.xml
massif/docs/ms-manual.xml
memcheck/docs/mc-manual.xml

index fe05c8ef2863e008998842a02a2bda38cc8a72d3..8d2e905e42bbd78543c58fafe4d621835823c48b 100644 (file)
@@ -1435,7 +1435,7 @@ client request.
   <listitem>
     <para><varname>xtmemory [&lt;filename&gt; default xtmemory.kcg.%p.%n]</varname>
       requests the tool (Memcheck, Massif, Helgrind) to produce an xtree heap memory report. 
-      See <xref linkend="manual-core.xtree"/> for
+      See <xref linkend="&vg-xtree-id;"/> for
       a detailed explanation about execution trees. </para>
   </listitem>
 
index a5168acf6205786b4463bf21bbe01ac87a46f51f..4480f59280f6780a08d7cc22f8d135657134e3fd 100644 (file)
@@ -1783,7 +1783,7 @@ Massif, Helgrind, DRD), the following options apply.</para>
       <para> Tools replacing Valgrind's <function>malloc,
       realloc,</function> etc, can optionally produce an execution
       tree detailing which piece of code is responsible for heap
-      memory usage. See <xref linkend="manual-core.xtree"/>
+      memory usage. See <xref linkend="&vg-xtree-id;"/>
       for a detailed explanation about execution trees. </para>
       
       <para> When set to <varname>none</varname>, no memory execution
@@ -1838,7 +1838,7 @@ Massif, Helgrind, DRD), the following options apply.</para>
         If the filename contains the extension  <option>.kcg</option>
         or no extension is provided or recognised,
         then the produced file format will be a callgrind output format.</para>
-      <para>See <xref linkend="manual-core.xtree"/>
+      <para>See <xref linkend="&vg-xtree-id;"/>
       for a detailed explanation about execution trees formats. </para>
     </listitem>
   </varlistentry>
@@ -2986,7 +2986,7 @@ will create a core dump in the usual way.</para>
 </sect1>
 
 
-<sect1 id="manual-core.xtree" xreflabel="Execution Trees">
+<sect1 id="&vg-xtree-id;" xreflabel="&vg-xtree-label;">
 <title>Execution Trees</title>
 
 <para>An execution tree (xtree) is made of a set of stack traces, each
index e1867c6ad6be51b9db71567817bd95fd0dc5f6be..d81382dca4ede95d7345f6dc2adf65a89da8e806 100644 (file)
@@ -250,6 +250,9 @@ ms_print(1),
 <ulink id="&vg-cg-manual-id;"
        xreflabel="&vg-cg-manual-label;"
        url="&vg-cg-manual-url;">&vg-cg-manual-label;</ulink>.
+<ulink id="&vg-xtree-id;"
+       xreflabel="&vg-xtree-label;"
+       url="&vg-xtree-url;">&vg-xtree-label;</ulink>
 </para>
 
 </refsect1>
index fc5629db4a61f806d5d0dd97b6ddf769f831dd48..721fa51029b3b5c11712088eece708182c12c3e6 100644 (file)
 <!ENTITY vg-pthreads-perf-sched-id "&vg-pthreads-perf-sched-manual;.&vg-pthreads-perf-sched-ref;">
 <!ENTITY vg-pthreads-perf-sched-url "&vg-manual-url;&vg-pthreads-perf-sched-manual;.html#&vg-pthreads-perf-sched-id;">
 
-
 <!ENTITY vg-cg-manual-id "cg-manual">
 <!ENTITY vg-cg-manual-label "Cachegrind: a cache and branch-prediction profiler">
 <!ENTITY vg-cg-manual-url "&vg-manual-url;&vg-cg-manual-id;.html">
+
+<!ENTITY vg-xtree-manual "manual-core">
+<!ENTITY vg-xtree-ref "xtree">
+<!ENTITY vg-xtree-label "Execution Trees">
+<!ENTITY vg-xtree-id "&vg-xtree-manual;.&vg-xtree-ref;">
+<!ENTITY vg-xtree-url "&vg-manual-url;&vg-xtree-manual;.html#&vg-xtree-id;">
index 44cb74603c66aa3ecb4bf3a27a607aed4624f1e2..c00be7bd0c23f2d9e0d2f97678a41b19cdabf3f4 100644 (file)
@@ -64,7 +64,7 @@ primitives, you can describe their behaviour to Helgrind using the
 <varname>ANNOTATE_*</varname> macros defined
 in <varname>helgrind.h</varname>.</para>
 
-<para>Helgrind also provides <xref linkend="manual-core.xtree"/> memory
+<para>Helgrind also provides <xref linkend="&vg-xtree-id;"/> memory
   profiling using the command line
   option <computeroutput>--xtree-memory</computeroutput> and the monitor command
    <computeroutput>xtmemory</computeroutput>.</para>
@@ -1460,7 +1460,7 @@ write of size 4 at 0x8049D88 by thread #9 tid 2
   <listitem>
     <para><varname>xtmemory [&lt;filename&gt; default xtmemory.kcg.%p.%n]</varname>
       requests Helgrind tool to produce an xtree heap memory report.
-      See <xref linkend="manual-core.xtree"/> for
+      See <xref linkend="&vg-xtree-id;"/> for
       a detailed explanation about execution trees. </para>
   </listitem>
 
index b59053688963dd2f83b19051bb663b653b33e6eb..2a49781a341cc2454965ddc51fd83c03351a45e0 100644 (file)
@@ -46,7 +46,7 @@ program is using, it also gives very detailed information that indicates
 which parts of your program are responsible for allocating the heap memory.
 </para>
 
-<para>Massif also provides <xref linkend="manual-core.xtree"/> memory
+<para>Massif also provides <xref linkend="&vg-xtree-id;"/> memory
   profiling using the command line
   option <computeroutput>--xtree-memory</computeroutput> and the monitor command
    <computeroutput>xtmemory</computeroutput>.</para>
@@ -904,7 +904,7 @@ gdbserver (see <xref linkend="manual-core-adv.gdbserver-commandhandling"/>).
   <listitem>
     <para><varname>xtmemory [&lt;filename&gt; default xtmemory.kcg.%p.%n]</varname>
       requests Massif tool to produce an xtree heap memory report.
-      See <xref linkend="manual-core.xtree"/> for
+      See <xref linkend="&vg-xtree-id;"/> for
       a detailed explanation about execution trees. </para>
   </listitem>
 </itemizedlist>
index 2acf6fd4f77f1000bc83158fe2c78084665583b7..b70680014973cefb14a9f4c6a31182eb8a72c58c 100644 (file)
@@ -1,6 +1,7 @@
 <?xml version="1.0"?> <!-- -*- sgml -*- -->
 <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
-          "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+          "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
+[ <!ENTITY % vg-entities SYSTEM "../../docs/xml/vg-entities.xml"> %vg-entities; ]>
 
 
 <chapter id="mc-manual" xreflabel="Memcheck: a memory error detector">
@@ -59,7 +60,7 @@ problems that are common in C and C++ programs.</para>
 often remaining undetected for long periods, then causing occasional,
   difficult-to-diagnose crashes.</para>
 
-<para>Memcheck also provides <xref linkend="manual-core.xtree"/> memory
+<para>Memcheck also provides <xref linkend="&vg-xtree-id;"/> memory
   profiling using the command line
   option <computeroutput>--xtree-memory</computeroutput> and the monitor command
    <computeroutput>xtmemory</computeroutput>.</para>
@@ -918,7 +919,7 @@ is <option>--errors-for-leak-kinds=definite,possible</option>
         decrease of <option>PBk</option> event. The values for the increase and
         decrease events will be zero for the first leak search done.</para>
       
-      <para>See <xref linkend="manual-core.xtree"/> for a detailed explanation
+      <para>See <xref linkend="&vg-xtree-id;"/> for a detailed explanation
         about execution trees.</para>
     </listitem>
   </varlistentry>
@@ -936,7 +937,7 @@ is <option>--errors-for-leak-kinds=definite,possible</option>
         in exactly the same way as they are for <option>--log-file</option>.
         See the description of <xref linkend="opt.log-file"/>
         for details. </para>
-      <para>See <xref linkend="manual-core.xtree"/>
+      <para>See <xref linkend="&vg-xtree-id;"/>
       for a detailed explanation about execution trees formats. </para>
     </listitem>
   </varlistentry>
@@ -1122,7 +1123,7 @@ is <option>--errors-for-leak-kinds=definite,possible</option>
       
       <para>If you want to use
         <computeroutput>--xtree-memory=full</computeroutput> memory profiling
-        (see <xref linkend="manual-core.xtree"/> ), then you cannot
+        (see <xref linkend="&vg-xtree-id;"/>), then you cannot
         specify <varname>--keep-stacktraces=free</varname>
         or <varname>--keep-stacktraces=none</varname>.</para>
 
@@ -1951,7 +1952,7 @@ Address 0x8049E28 len 1 defined
     </para>
     <para>The value <varname>xtleak</varname> also produces a full leak report,
       but output it as an xtree in a file xtleak.kcg.%p.%n (see <xref linkend="opt.log-file"/>).
-      See <xref linkend="manual-core.xtree"/>
+      See <xref linkend="&vg-xtree-id;"/>
       for a detailed explanation about execution trees formats.
       See <xref linkend="opt.xtree-leak"/> for the description of the events
       in a xtree leak file.
@@ -2218,7 +2219,7 @@ Address 0x8049E28 len 1 defined
   <listitem>
     <para><varname>xtmemory [&lt;filename&gt; default xtmemory.kcg.%p.%n]</varname>
       requests Memcheck tool to produce an xtree heap memory report.
-      See <xref linkend="manual-core.xtree"/> for
+      See <xref linkend="&vg-xtree-id;"/> for
       a detailed explanation about execution trees. </para>
   </listitem>