From: Mathieu Desnoyers Date: Sat, 24 Sep 2011 21:32:47 +0000 (-0400) Subject: Fix memory layout for channel X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=de85e7c397d0c63adccebac96d4efda1588155c2;p=ust.git Fix memory layout for channel Signed-off-by: Mathieu Desnoyers --- diff --git a/libringbuffer/frontend_types.h b/libringbuffer/frontend_types.h index 76ad7ff..baf1826 100644 --- a/libringbuffer/frontend_types.h +++ b/libringbuffer/frontend_types.h @@ -44,12 +44,15 @@ struct channel { * subbuffer index. */ - struct channel_backend backend; /* Associated backend */ - unsigned long switch_timer_interval; /* Buffer flush (jiffies) */ unsigned long read_timer_interval; /* Reader wakeup (jiffies) */ //wait_queue_head_t read_wait; /* reader wait queue */ int finalized; /* Has channel been finalized */ + /* + * Associated backend contains a variable-length array. Needs to + * be last member. + */ + struct channel_backend backend; /* Associated backend */ } ____cacheline_aligned; /* Per-subbuffer commit counters used on the hot path */