From: Jérémie Galarneau Date: Thu, 8 Aug 2019 20:39:56 +0000 (-0400) Subject: Fix: initialize kernel stream max subbuffer size on creation X-Git-Tag: v2.12.0-rc1~512 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=d05185faf74eddb5d0425822efc877c6c0ce5f0a;hp=d05185faf74eddb5d0425822efc877c6c0ce5f0a Fix: initialize kernel stream max subbuffer size on creation A consumer stream's maximal subbuffer size is only initialized while taking a snapshot. This unexpectedly leaves the max_sb_size at 0 causing the rotation target sequence number computation to crash with a SIGFPE. This fix initializes the value as soon as possible to provide a behaviour in line with that of the ust-consumer. Signed-off-by: Jérémie Galarneau ---