X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=include%2Flttng-share.h;h=708a1f009cf3727d54c42ccf2da62557de1d7db2;hp=78abff6ae7c2e34b4f515b0be09385fc5507a9b6;hb=d056b47720cf547dd8c4ca59076ffcd215d58f2c;hpb=28ca4a8b53068907137724e2e078b29cecf525f7 diff --git a/include/lttng-share.h b/include/lttng-share.h index 78abff6ae..708a1f009 100644 --- a/include/lttng-share.h +++ b/include/lttng-share.h @@ -23,6 +23,9 @@ #include +/* Default size of a hash table */ +#define DEFAULT_HT_SIZE 32 + /* Default channel attributes */ #define DEFAULT_CHANNEL_NAME "channel0" #define DEFAULT_CHANNEL_OVERWRITE 0 /* usec */ @@ -53,7 +56,14 @@ /* 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 +#define DEFAULT_UST_CHANNEL_OUTPUT LTTNG_EVENT_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