~lttng/lttng-ust/lttng-ust

« back to all changes in this revision

Viewing changes to src/common/ringbuffer/frontend_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:
181
181
        int record_disabled;
182
182
        /* End of cache-hot 32 bytes cacheline */
183
183
 
184
 
        union v_atomic last_tsc;        /*
 
184
        union v_atomic last_timestamp;  /*
185
185
                                         * Last timestamp written in the buffer.
186
186
                                         */
187
187
 
251
251
                                                 * prior to record header alignment
252
252
                                                 * padding.
253
253
                                                 */
254
 
        uint64_t tsc;                           /* time-stamp counter value */
 
254
        uint64_t timestamp;                     /* time-stamp counter value */
255
255
        unsigned int rflags;                    /* reservation flags */
256
256
        struct lttng_ust_ring_buffer *buf;      /*
257
257
                                                 * buffer corresponding to processor id