~lttng/lttng-ust/lttng-ust

« back to all changes in this revision

Viewing changes to src/common/ringbuffer/ring_buffer_backend.c

  • Committer: Mathieu Desnoyers
  • Date: 2024-05-03 19:32:50 UTC
  • Revision ID: git-v1:373ea80ac0db5072e995140f1dbdbf4f0b1bdaad
Rename "tsc" to "timestamp"

Naming timestamps "TSC" or "tsc" is an historical artefact dating from
the implementation of libringbuffer, where the initial intent was to use
the x86 "rdtsc" instruction directly, which ended up not being what was
done in reality.

Rename uses of "TSC" and "tsc" to "timestamp" to clarify things and
don't require reviewers to be fluent in x86 instruction set.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I8e7e2ad9cd2d2427485fc6adbc340fccde14ca2f

Show diffs side-by-side

added added

removed removed

Lines of Context:
235
235
         * num_subbuf_order, buf_size_order, extra_reader_sb, num_subbuf,
236
236
         * priv, notifiers, config, cpumask and name.
237
237
         */
238
 
        chanb->start_tsc = config->cb.ring_buffer_clock_read(chan);
 
238
        chanb->start_timestamp = config->cb.ring_buffer_clock_read(chan);
239
239
}
240
240
 
241
241
/**
382
382
                if (ret)
383
383
                        goto free_bufs;
384
384
        }
385
 
        chanb->start_tsc = config->cb.ring_buffer_clock_read(chan);
 
385
        chanb->start_timestamp = config->cb.ring_buffer_clock_read(chan);
386
386
 
387
387
        return 0;
388
388