Skip to contentSkip to conversation

snapshot issue in lttng 2.3.0

DISCUSSION Christian Babeux 1 participant 1 message Sep 25, 2013 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi Thuya,

Quoted 3 lines

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

Quoted 36 lines · Thuya Aung

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
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev