Bug #235
closedlttng_enable_channel with too little subbuffers size returns an error that isn't explicit
0%
Description
When I try to create an UST channel with X subbuffers of size 1024 (or 2048), I just got an error "Enable UST channel failed".
I guess the error is that the subbuffers size is too low (it disappears with 4096), but would it be possible to have a more explicit error ?
Updated by David Goulet about 12 years ago
This should not happen anymore on lttng-tools 2.1-rcX + .
However, there is a new bug where the lttng-ust tracer fails to create an event if the channel subbuf size is lower than 4096.
See related bugs #339
Please confirm me that this problem is not happening anymore on your side. I'll close it afterwards.
Thanks
Updated by David Goulet almost 12 years ago
- Status changed from New to Resolved
- Target version set to 2.1 stable
Enabling a channel with bad attributes will return a LTTNG_ERR_INVALID code.
Conditions are:
- subbuf_size < DEFAULT_UST_CHANNEL_SUBBUF_SIZE
- subbuf_size 0 or (subbuf_size & subbuf_size - 1) 1
- num_subbuf 0 or (num_subbuf & num_subbuf - 1) 1
The check for power of two is done in the lttng UI. The library does not change the values but rather tell you that if invalid.