documentation update
authorPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Wed, 26 May 2010 22:32:59 +0000 (18:32 -0400)
committerPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Wed, 26 May 2010 22:32:59 +0000 (18:32 -0400)
doc/man/ustctl.1
doc/man/ustctl.1.md
doc/man/ustd.1
doc/man/ustd.1.md
doc/man/usttrace.1
doc/man/usttrace.1.md
doc/manual/manual.texinfo

index bb942ae0a5de53db5d736016aa52d2f5c726d525..e77251d4faad33b57782765c9e7e7ef3bb42131c 100644 (file)
@@ -1,7 +1,7 @@
-.\" generated with Ronn/v0.4.1
+.\" generated with Ronn/v0.5
 .\" http://github.com/rtomayko/ronn/
 .
-.TH "USTCTL" "1" "March 2010" "" ""
+.TH "USTCTL" "1" "May 2010" "" ""
 .
 .SH "NAME"
 \fBustctl\fR \-\- a program to control the tracing of userspace applications
@@ -10,7 +10,7 @@
 \fBustctl\fR [\fIcommand\fR] [\fIPIDs\fR]...
 .
 .SH "DESCRIPTION"
-\fBustclt\fR is a program to control the tracing of userspace applications. It can
+\fBustctl\fR is a program to control the tracing of userspace applications. It can
 list markers, start the tracing, stop the tracing, enable/disable markers, etc.
 .
 .SH "OPTIONS"
@@ -27,7 +27,7 @@ Create trace.
 .
 .TP
 \fB\-\-alloc\-trace\fR
-Alloc trace.
+Allocate trace.
 .
 .TP
 \fB\-\-start\-trace\fR
@@ -43,19 +43,19 @@ Destroy the trace.
 .
 .TP
 \fB\-\-set\-subbuf\-size\fR \fICHANNEL\fR/\fIbytes\fR
-Set the size of subbuffers per channel.
+Set the size of subbuffers in CHANNEL.
 .
 .TP
 \fB\-\-set\-subbuf\-num\fR \fICHANNEL\fR
-Set the number of subbuffers per channel.
+Set the number of subbuffers per buffer for CHANNEL. Must be a power of 2.
 .
 .TP
 \fB\-\-get\-subbuf\-size\fR \fICHANNEL\fR
-Get the size of subbuffers per channel.
+Print the size of subbuffers per buffer for CHANNEL.
 .
 .TP
 \fB\-\-get\-subbuf\-num\fR \fICHANNEL\fR
-Get the number of subbuffers per channel.
+Print the number of subbuffers per buffer for CHANNEL.
 .
 .TP
 \fB\-\-enable\-marker\fR \fICHANNEL\fR/\fIMARKER\fR
@@ -69,9 +69,67 @@ Disable a marker.
 \fB\-\-list\-markers\fR
 List the markers of the process, their state and format string.
 .
+.SH "LIFE CYCLE OF A TRACE"
+Typically, the first step is to enable markers with \fB\-\-enable\-marker\fR. An
+enabled marker generates an event when the control flow passes over it
+(assuming the trace is recording). A disabled marker produces nothing. Enabling
+and disabling markers may however be done at any point, including while the
+trace is being recorded.
+.
+.P
+In order to record events, a trace is first created with \fB\-\-create\-trace\fR. At
+this point, the subbuffer count and size may be changed with \fB\-\-set\-subbuf\-num\fR
+and \fB\-\-set\-subbuf\-size\fR.
+.
+.P
+Afterward, the trace may be allocated with \fB\-\-alloc\-trace\fR. This allocates the
+buffers in memory, so once this is done, the subbuffer size and count can not
+be changed. Trace allocation also causes the daemon to connect to the trace
+buffers and wait for data to arrive. Explicit allocation is optional, as it is
+done automatically at trace start.
+.
+.P
+The trace may then be started with \fB\-\-start\-trace\fR. This results in events
+being recorded in the buffer. The daemon automatically collects these events.
+.
+.P
+The trace may be stopped with \fB\-\-stop\-trace\fR, either definitely after all the
+wanted information is collected, or temporarily, before being started again
+with \fB\-\-start\-trace\fR. This results in effectively "pausing" the recording.
+.
+.P
+Finally, when \fB\-\-destroy\-trace\fR is used, the trace buffers are unallocated.
+However, the memory may not be effectively freed until the daemon finishes to
+collect them.
+.
+.SH "STRUCTURE OF A TRACE"
+Each instrumentation point that is added in a program is associated to a
+channel.
+.
+.P
+Trace events are put in buffers. There is one buffer per channel, per cpu.
+For example, on a system with 4 cores and tracing an application with 3
+channels, there will be 12 buffers in total. The content of each of these
+buffers is put in a distinct file in the trace directory. For example, the \fBmetadata_2\fR file contains the data that was extracted from the buffer that
+contained the events from the metadata channel and having occurred on cpu 2.
+.
+.P
+In memory, each buffer is divided in subbuffers. Subbuffers are equally\-sized,
+contiguous parts of a buffer. The size of a buffer is equal to the number of
+subbuffers it contains times the size of each subbuffer. When a subbuffer is
+full, it is collected by the daemon while the others are filled. If, however,
+the buffer size is too small, buffer overflows may occur and result in event
+loss. By default, the number of subbuffers per buffer is 2. Subbuffer size
+for a given channel may be chosen with \fB\-\-set\-subbuf\-size\fR while the subbuffer
+count is set with \fB\-\-set\-subbuf\-num\fR.
+.
+.SH "SEE ALSO"
+usttrace(1), ustd(1)
+.
 .SH "AUTHOR"
 \fBustctl\fR was written by Pierre\-Marc Fournier.
 .
 .P
 This manual page was written by Jon Bernard <jbernard@debian.org>, for
-the Debian project (and may be used by others).
+the Debian project (and may be used by others). It was updated by Pierre\-Marc
+Fournier.
index 12437c5191307f6f9531b4e7e0628573c8887ab2..d0ecb983d5380831ccefb5f176c4998ca9f9f68c 100644 (file)
@@ -7,7 +7,7 @@ ustctl(1) -- a program to control the tracing of userspace applications
 
 ## DESCRIPTION
 
-`ustclt` is a program to control the tracing of userspace applications. It can
+`ustctl` is a program to control the tracing of userspace applications. It can
 list markers, start the tracing, stop the tracing, enable/disable markers, etc.
 
 ## OPTIONS
@@ -22,7 +22,7 @@ starting with two dashes(`-'). A summary of options is included below.
     Create trace.
 
   * `--alloc-trace`:
-    Alloc trace.
+    Allocate trace.
 
   * `--start-trace`:
     Start tracing.
@@ -34,16 +34,16 @@ starting with two dashes(`-'). A summary of options is included below.
     Destroy the trace.
 
   * `--set-subbuf-size` <CHANNEL>/<bytes>:
-    Set the size of subbuffers per channel.
+    Set the size of subbuffers in CHANNEL.
 
   * `--set-subbuf-num` <CHANNEL>:
-    Set the number of subbuffers per channel.
+    Set the number of subbuffers per buffer for CHANNEL. Must be a power of 2.
 
   * `--get-subbuf-size` <CHANNEL>:
-    Get the size of subbuffers per channel.
+    Print the size of subbuffers per buffer for CHANNEL.
 
   * `--get-subbuf-num` <CHANNEL>:
-    Get the number of subbuffers per channel.
+    Print the number of subbuffers per buffer for CHANNEL.
 
   * `--enable-marker` <CHANNEL>/<MARKER>:
     Enable a marker.
@@ -54,9 +54,64 @@ starting with two dashes(`-'). A summary of options is included below.
   * `--list-markers`:
     List the markers of the process, their state and format string.
 
+## LIFE CYCLE OF A TRACE
+
+Typically, the first step is to enable markers with `--enable-marker`. An
+enabled marker generates an event when the control flow passes over it
+(assuming the trace is recording). A disabled marker produces nothing. Enabling
+and disabling markers may however be done at any point, including while the
+trace is being recorded.
+
+In order to record events, a trace is first created with `--create-trace`. At
+this point, the subbuffer count and size may be changed with `--set-subbuf-num`
+and `--set-subbuf-size`.
+
+Afterward, the trace may be allocated with `--alloc-trace`. This allocates the
+buffers in memory, so once this is done, the subbuffer size and count can not
+be changed. Trace allocation also causes the daemon to connect to the trace
+buffers and wait for data to arrive. Explicit allocation is optional, as it is
+done automatically at trace start.
+
+The trace may then be started with `--start-trace`. This results in events
+being recorded in the buffer. The daemon automatically collects these events.
+
+The trace may be stopped with `--stop-trace`, either definitely after all the
+wanted information is collected, or temporarily, before being started again
+with `--start-trace`. This results in effectively "pausing" the recording.
+
+Finally, when `--destroy-trace` is used, the trace buffers are unallocated.
+However, the memory may not be effectively freed until the daemon finishes to
+collect them.
+
+## STRUCTURE OF A TRACE
+
+Each instrumentation point that is added in a program is associated to a
+channel.
+
+Trace events are put in buffers. There is one buffer per channel, per cpu.
+For example, on a system with 4 cores and tracing an application with 3
+channels, there will be 12 buffers in total. The content of each of these
+buffers is put in a distinct file in the trace directory. For example, the
+`metadata_2` file contains the data that was extracted from the buffer that
+contained the events from the metadata channel and having occurred on cpu 2.
+
+In memory, each buffer is divided in subbuffers. Subbuffers are equally-sized,
+contiguous parts of a buffer. The size of a buffer is equal to the number of
+subbuffers it contains times the size of each subbuffer. When a subbuffer is
+full, it is collected by the daemon while the others are filled. If, however,
+the buffer size is too small, buffer overflows may occur and result in event
+loss. By default, the number of subbuffers per buffer is 2. Subbuffer size
+for a given channel may be chosen with `--set-subbuf-size` while the subbuffer
+count is set with `--set-subbuf-num`.
+
+## SEE ALSO
+
+usttrace(1), ustd(1)
+
 ## AUTHOR
 
 `ustctl` was written by Pierre-Marc Fournier.
 
 This manual page was written by Jon Bernard &lt;jbernard@debian.org&gt;, for
-the Debian project (and may be used by others).
+the Debian project (and may be used by others). It was updated by Pierre-Marc
+Fournier.
index bb7b9823c96161479b699e2e7a22eed481621cb9..f423978425aaacb529fb4b871eb92e7b59fe528a 100644 (file)
@@ -1,7 +1,7 @@
-.\" generated with Ronn/v0.4.1
+.\" generated with Ronn/v0.5
 .\" http://github.com/rtomayko/ronn/
 .
-.TH "USTD" "1" "March 2010" "" ""
+.TH "USTD" "1" "May 2010" "" ""
 .
 .SH "NAME"
 \fBustd\fR \-\- a daemon that collects trace data and writes it to the disk
@@ -40,6 +40,9 @@ Write the PID in this file (when using \-d).
 \fB\-V\fR, \fB\-\-version\fR
 Show version of program.
 .
+.SH "SEE ALSO"
+ustctl(1), usttrace(1)
+.
 .SH "AUTHOR"
 \fBustd\fR was written by Pierre\-Marc Fournier.
 .
index 836589e03fd49d8738c4871c88674f18a2fc0b56..296d1c476505e7602b587759232543f9fe4a5d78 100644 (file)
@@ -32,6 +32,10 @@ starting with two dashes(`-'). A summary of options is included below.
   * `-V`, `--version`:
     Show version of program.
 
+## SEE ALSO
+
+ustctl(1), usttrace(1)
+
 ## AUTHOR
 
 `ustd` was written by Pierre-Marc Fournier.
index 79cb0a5e847c8c135485512a78f4da893827e5a3..93584a1970dceab9587e489a98f246eaa62f0f61 100644 (file)
@@ -86,6 +86,9 @@ Specify the number of subbuffers.
 \fB\-W\fR
 Undocumented option.
 .
+.SH "SEE ALSO"
+ustctl(1), ustd(1)
+.
 .SH "AUTHOR"
 \fBusttrace\fR was written by Pierre\-Marc Fournier.
 .
index 9961a961b9c944ab5bbffdb1a561702fcc0966f5..fbe5d927865ff219341583e2d61b07bab23325ae 100644 (file)
@@ -62,6 +62,11 @@ starting with two dashes(`-'). A summary of options is included below.
   * `-W`:
     Undocumented option.
 
+## SEE ALSO
+
+ustctl(1), ustd(1)
+
+
 ## AUTHOR
 
 `usttrace` was written by Pierre-Marc Fournier.
index 8254cdb0a6a446b3ef7af14e35e54de7d0d9c057..385cb35a18e7c3d4808a9314cf70a7c71c244dca 100644 (file)
@@ -418,6 +418,8 @@ $ ustctl --destroy-trace 1234
 @end verbatim
 @end example
 
+For more information about the manual mode, see the ustctl(1) man page.
+
 @node Using early tracing
 @section Using early tracing
 
This page took 0.028145 seconds and 4 git commands to generate.