Something else
On 10-10-20 04:51 AM, Nils Carlson wrote:
case SET_SUBBUF_NUM:
if (opts.regex) {
- if (ustcmd_set_subbuf_num(opts.regex,
*pidit)) {
+ char *channel;
+ unsigned int num;
+ if
(scan_ch_and_num(opts.regex,&channel,&num)) {
+ retval = EXIT_FAILURE;
+ break;
+ }
+
num < 2. The default subbuf num is 2 buf we can't set it back to 2 with
this :).
Thanks!
David
+ if (num<= 2) {
+ ERR("Subbuffer count should be
greater than 2");
+ retval = EXIT_FAILURE;
+ break;
+ }
+ if (ustcmd_set_subbuf_num(channel, num,
*pidit)) {
ERR("error while trying to set the
number of subbuffers with PID %u\n",
(unsigned int)
*pidit);
retval = EXIT_FAILURE;
--
David Goulet
LTTng project, DORSAL Lab.
PGP/GPG : 1024D/16BD8563
BE3C 672B 9331 9796 291A 14C6 4AF7 C14B 16BD 8563
_______________________________________________
ltt-dev mailing list
[email protected]
http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev