X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=ltt-sessiond%2Fkernel-ctl.h;h=3b18fe8e0eaba71160739dbd2737e92907cd09cb;hp=4eb8f4e2d0e797a63333771435682c9b13d0da55;hb=d686b40f66ea5df5ac0b9405991bbc33348b0a88;hpb=8c0faa1d8372c06087498985643ec9d2619d785b diff --git a/ltt-sessiond/kernel-ctl.h b/ltt-sessiond/kernel-ctl.h index 4eb8f4e2d..3b18fe8e0 100644 --- a/ltt-sessiond/kernel-ctl.h +++ b/ltt-sessiond/kernel-ctl.h @@ -19,8 +19,16 @@ #ifndef _LTT_KERNEL_CTL_H #define _LTT_KERNEL_CTL_H -#include "trace.h" #include "session.h" +#include "trace.h" + +/* + * Default size for the event list when kernel_list_events is called. This size + * value is based on the initial LTTng 2.0 version set of tracepoints. This is + * NOT an upper bound because if the real event list size is bigger, dynamic + * reallocation is performed. + */ +#define KERNEL_EVENT_LIST_SIZE 2000 int kernel_create_session(struct ltt_session *session, int tracer_fd); int kernel_create_channel(struct ltt_kernel_session *session); @@ -30,6 +38,6 @@ int kernel_create_metadata_stream(struct ltt_kernel_session *session); int kernel_create_channel_stream(struct ltt_kernel_channel *channel); int kernel_start_session(struct ltt_kernel_session *session); int kernel_stop_session(struct ltt_kernel_session *session); -pid_t kernel_start_consumer(void); +ssize_t kernel_list_events(int tracer_fd, char **event_list); #endif /* _LTT_KERNEL_CTL_H */