2 ******** DEPRECATED **********
3 * Kept for historic purposes *
4 ******** DEPRECATED **********
6 lttng-tools command line interface
8 (Note: as of June 8th, 2011, this document is at [RFC] stage.)
10 This document describes the "lttng" command line interface.
13 David Goulet <david.goulet@polymtl.ca>
14 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
16 We plan to go for a git-alike UI:
18 lttng command [options]
20 Where command can be one of the following, and the options are
23 (note: in this description, options between [ ] are optional)
27 -v, --verbose # Verbose mode
28 -q, --quiet # Quiet mode
30 --group NAME # Unix tracing group name. (default: tracing)
31 --no-sessiond # Don't spawn a session daemon
32 --sessiond-path # Session daemon full path
33 help/--help/-h # list LTTng commands
37 lttng list [--help] # show list options
38 lttng list --events # list all available instrumentation
39 lttng list --kernel # list kernel instrumentation
40 lttng list --pid n # list userspace app instrumentation by pid
41 lttng list command_name # list userspace app instrumentation by command
42 lttng list --app # list traceable user-space applications/pids
43 lttng list --sessions # list tracing sessions
47 lttng version [--help] # show lttng-tools version and version options
48 lttng version --kernel # show kernel lttng version
49 lttng version --pid n # show kernel lttng version
50 lttng version command_name # show lttng versions for app by command
52 * Tracing session control
54 lttng create [--session] name # create a tracing session (default name provided)
55 [--output path] # optionally specify the output path
57 ---> This command prints
58 "Working directory of created session is /path/to/name. Change your"
59 "current working directory to interact with this session."
61 ---> All the following commands use the current working directory
62 .lttng/config file to keep track of the session on which actions
65 lttng destroy [--session] name # teardown a tracing session
66 lttng start [--session] name # start tracing for a session
67 lttng stop [--session] name # stop tracing for a session
70 (note in manpage (warning) about --all and cmd_name:
71 "WARNING: this may noticeably slow down your system!")
72 lttng add-channel name --kernel [options]
73 lttng add-channel name --userspace [--all/--pid n/cmd_name] [options]
79 --switch_timer_interval
82 lttng config --kernel --channel name
83 lttng config --channel name [--all/--pid n/cmd_name]
85 (note: no channel name specified creates a "default" channel)
86 lttng add-event name --kernel [--channel name]
87 lttng add-event name --userspace [--channel name] [--all/--pid n/cmd_name]
88 available options, either:
89 --tracepoint (default)
93 (support list of names: name1,name2,name3... all with the same
95 lttng enable-event name --kernel [--channel name]
96 lttng disable-event name --kernel [--channel name]
97 lttng enable-event name --userspace [--channel name] [--all/--pid n/cmd_name]
98 lttng disable-event name --userspace [--channel name] [--all/--pid n/cmd_name]
100 lttng add-context name --kernel [--event name] [--channel name] --type context_type [context options]
101 lttng add-context name --userspace [--event name] [--channel name] [--all/--pid n/cmd_name] --type context_type [context options]
103 lttng consume [PATH] --continue --snapshot --stop