Add channel output method selection
[lttng-tools.git] / include / lttng / lttng.h
index d7799780a793148bacb47e4aed8a9bf13ba32443..c04d1b4eadb7d996b752570c85d406544ac0f290 100644 (file)
@@ -73,6 +73,14 @@ struct lttng_kernel_context {
        } u;
 };
 
+/*
+ * LTTng consumer mode
+ */
+enum lttng_kernel_output {
+       LTTNG_KERNEL_SPLICE       = 0,
+       LTTNG_KERNEL_MMAP         = 1,
+};
+
 /*
  * Either addr is used or symbol_name and offset.
  */
@@ -110,6 +118,7 @@ struct lttng_channel_attr {
        uint64_t num_subbuf;                       /* power of 2 */
        unsigned int switch_timer_interval;   /* usec */
        unsigned int read_timer_interval;     /* usec */
+       enum lttng_kernel_output output;        /* splice, mmap */
 };
 
 /*
This page took 0.030247 seconds and 4 git commands to generate.