X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Fringbuffer%2Ffrontend_api.h;h=a697ed2e0082c5a8adc0fe352cac543cdeb265c9;hb=f27b0770c5fe934bd90c4b20103c59f9e7f96a5b;hp=4cf7031b5a9e8fb1958265b2c897511b160bb06d;hpb=b5457df5fd74e033cbaa75307f9bbc12aff4ab8f;p=lttng-ust.git diff --git a/src/common/ringbuffer/frontend_api.h b/src/common/ringbuffer/frontend_api.h index 4cf7031b..a697ed2e 100644 --- a/src/common/ringbuffer/frontend_api.h +++ b/src/common/ringbuffer/frontend_api.h @@ -15,6 +15,7 @@ #include +#include "common/getcpu.h" #include "frontend.h" /** @@ -256,7 +257,7 @@ void lib_ring_buffer_commit(const struct lttng_ust_ring_buffer_config *config, /* * Must count record before incrementing the commit count. */ - subbuffer_count_record(config, ctx, &buf->backend, endidx, handle); + subbuffer_count_record(config, ctx); /* * Order all writes to buffer before the commit count update that will @@ -287,7 +288,7 @@ void lib_ring_buffer_commit(const struct lttng_ust_ring_buffer_config *config, commit_count = v_read(config, &cc_hot->cc); lib_ring_buffer_check_deliver(config, buf, chan, offset_end - 1, - commit_count, endidx, handle, ctx_private->tsc); + commit_count, endidx, handle, ctx); /* * Update used size at each commit. It's needed only for extracting * ring_buffer buffers from vmcore, after crash.