X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=lttng-abi.c;h=e193f4377734d1a47a8d881125de8d93befe0cc3;hb=c81f4d1591bfc7cbb6da6310e43f316367cd9200;hp=87465189060edd4122cc9f8c5ad87c3fe218b6f1;hpb=96c55c2f6b20fd742b3ea2aa291c28e140df82d8;p=lttng-modules.git diff --git a/lttng-abi.c b/lttng-abi.c index 87465189..e193f437 100644 --- a/lttng-abi.c +++ b/lttng-abi.c @@ -569,6 +569,8 @@ long lttng_session_ioctl(struct file *file, unsigned int cmd, unsigned long arg) return lttng_session_list_tracker_pids(session); case LTTNG_KERNEL_SESSION_METADATA_REGEN: return lttng_session_metadata_regenerate(session); + case LTTNG_KERNEL_SESSION_STATEDUMP: + return lttng_session_statedump(session); default: return -ENOIOCTLCMD; } @@ -702,6 +704,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 +792,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; }