1 #ifndef LTTNG_UST_CLOCK_H
2 #define LTTNG_UST_CLOCK_H
5 * Copyright (C) 2014 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; version 2.1 of
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
26 * Set each callback for the trace clock override, and then enable the
27 * override. Those functions return negative error values on error, 0 on
32 * Set clock override read callback. This callback should return the
33 * current clock time (a 64-bit monotonic counter).
35 int lttng_ust_trace_clock_set_read64_cb(uint64_t (*read64
)(void));
38 * Set clock override frequency callback. This callback should return
39 * the frequency of the clock in cycles per second.
41 int lttng_ust_trace_clock_set_freq_cb(uint64_t (*freq
)(void));
44 * Set clock override unique identifier.
45 * LTTNG_UST_UUID_STR_LEN is the maximum length of uuid string. Includes
48 #define LTTNG_UST_UUID_STR_LEN 37
50 int lttng_ust_trace_clock_set_uuid_cb(int (*uuid
)(char *uuid
));
53 * Set clock override name.
55 int lttng_ust_trace_clock_set_name_cb(const char *(*name
)(void));
58 * Set clock override description.
60 int lttng_ust_trace_clock_set_description_cb(const char *(*description
)(void));
63 * Use the clock override rather than the default clock.
65 int lttng_ust_enable_trace_clock_override(void);
67 #endif /* LTTNG_UST_CLOCK_H */
This page took 0.029734 seconds and 4 git commands to generate.