#define NR_CLOCK_OFFSET_SAMPLES 10
+namespace {
struct offset_sample {
- int64_t offset; /* correlation offset */
- uint64_t measure_delta; /* lower is better */
+ /* correlation offset */
+ int64_t offset;
+ /* lower is better */
+ uint64_t measure_delta;
};
+} /* namespace */
static
int _lttng_field_statedump(struct ust_registry_session *session,
/*
* Should be called with session registry mutex held.
+ *
+ * RCU read lock must be held by the caller.
*/
int ust_metadata_channel_statedump(struct ust_registry_session *session,
struct ust_registry_channel *chan)
{
int ret;
+ ASSERT_RCU_READ_LOCKED();
+
/* Don't dump metadata events */
if (chan->chan_id == -1U)
return 0;