X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=libust%2Fchannels.h;h=6f57f13de6de2b7c58800b5bda5d284f7f0f31ea;hb=204141ee9da22a244c9095287f4f1c513784b171;hp=893d8c1193b544c35ff063cbb06e1a37f3de9a7d;hpb=23e47a47f1cb9848f6a5e93ae34f60d30479339c;p=ust.git diff --git a/libust/channels.h b/libust/channels.h index 893d8c1..6f57f13 100644 --- a/libust/channels.h +++ b/libust/channels.h @@ -28,6 +28,7 @@ #include #define EVENTS_PER_CHANNEL 65536 +#define MAX_CPUS 32 struct ltt_trace_struct; @@ -36,7 +37,8 @@ struct ust_buffer; struct ust_channel { /* First 32 bytes cache-hot cacheline */ struct ltt_trace_struct *trace; - void *buf; + int *buf_struct_shmids; + struct ust_buffer **buf; int overwrite:1; int active:1; unsigned int n_subbufs_order; @@ -65,8 +67,7 @@ struct ust_channel { int subbuf_size_order; unsigned int subbuf_cnt; const char *channel_name; - - int buf_shmid; + int n_cpus; u32 version; size_t alloc_size;