Author: robert
Date: 2011-08-14 02:43:10 -0600 (Sun, 14 Aug 2011)
New Revision: 1650

Added:
   trunk/BOOK/chapter06/strace.xml
Modified:
   trunk/BOOK/chapter01/changelog.xml
   trunk/BOOK/chapter03/packages.xml
   trunk/BOOK/chapter06/chapter06.xml
   trunk/BOOK/packages.ent
Log:
Added Strace to chapter 6, for debugging Linux Caps.

Modified: trunk/BOOK/chapter01/changelog.xml
===================================================================
--- trunk/BOOK/chapter01/changelog.xml  2011-08-14 08:19:18 UTC (rev 1649)
+++ trunk/BOOK/chapter01/changelog.xml  2011-08-14 08:43:10 UTC (rev 1650)
@@ -57,6 +57,9 @@
        <listitem>
           <para>[robert] - Added XZ utils, needed to unpack Strace.</para>
         </listitem>
+       <listitem>
+          <para>[robert] - Added Strace to chapter 6, for debugging Linux 
Caps.</para>
+        </listitem>
      </itemizedlist>
     </listitem>
 

Modified: trunk/BOOK/chapter03/packages.xml
===================================================================
--- trunk/BOOK/chapter03/packages.xml   2011-08-14 08:19:18 UTC (rev 1649)
+++ trunk/BOOK/chapter03/packages.xml   2011-08-14 08:43:10 UTC (rev 1650)
@@ -541,6 +541,15 @@
     </varlistentry>
 
     <varlistentry>
+      <term>Strace (&strace-version;) - <token>&strace-size;</token>:</term>
+      <listitem>
+        <para>Home page: <ulink url="&strace-home;"/></para>
+        <para>Download: <ulink url="&strace-url;"/></para>
+        <para>MD5 sum: <literal>&strace-md5;</literal></para>
+      </listitem>
+    </varlistentry>
+
+    <varlistentry>
       <term>Sysvinit (&sysvinit-version;) - 
<token>&sysvinit-size;</token>:</term>
       <listitem>
         <para>Home page: <ulink url="&sysvinit-home;"/></para>

Modified: trunk/BOOK/chapter06/chapter06.xml
===================================================================
--- trunk/BOOK/chapter06/chapter06.xml  2011-08-14 08:19:18 UTC (rev 1649)
+++ trunk/BOOK/chapter06/chapter06.xml  2011-08-14 08:43:10 UTC (rev 1650)
@@ -35,6 +35,7 @@
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"; href="ncurses.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"; 
href="util-linux-ng.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"; href="e2fsprogs.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"; href="strace.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"; href="coreutils.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"; href="iana-etc.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"; href="m4.xml"/>

Added: trunk/BOOK/chapter06/strace.xml
===================================================================
--- trunk/BOOK/chapter06/strace.xml                             (rev 0)
+++ trunk/BOOK/chapter06/strace.xml     2011-08-14 08:43:10 UTC (rev 1650)
@@ -0,0 +1,102 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
+  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"; [
+  <!ENTITY % general-entities SYSTEM "../general.ent">
+  %general-entities;
+]>
+
+<sect1 id="ch-system-strace" role="wrap">
+  <?dbhtml filename="strace.html"?>
+
+  <sect1info condition="script">
+    <productname>strace</productname>
+    <productnumber>&strace-version;</productnumber>
+    <address>&strace-url;</address>
+  </sect1info>
+
+  <title>Strace-&strace-version;</title>
+
+  <indexterm zone="ch-system-strace">
+    <primary sortas="a-Strace">Strace</primary>
+  </indexterm>
+
+  <sect2 role="package">
+    <title/>
+
+    <para>The Strace package contains a system call tracer, used for 
debugging.</para>
+
+    <segmentedlist>
+      <segtitle>&buildtime;</segtitle>
+      <segtitle>&diskspace;</segtitle>
+
+      <seglistitem>
+        <seg>&strace-ch6-sbu;</seg>
+        <seg>&strace-ch6-du;</seg>
+      </seglistitem>
+    </segmentedlist>
+
+  </sect2>
+
+  <sect2 role="installation">
+    <title>Installation of Strace</title>
+
+    <para>Prepare Strace for compilation:</para>
+
+<screen><userinput remap="configure">./configure 
--prefix=/usr</userinput></screen>
+
+    <para>Compile the package:</para>
+
+<screen><userinput remap="make">make</userinput></screen>
+
+    <para>To test the results, issue:</para>
+
+<screen><userinput remap="test">make check</userinput></screen>
+
+    <para>Install the package:</para>
+
+<screen><userinput remap="install">make install</userinput></screen>
+
+  </sect2>
+
+
+  <sect2 id="contents-strace" role="content">
+    <title>Contents of Strace</title>
+
+    <segmentedlist>
+      <segtitle>Installed programs</segtitle>
+
+      <seglistitem>
+        <seg>strace and strace-graph</seg>
+      </seglistitem>
+    </segmentedlist>
+
+    <variablelist>
+      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
+      <?dbfo list-presentation="list"?>
+      <?dbhtml list-presentation="table"?>
+
+      <varlistentry id="strace">
+        <term><command>strace</command></term>
+        <listitem>
+          <para>Traces system calls and signals</para>
+          <indexterm zone="ch-system-strace strace">
+            <primary sortas="b-strace">strace</primary>
+          </indexterm>
+        </listitem>
+      </varlistentry>
+
+      <varlistentry id="strace-graph">
+        <term><command>strace-graph</command></term>
+        <listitem>
+          <para>A script processes strace -f output</para>
+          <indexterm zone="ch-system-strace strace-graph">
+            <primary sortas="b-strace-graph">strace-graph</primary>
+          </indexterm>
+        </listitem>
+      </varlistentry>
+
+    </variablelist>
+
+  </sect2>
+
+</sect1>

Modified: trunk/BOOK/packages.ent
===================================================================
--- trunk/BOOK/packages.ent     2011-08-14 08:19:18 UTC (rev 1649)
+++ trunk/BOOK/packages.ent     2011-08-14 08:43:10 UTC (rev 1650)
@@ -509,6 +509,14 @@
 <!ENTITY sysvinit-ch6-du "1 MB">
 <!ENTITY sysvinit-ch6-sbu "less than 0.1 SBU">
 
+<!ENTITY strace-version "4.6">
+<!ENTITY strace-size "396 KB">
+<!ENTITY strace-url 
"http://sourceforge.net/projects/strace/files/strace/&strace-version;/strace-&strace-version;.tar.xz";>
+<!ENTITY strace-md5 "e537b2b1afeec70c0e6e27a0d0fd671e">
+<!ENTITY strace-home "http://sourceforge.net/projects/strace/";>
+<!ENTITY strace-ch6-du "7.7 MB">
+<!ENTITY strace-ch6-sbu "less than 0.1 SBU">
+
 <!ENTITY tar-version "1.25">
 <!ENTITY tar-size "2,273 KB">
 <!ENTITY tar-url "&gnu;tar/tar-&tar-version;.tar.bz2">

-- 
http://linuxfromscratch.org/mailman/listinfo/hlfs-book
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to