fix: use timespec64 on kernels that have it
[lttng-modules.git] / lttng-clock.h
CommitLineData
9f36eaed
MJ
1/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1)
2 *
2754583e
MD
3 * lttng-clock.h
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
15struct 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
23int lttng_clock_register_plugin(struct lttng_trace_clock *ltc,
24 struct module *mod);
25void lttng_clock_unregister_plugin(struct lttng_trace_clock *ltc,
26 struct module *mod);
27
28#endif /* _LTTNG_TRACE_CLOCK_H */
This page took 0.036132 seconds and 4 git commands to generate.