X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=libkernelctl%2Flibkernelctl.h;h=026f58d21df89de12faf9b552cd6672d4a7cba47;hp=eb0c7800efcad3c10949dcf70247f1149681d537;hb=d0254c7c0bb43c62abafdf866b16de0da1ad4d5d;hpb=d4a1283e471c152cedf6cb5ebcc74d509009145d diff --git a/libkernelctl/libkernelctl.h b/libkernelctl/libkernelctl.h index eb0c7800e..026f58d21 100644 --- a/libkernelctl/libkernelctl.h +++ b/libkernelctl/libkernelctl.h @@ -4,8 +4,8 @@ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. + * as published by the Free Software Foundation; only version 2 + * of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -20,10 +20,16 @@ #ifndef _LTT_LIBKERNELCTL_H #define _LTT_LIBKERNELCTL_H +#include + #include "lttng-kernel.h" -int kernctl_create_channel(int fd, struct lttng_channel *chops); -int kernctl_create_event(int fd, struct lttng_event *ev); +int kernctl_add_context(int fd, struct lttng_kernel_context *ctx); +int kernctl_buffer_flush(int fd); +int kernctl_create_channel(int fd, struct lttng_channel_attr *chops); +int kernctl_create_event(int fd, struct lttng_kernel_event *ev); +int kernctl_enable(int fd); +int kernctl_disable(int fd); int kernctl_create_session(int fd); int kernctl_create_stream(int fd); int kernctl_get_max_subbuf_size(int fd, unsigned long *len); @@ -33,7 +39,7 @@ 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_channel *chops); +int kernctl_open_metadata(int fd, struct lttng_channel_attr *chops); int kernctl_put_next_subbuf(int fd); int kernctl_put_subbuf(int fd); int kernctl_snapshot(int fd); @@ -41,5 +47,9 @@ 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); +int kernctl_tracepoint_list(int fd); +int kernctl_tracer_version(int fd, struct lttng_kernel_tracer_version *v); +int kernctl_wait_quiescent(int fd); +int kernctl_calibrate(int fd, struct lttng_kernel_calibrate *calibrate); #endif /* _LTT_LIBKERNELCTL_H */