[lttng-dev] snapshot issue in lttng 2.3.0

Christian Babeux christian.babeux at efficios.com
Wed Sep 25 10:28:21 EDT 2013


Hi Thuya,

> I got the error message saying "Undefined command" with the following
>
> lttng add-output -n myNewOutput file:///home/taung/output (<--- following the examples of man 1 lttng)

There was an error in the man page, the command should be "lttng
snapshot add-output". I've just sent a patch to fix this.

Also you don't need to use add-output/del-output if you want to change
to default snapshot output location. It can be specified with the
create session command and -U option:

lttng create mySession --snapshot -U file:///home/taung/output

[...]

lttng snapshot record -n snapshot_name

Also see doc/snapshot-howto.txt for a complete example.

Thanks,

Christian

On Tue, Sep 24, 2013 at 4:42 PM, Thuya Aung <thuyaaung2002 at yahoo.com> wrote:
> Hello lttng-dev,
>
> With lttng 2.3.0 in Ubuntu 12.04 LTS, I only get the tracepoints in kernel folder with snapshot mode. I do not see anything for userspace tracepoints.
> The following is the way I setup for lttng session
>
> lttng create mySession --snapshot
>
> lttng enable-channel kCh --buffers-global --subbuf-size=1048576 -k
> lttng enable-event -a -k
>
> lttng enable-channel uCh --buffers-uid --subbuf-size=1048576 -u
> lttng enable-event -a -u
>
> sleep 1
> lttng start mySession
> sleep 60
>
> lttng snapshot record
>
>
> lttng stop mySession
> lttng destroy mySession
>
> I got the error message saying "Undefined command" with the following
>
> lttng add-output -n myNewOutput file:///home/taung/output (<--- following the examples of man 1 lttng)
>
> Did I do something wrong? What else I should be doing in order to use snapshot feature?
>
> Thanks in advance,
> Thuya Aung
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev



More information about the lttng-dev mailing list