X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fdefaults.h;h=56a7c94490014ae5cda156659dcb8c24a8609c2e;hp=5c93e498ddf39c86007c8b07d58ec8e64ec8324f;hb=5c0551f9f5b0d30cf9fb7fb148720b99a5c9b24e;hpb=92816cc33a1add3c8276839bd6335e17423577dd diff --git a/src/common/defaults.h b/src/common/defaults.h index 5c93e498d..56a7c9449 100644 --- a/src/common/defaults.h +++ b/src/common/defaults.h @@ -55,12 +55,12 @@ #define DEFAULT_TRACE_OUTPUT DEFAULT_HOME_DIR "/lttng" /* Default directory where the trace are written in per domain */ -#define DEFAULT_KERNEL_TRACE_DIR "/kernel" -#define DEFAULT_UST_TRACE_DIR "/ust" +#define DEFAULT_KERNEL_TRACE_DIR "kernel" +#define DEFAULT_UST_TRACE_DIR "ust" /* Subpath for per PID or UID sessions. */ -#define DEFAULT_UST_TRACE_PID_PATH "/pid" -#define DEFAULT_UST_TRACE_UID_PATH "/uid/%d/%u-bit" +#define DEFAULT_UST_TRACE_PID_PATH "pid" +#define DEFAULT_UST_TRACE_UID_PATH "uid/%d/%u-bit" /* * Default session name for the lttng command line. This default value will @@ -93,6 +93,21 @@ #define DEFAULT_RELAYD_RUNDIR "%s" #define DEFAULT_RELAYD_PATH DEFAULT_RELAYD_RUNDIR "/relayd" +#define DEFAULT_RELAYD_MIN_FD_POOL_SIZE 100 +/* + * The file descriptor pool size needs a reserve buffer to accomodate the + * indirect use of short-lived file descriptors. For instance, glibc will + * create a socket (and thus, use an fd) during calls to gethostname() or + * when querying the user's group. Other calls also probably make use of + * short-lived FDs. + * + * The theoritical maximal reserve corresponds to the number of threads as, + * in the worst case, they could all be making such calls. + * + * This value must be less than DEFAULT_RELAYD_MIN_FD_POOL_SIZE. + */ +#define DEFAULT_RELAYD_FD_POOL_SIZE_RESERVE 10 + /* Default lttng run directory */ #define DEFAULT_LTTNG_HOME_ENV_VAR "LTTNG_HOME" #define DEFAULT_LTTNG_FALLBACK_HOME_ENV_VAR "HOME" @@ -284,7 +299,7 @@ * Wait period before retrying the lttng_data_pending command in the lttng * stop command of liblttng-ctl. */ -#define DEFAULT_DATA_AVAILABILITY_WAIT_TIME 200000 /* usec */ +#define DEFAULT_DATA_AVAILABILITY_WAIT_TIME_US 200000 /* usec */ /* * Wait period before retrying the lttng_consumer_flushed_cache when @@ -333,6 +348,9 @@ /* Default maximal size of message notification channel message payloads. */ #define DEFAULT_MAX_NOTIFICATION_CLIENT_MESSAGE_PAYLOAD_SIZE 65536 +/* Default maximal size of trace archive location. */ +#define DEFAULT_MAX_TRACE_ARCHIVE_LOCATION_PAYLOAD_SIZE 65536 + /* Default maximal size of message notification channel message payloads. */ #define DEFAULT_CLIENT_MAX_QUEUED_NOTIFICATIONS_COUNT 100 @@ -342,6 +360,17 @@ #define DEFAULT_LTTNG_RELAYD_TCP_KEEP_ALIVE_MAX_PROBE_COUNT_ENV "LTTNG_RELAYD_TCP_KEEP_ALIVE_MAX_PROBE_COUNT" #define DEFAULT_LTTNG_RELAYD_TCP_KEEP_ALIVE_PROBE_INTERVAL_ENV "LTTNG_RELAYD_TCP_KEEP_ALIVE_PROBE_INTERVAL" #define DEFAULT_LTTNG_RELAYD_TCP_KEEP_ALIVE_ABORT_THRESHOLD_ENV "LTTNG_RELAYD_TCP_KEEP_ALIVE_ABORT_THRESHOLD" +#define DEFAULT_LTTNG_RELAYD_DISALLOW_CLEAR_ENV "LTTNG_RELAYD_DISALLOW_CLEAR" + +#define DEFAULT_LTTNG_RELAYD_WORKING_DIRECTORY_ENV "LTTNG_RELAYD_WORKING_DIRECTORY" + +/* + * Name of the intermediate directory used to rename the trace chunk of a + * session's first rotation. + */ +#define DEFAULT_CHUNK_TMP_OLD_DIRECTORY ".tmp_old_chunk" +#define DEFAULT_CHUNK_TMP_NEW_DIRECTORY ".tmp_new_chunk" +#define DEFAULT_ARCHIVED_TRACE_CHUNKS_DIRECTORY "archives" /* * Default timer value in usec for the rotate pending polling check on the