X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=ltt-sessiond%2Fkernel-ctl.h;h=3b18fe8e0eaba71160739dbd2737e92907cd09cb;hp=00388c7ddefaa76e5a98e834669c9a3a92767e7b;hb=d686b40f66ea5df5ac0b9405991bbc33348b0a88;hpb=1b6083d908666ac98359cd8fc1b32158196db18d diff --git a/ltt-sessiond/kernel-ctl.h b/ltt-sessiond/kernel-ctl.h index 00388c7dd..3b18fe8e0 100644 --- a/ltt-sessiond/kernel-ctl.h +++ b/ltt-sessiond/kernel-ctl.h @@ -22,6 +22,14 @@ #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); @@ -30,5 +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); +ssize_t kernel_list_events(int tracer_fd, char **event_list); #endif /* _LTT_KERNEL_CTL_H */