X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=libust%2Fchannels.h;h=abe3c1354ccad529071f0bab1a1b1aa4bba90de4;hb=8161463975e218e0833d31ab1577a7ceb9e8e9f3;hp=6db8e638ccc45ffa2841901fbde89a66b5489d28;hpb=0222e1213f196b66cbc08cd29093aca4a28e9ffb;p=ust.git diff --git a/libust/channels.h b/libust/channels.h index 6db8e63..abe3c13 100644 --- a/libust/channels.h +++ b/libust/channels.h @@ -21,11 +21,13 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#define _LGPL_SOURCE #include #include #include -#include #include +#include +#include #define EVENTS_PER_CHANNEL 65536 #define MAX_CPUS 32 @@ -52,7 +54,7 @@ struct ust_channel { */ /* End of first 32 bytes cacheline */ - struct kref kref; /* Channel transport reference count */ + struct urcu_ref urcu_ref; /* Channel transport reference count */ size_t subbuf_size; int subbuf_size_order; unsigned int subbuf_cnt; @@ -67,7 +69,7 @@ struct ust_channel { struct ltt_channel_setting { unsigned int subbuf_size; unsigned int subbuf_cnt; - struct kref kref; /* Number of references to structure content */ + struct urcu_ref urcu_ref; /* Number of references to structure content */ struct cds_list_head list; unsigned int index; /* index of channel in trace channel array */ u16 free_event_id; /* Next event ID to allocate */