Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / include / linux / trace_clock.h
blob00e8f98c940f62f3866d4d7743d761c78b4d1e07
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_TRACE_CLOCK_H
3 #define _LINUX_TRACE_CLOCK_H
5 /*
6 * 3 trace clock variants, with differing scalability/precision
7 * tradeoffs:
9 * - local: CPU-local trace clock
10 * - medium: scalable global clock with some jitter
11 * - global: globally monotonic, serialized clock
13 #include <linux/compiler.h>
14 #include <linux/types.h>
16 #include <asm/trace_clock.h>
18 extern u64 notrace trace_clock_local(void);
19 extern u64 notrace trace_clock(void);
20 extern u64 notrace trace_clock_jiffies(void);
21 extern u64 notrace trace_clock_global(void);
22 extern u64 notrace trace_clock_counter(void);
24 #endif /* _LINUX_TRACE_CLOCK_H */