Add script to automate the syscall extraction process
[lttng-modules.git] / lttng-clock.h
1 /* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1)
2 *
3 * lttng-clock.h
4 *
5 * Copyright (C) 2014 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
6 */
7
8 #ifndef _LTTNG_CLOCK_H
9 #define _LTTNG_CLOCK_H
10
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 */
This page took 0.029382 seconds and 4 git commands to generate.