X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fkernel-ctl%2Fkernel-ctl.c;h=1ddf4e81dcc27931071c3d1f25fd00fbe4e719bf;hp=82d766e1c1e70b53f0b0e3ec354bd7ab93da621b;hb=93ec662e687dc15a3601704a1e0c96c51ad228c9;hpb=fb83fe64f250bec7416f18891a8264450c61ead3 diff --git a/src/common/kernel-ctl/kernel-ctl.c b/src/common/kernel-ctl/kernel-ctl.c index 82d766e1c..1ddf4e81d 100644 --- a/src/common/kernel-ctl/kernel-ctl.c +++ b/src/common/kernel-ctl/kernel-ctl.c @@ -209,6 +209,11 @@ int kernctl_list_tracker_pids(int fd) return ioctl(fd, LTTNG_KERNEL_SESSION_LIST_TRACKER_PIDS); } +int kernctl_session_metadata_regenerate(int fd) +{ + return ioctl(fd, LTTNG_KERNEL_SESSION_METADATA_REGEN); +} + int kernctl_create_stream(int fd) { return compat_ioctl_no_arg(fd, LTTNG_KERNEL_OLD_STREAM, @@ -406,6 +411,12 @@ int kernctl_buffer_flush(int fd) return ioctl(fd, RING_BUFFER_FLUSH); } +/* returns the version of the metadata. */ +int kernctl_get_metadata_version(int fd, uint64_t *version) +{ + return ioctl(fd, RING_BUFFER_GET_METADATA_VERSION, version); +} + /* Buffer operations */ @@ -538,3 +549,9 @@ int kernctl_get_sequence_number(int fd, uint64_t *seq) { return ioctl(fd, LTTNG_RING_BUFFER_GET_SEQ_NUM, seq); } + +/* Returns the stream instance id. */ +int kernctl_get_instance_id(int fd, uint64_t *id) +{ + return ioctl(fd, LTTNG_RING_BUFFER_INSTANCE_ID, id); +}