[ltt-dev] [RFC] lttng-tools command line interface

Alexandre Montplaisir alexandre.montplaisir at polymtl.ca
Tue Jun 7 20:56:47 EDT 2011


Very nice!


Some dumb questions:

On 11-06-07 07:08 PM, Mathieu Desnoyers wrote:
> ... the elements below between [ ] are
> actually optional, not "implied by default" as stated above.
>

> * Tracing session control
>
> lttng create [--session name] # create a tracing session
>       [--output path]          # optionally specify the output path
>       [--name name]            # optional session name (default provided)
>
> --->  This command prints
>       "Working directory of created session is /path/to/name. Change your"
>       "current working directory to interact with this session."

Is this what is printed if only "lttng create" with no parameters is 
typed in?
If yes, what is the default session name?
If not, I guess it prints the same as "lttng create --help" ?

>
> --->  All the following commands use the current working directory
>       .lttng/config file to keep track of the session on which actions
>       should be applied.

Yup, Git-alike  ;)

>
> lttng destroy [--session name] # teardown a tracing session
> lttng start [--session name]   # start tracing for a session
> lttng stop [--session name]    # stop tracing for a session

Is "--session" needed here, or would just "lttng destroy mysession" be 
allowed/wanted too?
À la "git push origin master", which does not require any --options for 
mandatory parameters, only extras.

>
> lttng add-context name --kernel [--event name] [--channel name] --type context_type [context options]
> lttng add-context name --userspace [--event name] [--channel name] [--all/--pid n/cmd_name] --type context_type [context options]

I guess you have plans for short options too? like,
-k, --kernel
-u, --userspace
-e, --event
etc.

> Comments are immensely welcome!
>
> Thanks,
>
> Mathieu
>

Looks great! Can't wait to try it!

-- 
Alexandre Montplaisir
DORSAL lab,
École Polytechnique de Montréal





More information about the lttng-dev mailing list