[ltt-dev] [UST PATCH] Introduce a new communication protocol for UST v3

David Goulet david.goulet at polymtl.ca
Fri Oct 22 16:50:45 EDT 2010


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




More information about the lttng-dev mailing list