X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=libringbuffer%2Ffrontend_types.h;h=9d3932d8978d51b17f64c87af472c675e6472824;hb=74d81a6cca2cd4a7718bba9368f382f9f2fbba84;hp=b6b34470ce28447b8f6dea168369078ec5a608ff;hpb=00b217e613614b8addc4ee2bbcdec473275842fd;p=lttng-ust.git diff --git a/libringbuffer/frontend_types.h b/libringbuffer/frontend_types.h index b6b34470..9d3932d8 100644 --- a/libringbuffer/frontend_types.h +++ b/libringbuffer/frontend_types.h @@ -46,6 +46,7 @@ enum switch_mode { SWITCH_ACTIVE, SWITCH_FLUSH }; /* channel: collection of per-cpu ring buffers. */ +#define RB_CHANNEL_PADDING 32 struct channel { int record_disabled; unsigned long commit_count_mask; /* @@ -60,7 +61,8 @@ struct channel { //wait_queue_head_t read_wait; /* reader wait queue */ int finalized; /* Has channel been finalized */ size_t priv_data_offset; - /* Note: padding field is missing */ + unsigned int nr_streams; /* Number of streams */ + char padding[RB_CHANNEL_PADDING]; /* * Associated backend contains a variable-length array. Needs to * be last member. @@ -108,7 +110,6 @@ struct lttng_ust_lib_ring_buffer { * Active readers count * standard atomic access (shared) */ - long active_shadow_readers; /* Dropped records */ union v_atomic records_lost_full; /* Buffer full */ union v_atomic records_lost_wrap; /* Nested wrap-around */