X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=doc%2Fman%2Flttng.1;h=80861e905fdcefd9d296931d4f58cab240fd24d2;hp=627ab9c9530c7a82bfd36382fc26f850e50734d2;hb=ed43168ab69c442b8d4cc229c5355260aefef61e;hpb=11139b7460a0cd4a07b781f6a42fff37923dac7f diff --git a/doc/man/lttng.1 b/doc/man/lttng.1 index 627ab9c95..80861e905 100644 --- a/doc/man/lttng.1 +++ b/doc/man/lttng.1 @@ -77,6 +77,26 @@ Simple listing of lttng options. .TP .BR "\-\-list\-commands" Simple listing of lttng commands. +.TP +.BR "\-m, \-\-mi TYPE +Machine interface + +TYPE supported: XML + +Machine interface (MI) mode converts the traditional pretty printing to a +machine output syntax. MI mode provides a format change-resistant way to access +information generated via the lttng command line. + +When using MI mode, the data is printed on \fBstdout\fP. Error and warning are +printed on \fBstderr\fP with the pretty print default format. + +If any errors occur during the execution of a command, the return value of the +command will be different than zero. In this case, lttng does NOT guarantee the +syntax and data validity of the generated MI output. + +For XML output type, a schema definition (XSD) file used for validation can be +found under src/common/mi_lttng.xsd + .SH "COMMANDS" .PP @@ -402,7 +422,8 @@ Apply to the user-space tracer Discard event when subbuffers are full (default) .TP .BR "\-\-overwrite" -Flight recorder mode : overwrites events when subbuffers are full +Flight recorder mode: overwrites events when subbuffers are full. The +number of subbuffer must be 2 or more. .TP .BR "\-\-subbuf-size SIZE" Subbuffer size in bytes {+k,+M,+G}. @@ -442,6 +463,8 @@ Use shared buffer for the whole system (\-k only) .BR "\-C, \-\-tracefile-size SIZE" Maximum size of each tracefile within a stream (in bytes). 0 means unlimited. (default: 0) +Note: traces generated with this option may inaccurately report +discarded events as of CTF 1.8. .TP .BR "\-W, \-\-tracefile-count COUNT" Used in conjunction with \-C option, this will limit the number of files @@ -746,8 +769,10 @@ List available domain(s) Load tracing session configuration If NAME is omitted, all session configurations found in both the user's session -configuration directory and the system session configuration directory will be -loaded. +configuration directory (default: ~/.lttng/sessions/) and the system session +configuration directory (default: /etc/lttng/sessions/) will be loaded. Note +that the sessions in the user directory are loaded first and then the system +wide directory are loaded. .B OPTIONS: @@ -759,7 +784,8 @@ Show summary of possible options and commands. Load all session configurations (default). .TP .BR "\-i, \-\-input-path PATH" -Specify the input path for session configurations. +Specify the input path for session configurations. This overrides the default +session configuration directory. .TP .BR "\-f, -\-force" Overwrite current session configuration(s) if a session of the same name @@ -773,8 +799,12 @@ already exists. Save tracing session configuration If SESSION is omitted, all session configurations will be saved to individual -\fB.lttng\fP files under the user's session configuration directory. The -default session configuration file naming scheme is \fBSESSION.lttng\fP. +\fB.lttng\fP files under the user's session configuration directory (default: +~/.lttng/sessions/). The default session configuration file naming scheme is +\fBSESSION.lttng\fP. + +For instance, a user in the tracing group saving a session from a root session +daemon will save it in her/his user directory. .B OPTIONS: @@ -786,7 +816,8 @@ Show summary of possible options and commands. Save all session configurations (default). .TP .BR "\-o, \-\-output-path PATH" -Specify the output path for saved sessions (default: ~/.lttng/sessions/). +Specify the output path for saved sessions. This overrides the default session +configuration directory. .TP .BR "\-f, -\-force" Overwrite session configuration file if session name clashes. @@ -877,6 +908,10 @@ Name of the snapshot's output. Maximum size in bytes of the snapshot. The maxium size does not include the metadata file. Human readable format is accepted: {+k,+M,+G}. For instance, \-\-max-size 5M + +The minimum size of a snapshot is computed by multiplying the total amount of +streams in the session by the largest subbuffer size. This is to ensure +fairness between channels when extracting data. .TP .BR "\-C, \-\-ctrl-url URL" Set control path URL. (Must use -D also)