Convert buffering system to per-cpu
[ust.git] / libust / channels.h
index 893d8c1193b544c35ff063cbb06e1a37f3de9a7d..6f57f13de6de2b7c58800b5bda5d284f7f0f31ea 100644 (file)
@@ -28,6 +28,7 @@
 #include <kcompat/kref.h>
 
 #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;
This page took 0.022283 seconds and 4 git commands to generate.