X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Flttng-share.h;h=399de4f6e6f610ee63da83ed72050213dec8deb7;hb=ee0b00610a6b7beaf6af8feddd7ef6751f22debf;hp=f6169bfd0deb743ade9f7ca254406d59dcbe3f5c;hpb=0b0dd29a48f5855eeb7cda99efaa079d8353eb6b;p=lttng-tools.git diff --git a/include/lttng-share.h b/include/lttng-share.h index f6169bfd0..399de4f6e 100644 --- a/include/lttng-share.h +++ b/include/lttng-share.h @@ -21,6 +21,8 @@ #include +#include + /* Default channel attributes */ #define DEFAULT_CHANNEL_NAME "channel0" #define DEFAULT_CHANNEL_OVERWRITE 0 /* usec */ @@ -50,6 +52,15 @@ #define DEFAULT_UST_CHANNEL_SUBBUF_SIZE 4096 /* bytes */ /* Must be a power of 2 */ #define DEFAULT_UST_CHANNEL_SUBBUF_NUM 4 +/* See lttng-ust.h enum lttng_ust_output */ +#define DEFAULT_UST_CHANNEL_OUTPUT LTTNG_UST_MMAP + +/* + * Default timeout value for the sem_timedwait() call. Blocking forever is not + * wanted so a timeout is used to control the data flow and not freeze the + * session daemon. + */ +#define DEFAULT_SEM_WAIT_TIMEOUT 30 /* in seconds */ /* * Takes a pointer x and transform it so we can use it to access members