X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fust-app.c;h=9863bf75d2ae610d5dbfcf317c5944ad7c314634;hp=223fb77c0c936e0b81d678e4787a2c5f46e80bdc;hb=e1986656f8267fb64f5ac67c0d464d157b8a050b;hpb=5c786dedd0156b93984f89ba47ec841277ed7dae diff --git a/src/bin/lttng-sessiond/ust-app.c b/src/bin/lttng-sessiond/ust-app.c index 223fb77c0..9863bf75d 100644 --- a/src/bin/lttng-sessiond/ust-app.c +++ b/src/bin/lttng-sessiond/ust-app.c @@ -4929,7 +4929,8 @@ int ust_app_snapshot_record(struct ltt_ust_session *usess, * subbuffer size or else it's an error since we won't be able to * snapshot anything. */ - if (ua_chan->attr.subbuf_size > max_stream_size) { + if (max_stream_size && + ua_chan->attr.subbuf_size > max_stream_size) { ret = -EINVAL; DBG3("UST app snapshot record maximum stream size %" PRIu64 " is smaller than subbuffer size of %" PRIu64,