X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-abi.c;h=9400f5374aad7ce1510e7db59bcc423568b50448;hb=53f7c057e722934b40599fa9d5daf0cda3bda671;hp=cc3d4b5bf37765a50f8b8860b28b22e9639a241e;hpb=e795690f41343b02cb6e78aa5edfe126c072a53c;p=lttng-modules.git diff --git a/lttng-abi.c b/lttng-abi.c index cc3d4b5b..9400f537 100644 --- a/lttng-abi.c +++ b/lttng-abi.c @@ -684,6 +684,18 @@ long lttng_metadata_ring_buffer_ioctl(struct file *filp, goto err; break; } + 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; } @@ -754,6 +766,18 @@ long lttng_metadata_ring_buffer_compat_ioctl(struct file *filp, goto err; break; } + 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; }