Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* [lttng-dev] LTTng Tools 2.1 streaming commands
@ 2012-10-03 18:17 Bernd Hufmann
  2012-10-03 18:27 ` David Goulet
  2012-10-09 19:08 ` David Goulet
  0 siblings, 2 replies; 7+ messages in thread
From: Bernd Hufmann @ 2012-10-03 18:17 UTC (permalink / raw)


Hello

For the support of LTTng Tools 2.1 in Eclipse, I'm currently trying to understand how to use the configuration for network streaming with the updated "lttng create"-command and new "enable-consumer"-command.

a) lttng enable-consumer
I find this command confusing because this command does not always enables the consumer, even if the command name implies so. The enabling actually depends on how the command is executed.
Examples:
*       "lttng enable-consumer -k -U net://<remote_addr>" or "lttng enable-consumer -k -C tcp://<remote_addr> -D tcp://<remote_addr>" don't enable the consumer. You need to either add option --enable or execute subsequently "lttng enable-consumer --enable"
*       lttng enable-consumer -k net://<remote_addr> does enable the consumer. I took me a while to figure out the difference to the example above: The option -U is omitted.

What the command actually provides, is 2 features: A way to configure streaming (e.g. remote_addr) and a way to enable the consumer. Would it be better to name it to "lttng configure-consumer"? Also, remove the support of the possibility to not specify -U, -C or -D. The following variants of this command should be enough:
lttng configure-consumer -k -U <remote_addr> [--enable]
lttng configure-consumer -k -C <remote_addr> -D <remote_addr> [--enable]
lttng configure-consumer -k --enable
lttng configure-consumer -u -U <remote_addr> [--enable]
lttng configure-consumer -u -C <remote_addr> -D <remote_addr> [--enable]
lttng configure-consumer -u --enable

Please let me know what you think.

b) lttng create [-U <remote_addr>] | [-C <remote_addr> -D <remote_addr>] [--no-consumer] [--disable-consumer]
*       Are options --no-consumer or --disable-consumer only applicable for streaming?
*       I'm not sure what is the purpose of the options --no-consumer or --disable-consumer. Could you please explain the use cases for using --no-consumer or --disable-consumer?

Thanks
Bernd

This Communication is Confidential. We only send and receive email on the basis of the terms set out at www.ericsson.com/email_disclaimer


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20121003/15b1fc14/attachment-0001.html>


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-10-10 13:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-03 18:17 [lttng-dev] LTTng Tools 2.1 streaming commands Bernd Hufmann
2012-10-03 18:27 ` David Goulet
2012-10-05 11:44   ` eamcs/eedbhu
2012-10-05 13:13     ` David Goulet
2012-10-09 19:08 ` David Goulet
2012-10-09 21:18   ` Matthew Khouzam
2012-10-10 13:20   ` Bernd Hufmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox