X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lib%2Fringbuffer%2Ffrontend_types.h;h=ac3fa90273545312cd6f93bf5100ae48ca81afd8;hb=266cef247ceb5d1b4d266a987b8bfcc53d8965ca;hp=50b33ac11c85f70856b8dc4f38810df02d346fe9;hpb=b75b8603a9986857181269910005bea1285bee0a;p=lttng-modules.git diff --git a/lib/ringbuffer/frontend_types.h b/lib/ringbuffer/frontend_types.h index 50b33ac1..ac3fa902 100644 --- a/lib/ringbuffer/frontend_types.h +++ b/lib/ringbuffer/frontend_types.h @@ -137,6 +137,20 @@ struct lib_ring_buffer { struct commit_counters_cold *commit_cold; /* Commit count per sub-buffer */ + u64 *ts_end; /* + * timestamp_end per sub-buffer. + * Time is sampled by the + * switch_*_end() callbacks which + * are the last space reservation + * performed in the sub-buffer + * before it can be fully + * committed and delivered. This + * time value is then read by + * the deliver callback, + * performed by the last commit + * before the buffer becomes + * readable. + */ atomic_long_t active_readers; /* * Active readers count * standard atomic access (shared)