X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=lttng-abi.c;h=4dd9273f1eb9a0551d343dfd7706b0893f45fb2d;hb=26e3ab8f7a866c8621bff19db0875bf863583fd7;hp=87465189060edd4122cc9f8c5ad87c3fe218b6f1;hpb=99626983d374df4406fdac348721531af7e49f53;p=lttng-modules.git diff --git a/lttng-abi.c b/lttng-abi.c index 87465189..4dd9273f 100644 --- a/lttng-abi.c +++ b/lttng-abi.c @@ -702,6 +702,18 @@ long lttng_metadata_ring_buffer_ioctl(struct file *filp, return put_u64(stream->version, arg); } + case RING_BUFFER_SNAPSHOT: + { + /* + * Force the buffer to quiescent so the ring buffer + * don't attempt to perform a SWITCH_FLUSH, which would + * desynchronize the client accounting of the amount of + * data available in the buffer from the ring buffer + * view. + */ + buf->quiescent = true; + break; + } default: break; } @@ -778,6 +790,18 @@ long lttng_metadata_ring_buffer_compat_ioctl(struct file *filp, return put_u64(stream->version, arg); } + case RING_BUFFER_SNAPSHOT: + { + /* + * Force the buffer to quiescent so the ring buffer + * don't attempt to perform a SWITCH_FLUSH, which would + * desynchronize the client accounting of the amount of + * data available in the buffer from the ring buffer + * view. + */ + buf->quiescent = true; + break; + } default: break; }