From mboxrd@z Thu Jan 1 00:00:00 1970 From: dgoulet@efficios.com (David Goulet) Date: Tue, 09 Oct 2012 15:08:21 -0400 Subject: [lttng-dev] LTTng Tools 2.1 streaming commands In-Reply-To: <4CB817F8B8860343821834C09BFBA7A6E183805D4D@EUSAACMS0702.eamcs.ericsson.se> References: <4CB817F8B8860343821834C09BFBA7A6E183805D4D@EUSAACMS0702.eamcs.ericsson.se> Message-ID: <50747625.2010109@efficios.com> After talking a bit about this issue with other LTTng devs, it turns out that it makes more sense to have a "set-consumer" command and remove enable/disable-consumer from the cmd UI. I'll send a proposal on lttng-dev in the next days and please, everyone, feel free to give feedbacks on this. Thanks! David Bernd Hufmann: > 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://" or "lttng > enable-consumer -k -C tcp:// -D tcp://" > don't enable the consumer. You need to either add option --enable or > execute subsequently "lttng enable-consumer --enable" > * lttng enable-consumer -k net:// 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 [--enable] > lttng configure-consumer -k -C -D [--enable] > lttng configure-consumer -k --enable > lttng configure-consumer -u -U [--enable] > lttng configure-consumer -u -C -D [--enable] > lttng configure-consumer -u --enable > > Please let me know what you think. > > b) lttng create [-U ] | [-C -D ] > [--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_ > > > > > This body part will be downloaded on demand.