X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fdefaults.h;h=221bb4811be02ce5a81d35cb40b6fa4c156cbba2;hp=0682af63df6eb4904698c5aa0b9b99f8f5a61027;hb=fb198a1138d32ac7218695c564909d96018eb1b7;hpb=0475c50c4d3d2cea973fe4d1f17875d231dea96c diff --git a/src/common/defaults.h b/src/common/defaults.h index 0682af63d..221bb4811 100644 --- a/src/common/defaults.h +++ b/src/common/defaults.h @@ -88,6 +88,7 @@ #define DEFAULT_LTTNG_RUNDIR CONFIG_LTTNG_SYSTEM_RUNDIR #define DEFAULT_LTTNG_HOME_RUNDIR "%s/.lttng" #define DEFAULT_LTTNG_SESSIOND_PIDFILE "lttng-sessiond.pid" +#define DEFAULT_LTTNG_SESSIOND_JULPORT_FILE "jul.port" /* Default unix socket path */ #define DEFAULT_GLOBAL_CLIENT_UNIX_SOCK DEFAULT_LTTNG_RUNDIR "/client-lttng-sessiond" @@ -107,6 +108,24 @@ #define DEFAULT_GLOBAL_RELAY_HEALTH_UNIX_SOCK DEFAULT_LTTNG_RUNDIR "/relayd/health-%d" #define DEFAULT_HOME_RELAY_HEALTH_UNIX_SOCK DEFAULT_LTTNG_HOME_RUNDIR "/relayd/health-%d" +/* Default daemon configuration file path */ +#define DEFAULT_SYSTEM_CONFIGPATH CONFIG_LTTNG_SYSTEM_CONFIGDIR \ + "/lttng" + +#define DEFAULT_DAEMON_CONFIG_FILE "lttng.conf" +#define DEFAULT_DAEMON_HOME_CONFIGPATH DEFAULT_LTTNG_HOME_RUNDIR "/" \ + DEFAULT_DAEMON_CONFIG_FILE +#define DEFAULT_DAEMON_SYSTEM_CONFIGPATH DEFAULT_SYSTEM_CONFIGPATH "/" \ + DEFAULT_DAEMON_CONFIG_FILE + +/* Default session configuration file path */ +#define DEFAULT_SESSION_PATH "sessions" +#define DEFAULT_SESSION_HOME_CONFIGPATH DEFAULT_LTTNG_HOME_RUNDIR "/" \ + DEFAULT_SESSION_PATH +#define DEFAULT_SESSION_SYSTEM_CONFIGPATH DEFAULT_SYSTEM_CONFIGPATH "/" \ + DEFAULT_SESSION_PATH +#define DEFAULT_SESSION_CONFIG_FILE_EXTENSION ".lttng" + #define DEFAULT_GLOBAL_APPS_UNIX_SOCK \ DEFAULT_LTTNG_RUNDIR "/" LTTNG_UST_SOCK_FILENAME #define DEFAULT_HOME_APPS_UNIX_SOCK \ @@ -133,7 +152,10 @@ /* Default channel attributes */ #define DEFAULT_CHANNEL_NAME "channel0" /* Default JUL domain channel name. */ -#define DEFAULT_JUL_CHANNEL_NAME "jul_channel" +#define DEFAULT_JUL_CHANNEL_NAME "lttng_jul_channel" +/* Default JUL tracepoint name. This is a wildcard for the JUL domain. */ +#define DEFAULT_SYS_JUL_EVENT_NAME "lttng_jul:sys*" +#define DEFAULT_USER_JUL_EVENT_NAME "lttng_jul:user*" /* JUL default channel name. */ #define DEFAULT_CHANNEL_OVERWRITE 0 #define DEFAULT_CHANNEL_TRACEFILE_SIZE 0 @@ -198,11 +220,20 @@ */ #define DEFAULT_SEM_WAIT_TIMEOUT 30 /* in seconds */ -/* Default network ports for trace streaming support */ +/* Default bind addresses for network services. */ +#define DEFAULT_NETWORK_CONTROL_BIND_ADDRESS "0.0.0.0" +#define DEFAULT_NETWORK_DATA_BIND_ADDRESS "0.0.0.0" +#define DEFAULT_NETWORK_VIEWER_BIND_ADDRESS "localhost" +#define DEFAULT_JUL_BIND_ADDRESS "localhost" + +/* Default network ports for trace streaming support. */ #define DEFAULT_NETWORK_CONTROL_PORT 5342 #define DEFAULT_NETWORK_DATA_PORT 5343 #define DEFAULT_NETWORK_VIEWER_PORT 5344 +/* JUL registration TCP port. */ +#define DEFAULT_JUL_TCP_PORT 5345 + /* * If a thread stalls for this amount of time, it will be considered bogus (bad * health). @@ -244,6 +275,9 @@ #define DEFAULT_INDEX_FILE_SUFFIX ".idx" #define DEFAULT_INDEX_DIR "index" +/* Default lttng command live timer value in usec. */ +#define DEFAULT_LTTNG_LIVE_TIMER 1000000 + extern size_t default_channel_subbuf_size; extern size_t default_metadata_subbuf_size; extern size_t default_ust_pid_channel_subbuf_size;