X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-abi.c;h=4dd9273f1eb9a0551d343dfd7706b0893f45fb2d;hb=7cf44d034bdda1896f6b0c6374c90c06d45ee4fd;hp=87465189060edd4122cc9f8c5ad87c3fe218b6f1;hpb=a6370148ab4a6f210c29372febcffd87b440cc50;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; }