X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fkernel-ctl%2Fkernel-ctl.c;h=6a256fefd00fa06b107c61aff78ea09151e63627;hp=4911d86c2ba7b93e6d6efe2370c830de86203f6e;hb=f22dd89135f6b1749cd75735f04e3cb309da12c1;hpb=001b7e62c1cb15f9d6cb835647b81028d56cf2d8 diff --git a/src/common/kernel-ctl/kernel-ctl.c b/src/common/kernel-ctl/kernel-ctl.c index 4911d86c2..6a256fefd 100644 --- a/src/common/kernel-ctl/kernel-ctl.c +++ b/src/common/kernel-ctl/kernel-ctl.c @@ -408,6 +408,11 @@ int kernctl_buffer_flush(int fd) return LTTNG_IOCTL_CHECK(fd, RING_BUFFER_FLUSH); } +int kernctl_buffer_flush_empty(int fd) +{ + return LTTNG_IOCTL_CHECK(fd, RING_BUFFER_FLUSH_EMPTY); +} + /* returns the version of the metadata. */ int kernctl_get_metadata_version(int fd, uint64_t *version) {