Signed-off-by: David Goulet <david.goulet@polymtl.ca>
/* See lttng-kernel.h enum lttng_kernel_output for channel output */
#define DEFAULT_KERNEL_CHANNEL_OUTPUT LTTNG_EVENT_SPLICE
+/* User space defaults */
+
+/* Must be a power of 2 */
+#define DEFAULT_UST_CHANNEL_SUBBUF_SIZE 4096 /* bytes */
+/* Must be a power of 2 */
+#define DEFAULT_UST_CHANNEL_SUBBUF_NUM 4
+
/*
* Takes a pointer x and transform it so we can use it to access members
* without a function call. Here an example:
chan.attr.switch_timer_interval = DEFAULT_CHANNEL_SWITCH_TIMER;
chan.attr.read_timer_interval = DEFAULT_CHANNEL_READ_TIMER;
- chan.attr.subbuf_size = DEFAULT_CHANNEL_SUBBUF_SIZE;
- chan.attr.num_subbuf = DEFAULT_CHANNEL_SUBBUF_NUM;
+ chan.attr.subbuf_size = DEFAULT_UST_CHANNEL_SUBBUF_SIZE;
+ chan.attr.num_subbuf = DEFAULT_UST_CHANNEL_SUBBUF_NUM;
chan.attr.output = DEFAULT_CHANNEL_OUTPUT;
}
}