Initial import of libkernelctl and data structures
[lttng-tools.git] / include / lttng / lttng.h
index e88e22b07f6861cbe73b9951f893774904866dd0..3bb245239fd6889f86a3122b9f90cc9d3733ebcb 100644 (file)
@@ -20,6 +20,7 @@
 #define _LIBLTTNGCTL_H
 
 #include <limits.h>
+#include <stdint.h>
 #include <uuid/uuid.h>
 
 /* Default unix group name for tracing.
@@ -36,6 +37,8 @@
 /* UUID short string version length (including \0) */
 #define UUID_SHORT_STR_LEN 9
 
+typedef uint64_t u64;
+
 /* Trace type for lttng_trace.
  */
 enum lttng_trace_type {
@@ -57,6 +60,26 @@ struct lttng_trace {
        enum lttng_trace_type type;
 };
 
+/*
+ * LTTng DebugFS ABI structures.
+ */
+enum lttng_instrum_type {
+       INSTRUM_TRACEPOINTS,
+};
+
+struct lttng_channel {
+       int overwrite;         /* 1: overwrite, 0: discard */
+       u64 subbuf_size;
+       u64 num_subbuf;
+       unsigned int switch_timer_interval;
+       unsigned int read_timer_interval;
+};
+
+struct lttng_event {
+       enum lttng_instrum_type itype;
+       char name[];
+};
+
 extern int lttng_create_session(char *name, uuid_t *session_id);
 extern int lttng_destroy_session(uuid_t *uuid);
 extern int lttng_connect_sessiond(void);
This page took 0.024973 seconds and 4 git commands to generate.