X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Fdefaults.h;h=658e7d37d7a5118979ea503e50e4666ca8e47eee;hb=7972aab22f74b18faa168c0482216a3dd711a075;hp=83159d7d7b5d83c2096fedc7b010f9c2c186aa5b;hpb=d0b96690836f4b876096f3dc14801f8e25281a77;p=lttng-tools.git diff --git a/src/common/defaults.h b/src/common/defaults.h index 83159d7d7..658e7d37d 100644 --- a/src/common/defaults.h +++ b/src/common/defaults.h @@ -48,6 +48,10 @@ #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" + /* * Default session name for the lttng command line. This default value will * get the date and time appended (%Y%m%d-%H%M%S) to it. @@ -84,7 +88,6 @@ #define DEFAULT_GLOBAL_HEALTH_UNIX_SOCK DEFAULT_LTTNG_RUNDIR "/health.sock" #define DEFAULT_HOME_HEALTH_UNIX_SOCK DEFAULT_LTTNG_HOME_RUNDIR "/health.sock" -#ifdef HAVE_LIBLTTNG_UST_CTL #define DEFAULT_GLOBAL_APPS_UNIX_SOCK \ DEFAULT_LTTNG_RUNDIR "/" LTTNG_UST_SOCK_FILENAME #define DEFAULT_HOME_APPS_UNIX_SOCK \ @@ -94,11 +97,6 @@ #define DEFAULT_HOME_APPS_WAIT_SHM_PATH \ DEFAULT_GLOBAL_APPS_WAIT_SHM_PATH "-%d" -#else -#define DEFAULT_GLOBAL_APPS_UNIX_SOCK -#define DEFAULT_HOME_APPS_UNIX_SOCK -#endif /* HAVE_LIBLTTNG_UST_CTL */ - /* * Value taken from the hard limit allowed by the kernel when using setrlimit * with RLIMIT_NOFILE on an Intel i7 CPU and Linux 3.0.3. @@ -121,7 +119,7 @@ /* DEFAULT_CHANNEL_SUBBUF_NUM must always be a power of 2 */ #define DEFAULT_CHANNEL_SUBBUF_NUM 4 #define DEFAULT_CHANNEL_SWITCH_TIMER 0 /* usec */ -#define DEFAULT_CHANNEL_READ_TIMER 200 /* usec */ +#define DEFAULT_CHANNEL_READ_TIMER 200000 /* usec */ #define DEFAULT_CHANNEL_OUTPUT LTTNG_EVENT_MMAP #define DEFAULT_METADATA_SUBBUF_SIZE 4096 @@ -139,6 +137,10 @@ /* See lttng-kernel.h enum lttng_kernel_output for channel output */ #define DEFAULT_KERNEL_CHANNEL_OUTPUT LTTNG_EVENT_SPLICE +#define DEFAULT_KERNEL_CHANNEL_SWITCH_TIMER \ + DEFAULT_CHANNEL_SWITCH_TIMER +#define DEFAULT_KERNEL_CHANNEL_READ_TIMER 200000 /* usec */ + /* User space defaults */ /* Must be a power of 2 */ @@ -148,6 +150,10 @@ /* See lttng-ust.h enum lttng_ust_output */ #define DEFAULT_UST_CHANNEL_OUTPUT LTTNG_EVENT_MMAP +#define DEFAULT_UST_CHANNEL_SWITCH_TIMER \ + DEFAULT_CHANNEL_SWITCH_TIMER +#define DEFAULT_UST_CHANNEL_READ_TIMER 0 /* usec */ + /* * 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