X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=libkernelctl%2Flibkernelctl.h;h=34be7a5d3546142b167cfbc8e4048b20e5cd69d3;hp=36d7175f083d61b1f18270d49b7c4fef7059153d;hb=a5c5a2bd8c78b788f6094d80c188af0db78c17ec;hpb=16421f6edd83b37e777b55add8396a91afcbb08a diff --git a/libkernelctl/libkernelctl.h b/libkernelctl/libkernelctl.h index 36d7175f0..34be7a5d3 100644 --- a/libkernelctl/libkernelctl.h +++ b/libkernelctl/libkernelctl.h @@ -20,25 +20,26 @@ #ifndef _LTT_LIBKERNELCTL_H #define _LTT_LIBKERNELCTL_H -#include +#include "lttng-kernel.h" -int kernctl_create_channel(int, struct lttng_channel*); -int kernctl_create_event(int, struct lttng_event*); -int kernctl_create_session(int); -int kernctl_create_stream(int); -int kernctl_get_max_subbuf_size(int, unsigned long*); -int kernctl_get_mmap_len(int, unsigned long*); -int kernctl_get_mmap_read_offset(int, unsigned long*); -int kernctl_get_next_subbuf(int); -int kernctl_get_padded_subbuf_size(int, unsigned long*); -int kernctl_get_subbuf(int fd, unsigned long*); -int kernctl_get_subbuf_size(int, unsigned long *); -int kernctl_put_next_subbuf(int); +int kernctl_create_channel(int fd, struct lttng_kernel_channel *chops); +int kernctl_create_event(int fd, struct lttng_kernel_event *ev); +int kernctl_create_session(int fd); +int kernctl_create_stream(int fd); +int kernctl_get_max_subbuf_size(int fd, unsigned long *len); +int kernctl_get_mmap_len(int fd, unsigned long *len); +int kernctl_get_mmap_read_offset(int fd, unsigned long *len); +int kernctl_get_next_subbuf(int fd); +int kernctl_get_padded_subbuf_size(int fd, unsigned long *len); +int kernctl_get_subbuf(int fd, unsigned long *len); +int kernctl_get_subbuf_size(int fd, unsigned long *len); +int kernctl_open_metadata(int fd, struct lttng_kernel_channel *chops); +int kernctl_put_next_subbuf(int fd); int kernctl_put_subbuf(int fd); -int kernctl_snapshot(int); -int kernctl_snapshot_get_consumed(int, unsigned long*); -int kernctl_snapshot_get_produced(int, unsigned long*); -int kernctl_start_session(int); -int kernctl_stop_session(int); +int kernctl_snapshot(int fd); +int kernctl_snapshot_get_consumed(int fd, unsigned long *len); +int kernctl_snapshot_get_produced(int fd, unsigned long *len); +int kernctl_start_session(int fd); +int kernctl_stop_session(int fd); #endif /* _LTT_LIBKERNELCTL_H */