X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=include%2Fust%2Fustconsumer.h;h=8c534888bf41082fd0400e12ff608ddfdfcac3e3;hb=9edd34bd25f52dd39b354a84f02697254121aefd;hp=e07b75e84d137b5731df6ea1b15c35737c474239;hpb=9dc7b7ff797a5cbb1e9ffd59e053a04562f306c4;p=ust.git diff --git a/include/ust/ustconsumer.h b/include/ust/ustconsumer.h index e07b75e..8c53488 100644 --- a/include/ust/ustconsumer.h +++ b/include/ust/ustconsumer.h @@ -28,7 +28,7 @@ #include #include -#include +#include #include #define USTCONSUMER_DEFAULT_TRACE_PATH "/tmp/usttrace" @@ -57,13 +57,17 @@ struct buffer_info { int n_subbufs; /* size of each subbuffer */ int subbuf_size; + /* subbuf size count order */ + int subbuf_size_order; + /* alloc size of all subbuf */ + int alloc_size; /* the buffer information struct */ void *bufstruct_mem; long consumed_old; - s64 pidunique; + int64_t pidunique; void *user_data; }; @@ -85,6 +89,7 @@ struct ustconsumer_instance { char *sock_path; pthread_mutex_t mutex; int active_buffers; + int active_threads; }; /**