X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=libkernelctl%2Flibkernelctl.h;h=2c03e1088c31cb32184afa843fa7eec17d5ed3f2;hb=9bda164defe0c7ef5857d4ef59cc3b464f5a5404;hp=570388c3a39edd68b39d94982850254c0a4b83c1;hpb=ee0326c0c46f4b02e9eab0b2917b62d2c55aa346;p=lttng-tools.git diff --git a/libkernelctl/libkernelctl.h b/libkernelctl/libkernelctl.h index 570388c3a..2c03e1088 100644 --- a/libkernelctl/libkernelctl.h +++ b/libkernelctl/libkernelctl.h @@ -1,5 +1,6 @@ /* - * Copyright (C) 2011 - David Goulet + * Copyright (C) 2011 - Julien Desfossez + * Mathieu Desnoyers * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -19,4 +20,25 @@ #ifndef _LTT_LIBKERNELCTL_H #define _LTT_LIBKERNELCTL_H +#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_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_put_next_subbuf(int fd); +int kernctl_put_subbuf(int fd); +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 */