return LTTNG_IOCTL_CHECK(fd, RING_BUFFER_FLUSH_EMPTY);
}
+int kernctl_get_next_subbuf_metadata_check(int fd, bool *consistent)
+{
+ return LTTNG_IOCTL_NO_CHECK(fd,
+ RING_RING_BUFFER_GET_NEXT_SUBBUF_METADATA_CHECK,
+ consistent);
+}
+
/* returns the version of the metadata. */
int kernctl_get_metadata_version(int fd, uint64_t *version)
{
#ifndef _LTTNG_KERNEL_CTL_H
#define _LTTNG_KERNEL_CTL_H
+#include <stdbool.h>
+
#include <lttng/lttng.h>
#include <common/lttng-kernel.h>
#include <common/lttng-kernel-old.h>
int kernctl_buffer_flush_empty(int fd);
int kernctl_get_metadata_version(int fd, uint64_t *version);
int kernctl_metadata_cache_dump(int fd);
+int kernctl_get_next_subbuf_metadata_check(int fd, bool *consistent);
/* index */
int kernctl_get_timestamp_begin(int fd, uint64_t *timestamp_begin);
* so it can be read again.
*/
#define RING_BUFFER_METADATA_CACHE_DUMP _IO(0xF6, 0x10)
+#define RING_RING_BUFFER_GET_NEXT_SUBBUF_METADATA_CHECK _IOR(0xF6, 0x12, uint32_t)
/* returns the timestamp begin of the current sub-buffer */
#define LTTNG_RING_BUFFER_GET_TIMESTAMP_BEGIN _IOR(0xF6, 0x20, uint64_t)