X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=include%2Flttng%2Flttng.h;h=3bb245239fd6889f86a3122b9f90cc9d3733ebcb;hp=e88e22b07f6861cbe73b9951f893774904866dd0;hb=16421f6edd83b37e777b55add8396a91afcbb08a;hpb=471d16937e160d99382c633db37d89605f483556 diff --git a/include/lttng/lttng.h b/include/lttng/lttng.h index e88e22b07..3bb245239 100644 --- a/include/lttng/lttng.h +++ b/include/lttng/lttng.h @@ -20,6 +20,7 @@ #define _LIBLTTNGCTL_H #include +#include #include /* 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);