clock override: introduce getter API for lttng tools
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 23 Mar 2021 15:58:52 +0000 (11:58 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 23 Mar 2021 19:27:29 +0000 (15:27 -0400)
commit33b563d60bb08300f2879a7c67f5f6483ccf3943
treedd4eefb6ce85f37ede6b8217095d0d4ba7b2ca93
parent459cbee453f65d58cd56dff4eb7f9457f1d9527f
clock override: introduce getter API for lttng tools

Currently, the lttng session daemon reimplements its own copy of
struct lttng_trace_clock, which is pretty bad as ABI go.

Implement getter functions for each of the clock callback instead. This
refactoring needs to be introduced with a matching commit to use the new
ABI in LTTng tools.

Move the implementation of the clock frequency, uuid, name and
description default callbacks (for monotonic clock) to lttng-ust.

This allow to hide the previously exposed "lttng_trace_clock" public
symbol. Rename this internal symbol to lttng_ust_trace_clock for prefix
consistency. Rename struct lttng_trace_clock to struct
lttng_ust_trace_clock for similar reasons.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I55825f0c0f5372a68aaaf06fb8dbd256cf248f2c
include/lttng/ust-clock.h
liblttng-ust/clock.h
liblttng-ust/lttng-clock.c
This page took 0.025221 seconds and 4 git commands to generate.