X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=lib%2Fringbuffer%2Ffrontend_types.h;fp=lib%2Fringbuffer%2Ffrontend_types.h;h=ac3fa90273545312cd6f93bf5100ae48ca81afd8;hb=a1817dcb28265d0f8db10c6bbe98fe8db2c53a8a;hp=50b33ac11c85f70856b8dc4f38810df02d346fe9;hpb=2230bf699820d6cc70492353600fcca409ea366c;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)