Commit | Line | Data |
---|---|---|
b7cdc182 | 1 | /* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only) |
9f36eaed | 2 | * |
2df37e95 | 3 | * lttng/clock.h |
2754583e MD |
4 | * |
5 | * Copyright (C) 2014 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | |
2754583e MD |
6 | */ |
7 | ||
9f36eaed MJ |
8 | #ifndef _LTTNG_CLOCK_H |
9 | #define _LTTNG_CLOCK_H | |
10 | ||
2754583e MD |
11 | #include <linux/module.h> |
12 | ||
13 | #define LTTNG_MODULES_UUID_STR_LEN 37 | |
14 | ||
15 | struct lttng_trace_clock { | |
16 | u64 (*read64)(void); | |
17 | u64 (*freq)(void); | |
18 | int (*uuid)(char *uuid); | |
19 | const char *(*name)(void); | |
20 | const char *(*description)(void); | |
21 | }; | |
22 | ||
23 | int lttng_clock_register_plugin(struct lttng_trace_clock *ltc, | |
24 | struct module *mod); | |
25 | void lttng_clock_unregister_plugin(struct lttng_trace_clock *ltc, | |
26 | struct module *mod); | |
27 | ||
28 | #endif /* _LTTNG_TRACE_CLOCK_H */ |