~lttng/lttng-ust/lttng-ust

« back to all changes in this revision

Viewing changes to src/common/ringbuffer/backend_types.h

  • 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:
87
87
        unsigned int buf_size_order;    /* Order of buffer size */
88
88
        unsigned int extra_reader_sb:1; /* has extra reader subbuffer ? */
89
89
        unsigned long num_subbuf;       /* Number of sub-buffers for writer */
90
 
        uint64_t start_tsc;             /* Channel creation TSC value */
 
90
        uint64_t start_timestamp;       /* Channel creation timestamp value */
91
91
        DECLARE_SHMP(void *, priv_data);/* Client-specific information */
92
92
        struct lttng_ust_ring_buffer_config config; /* Ring buffer configuration */
93
93
        char name[NAME_MAX];            /* Channel name */