X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=lttng-abi.c;h=0f01d3d7df558b3ad6515edddc5006d865693d8b;hb=7337bad8813e5d9ec7f37669afb3ec3bf07937da;hp=196aed84e421fa96708e13e247aee2277b255485;hpb=b6155a916c35bfa4c4e5d49c52072e12c3daebba;p=lttng-modules.git diff --git a/lttng-abi.c b/lttng-abi.c index 196aed84..0f01d3d7 100644 --- a/lttng-abi.c +++ b/lttng-abi.c @@ -629,6 +629,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; } @@ -699,6 +711,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; }