diff --git a/cachegrind/Makefile.am b/cachegrind/Makefile.am
index 43a44af6c..ef29961a5 100644
--- a/cachegrind/Makefile.am
+++ b/cachegrind/Makefile.am
@@ -2,7 +2,9 @@ include $(top_srcdir)/Makefile.tool.am
EXTRA_DIST = \
docs/cg-manual.xml \
- docs/cg_annotate-manpage.xml
+ docs/cg_annotate-manpage.xml \
+ docs/cg_diff-manpage.xml \
+ docs/cg_merge-manpage.xml
#----------------------------------------------------------------------------
# Headers, etc
diff --git a/cachegrind/docs/cg-manual.xml b/cachegrind/docs/cg-manual.xml
index f45bda8fd..0f61e0a62 100644
--- a/cachegrind/docs/cg-manual.xml
+++ b/cachegrind/docs/cg-manual.xml
@@ -112,7 +112,7 @@ information, and then run cg_annotate to get a detailed presentation of that
information. As an optional intermediate step, you can use cg_merge to sum
together the outputs of multiple Cachegrind runs into a single file which
you then use as the input for cg_annotate. Alternatively, you can use
-cg_diff to difference the outputs of two Cachegrind runs into a signel file
+cg_diff to difference the outputs of two Cachegrind runs into a single file
which you then use as the input for cg_annotate.
@@ -1001,6 +1001,29 @@ small differences like these; it works in the same way as
+
+cg_merge Command-line Options
+
+
+
+
+
+
+
+
+
+ Write the profile data to outfile
+ rather than to standard output.
+
+
+
+
+
+
+
+
+
+
cg_diff Command-line Options
diff --git a/cachegrind/docs/cg_diff-manpage.xml b/cachegrind/docs/cg_diff-manpage.xml
new file mode 100644
index 000000000..4823db071
--- /dev/null
+++ b/cachegrind/docs/cg_diff-manpage.xml
@@ -0,0 +1,75 @@
+
+ %vg-entities; ]>
+
+
+
+
+
+ cg_diff
+ 1
+ Release &rel-version;
+
+
+
+ cg_diff
+ compares two Cachegrind output files
+
+
+
+
+ cg_diff
+ options
+ cachegrind-out-file1
+ cachegrind-out-file2
+
+
+
+
+
+Description
+
+cg_diff takes two output files produced by the
+Valgrind tool Cachegrind, computes the difference and prints the result
+in the same format that Cachegrinds outputs.
+
+
+
+
+
+
+
+Options
+
+
+
+
+
+
+
+
+
+See Also
+
+
+cg_annotate(1), valgrind(1),
+&vg-docs-path; or
+&vg-docs-url;.
+
+
+
+
+
+
+Author
+
+Nicholas Nethercote.
+
+
+
+
+
+
+
diff --git a/cachegrind/docs/cg_merge-manpage.xml b/cachegrind/docs/cg_merge-manpage.xml
new file mode 100644
index 000000000..5e733d2ff
--- /dev/null
+++ b/cachegrind/docs/cg_merge-manpage.xml
@@ -0,0 +1,73 @@
+
+ %vg-entities; ]>
+
+
+
+
+
+ cg_merge
+ 1
+ Release &rel-version;
+
+
+
+ cg_merge
+ merges multiple Cachegrind output files into one
+
+
+
+
+ cg_merge
+ options
+ cachegrind-out-files
+
+
+
+
+
+Description
+
+cg_merge sums together the outputs of multiple
+Cachegrind runs into a single output file.
+
+
+
+
+
+
+
+Options
+
+
+
+
+
+
+
+
+
+See Also
+
+
+cg_annotate(1), valgrind(1),
+&vg-docs-path; or
+&vg-docs-url;.
+
+
+
+
+
+
+Author
+
+Nicholas Nethercote.
+
+
+
+
+
+
+
diff --git a/docs/xml/manpages-index.xml b/docs/xml/manpages-index.xml
index b02fc9ca3..a1a89796e 100644
--- a/docs/xml/manpages-index.xml
+++ b/docs/xml/manpages-index.xml
@@ -15,6 +15,14 @@
+
+
+
+
+
+