X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=include%2Flttng%2Flttng.h;h=8566deabe61d91dea58337e94bb74f5075c970e2;hp=e21b479777b0760d028876218cd12e63decb992f;hb=7972aab22f74b18faa168c0482216a3dd711a075;hpb=41039c060435ac14b46d21761e02ec0a344cc6ac diff --git a/include/lttng/lttng.h b/include/lttng/lttng.h index e21b47977..8566deabe 100644 --- a/include/lttng/lttng.h +++ b/include/lttng/lttng.h @@ -142,13 +142,21 @@ enum lttng_health_component { LTTNG_HEALTH_ALL, }; +/* Buffer type for a specific domain. */ +enum lttng_buffer_type { + LTTNG_BUFFER_PER_PID, /* Only supported by UST being the default. */ + LTTNG_BUFFER_PER_UID, /* Only supported by UST. */ + LTTNG_BUFFER_GLOBAL, /* Only supported by the Kernel. */ +}; + /* * The structures should be initialized to zero before use. */ -#define LTTNG_DOMAIN_PADDING1 16 +#define LTTNG_DOMAIN_PADDING1 12 #define LTTNG_DOMAIN_PADDING2 LTTNG_SYMBOL_NAME_LEN + 32 struct lttng_domain { enum lttng_domain_type type; + enum lttng_buffer_type buf_type; char padding[LTTNG_DOMAIN_PADDING1]; union { @@ -590,12 +598,14 @@ extern int lttng_set_consumer_url(struct lttng_handle *handle, /* * Enable the consumer for a session and domain. */ -extern int lttng_enable_consumer(struct lttng_handle *handle); +extern LTTNG_DEPRECATED("This call is now obselete.") +int lttng_enable_consumer(struct lttng_handle *handle); /* * Disable consumer for a session and domain. */ -extern int lttng_disable_consumer(struct lttng_handle *handle); +extern LTTNG_DEPRECATED("This call is now obselete.") +int lttng_disable_consumer(struct lttng_handle *handle); /* * Check session daemon health for a specific component.