~lttng/lttng-ust/lttng-ust

« back to all changes in this revision

Viewing changes to src/common/ringbuffer-clients/metadata-template.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:
93
93
}
94
94
 
95
95
static void client_buffer_begin(struct lttng_ust_ring_buffer *buf,
96
 
                uint64_t tsc __attribute__((unused)),
 
96
                uint64_t timestamp __attribute__((unused)),
97
97
                unsigned int subbuf_idx,
98
98
                struct lttng_ust_shm_handle *handle)
99
99
{
125
125
 * subbuffer. data_size is between 1 and subbuf_size.
126
126
 */
127
127
static void client_buffer_end(struct lttng_ust_ring_buffer *buf,
128
 
                uint64_t tsc  __attribute__((unused)),
 
128
                uint64_t timestamp  __attribute__((unused)),
129
129
                unsigned int subbuf_idx, unsigned long data_size,
130
130
                struct lttng_ust_shm_handle *handle,
131
131
                const struct lttng_ust_ring_buffer_ctx *ctx)
193
193
        .cb.buffer_create = client_buffer_create,
194
194
        .cb.buffer_finalize = client_buffer_finalize,
195
195
 
196
 
        .tsc_bits = 0,
 
196
        .timestamp_bits = 0,
197
197
        .alloc = RING_BUFFER_ALLOC_GLOBAL,
198
198
        .sync = RING_BUFFER_SYNC_GLOBAL,
199
199
        .mode = RING_BUFFER_MODE_TEMPLATE,