Fix: support temporary snapshot max size and name
[lttng-tools.git] / src / bin / lttng-sessiond / ust-app.c
index 223fb77c0c936e0b81d678e4787a2c5f46e80bdc..9863bf75d2ae610d5dbfcf317c5944ad7c314634 100644 (file)
@@ -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,
This page took 0.024584 seconds and 5 git commands to generate.