X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=ltt-sessiond%2Fkernel-ctl.h;h=3b18fe8e0eaba71160739dbd2737e92907cd09cb;hb=33a2b85433875769e92ca44a680c46b9498f5174;hp=cfcf2512806e776404be7dc7ebd114c66da4d68c;hpb=9e78d6ae219789dee9c96f35f190d6166ef389c3;p=lttng-tools.git diff --git a/ltt-sessiond/kernel-ctl.h b/ltt-sessiond/kernel-ctl.h index cfcf25128..3b18fe8e0 100644 --- a/ltt-sessiond/kernel-ctl.h +++ b/ltt-sessiond/kernel-ctl.h @@ -19,10 +19,17 @@ #ifndef _LTT_KERNEL_CTL_H #define _LTT_KERNEL_CTL_H -#include "ltt-sessiond.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); int kernel_enable_event(struct ltt_kernel_session *session, char *name); @@ -31,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 */