X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=include%2Flttng-share.h;h=cac819d63467377fbe9bf39f8449595e474249b9;hb=f6a9efaa0fe496b7fa4850daa2eae98a240433e1;hp=78abff6ae7c2e34b4f515b0be09385fc5507a9b6;hpb=28ca4a8b53068907137724e2e078b29cecf525f7;p=lttng-tools.git diff --git a/include/lttng-share.h b/include/lttng-share.h index 78abff6ae..cac819d63 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 */ @@ -55,6 +58,13 @@ /* 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 * without a function call. Here an example: