Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Ingo Molnar | 14131f2 | 2009-02-26 18:47:11 +0100 | [diff] [blame] | 2 | #ifndef _LINUX_TRACE_CLOCK_H |
| 3 | #define _LINUX_TRACE_CLOCK_H |
| 4 | |
| 5 | /* |
| 6 | * 3 trace clock variants, with differing scalability/precision |
| 7 | * tradeoffs: |
| 8 | * |
| 9 | * - local: CPU-local trace clock |
| 10 | * - medium: scalable global clock with some jitter |
| 11 | * - global: globally monotonic, serialized clock |
| 12 | */ |
| 13 | #include <linux/compiler.h> |
| 14 | #include <linux/types.h> |
| 15 | |
David Sharp | 8cbd9cc | 2012-11-13 12:18:21 -0800 | [diff] [blame] | 16 | #include <asm/trace_clock.h> |
| 17 | |
Ingo Molnar | 14131f2 | 2009-02-26 18:47:11 +0100 | [diff] [blame] | 18 | extern u64 notrace trace_clock_local(void); |
| 19 | extern u64 notrace trace_clock(void); |
Steven Rostedt (Red Hat) | 8aacf01 | 2013-03-14 13:13:45 -0400 | [diff] [blame] | 20 | extern u64 notrace trace_clock_jiffies(void); |
Ingo Molnar | 14131f2 | 2009-02-26 18:47:11 +0100 | [diff] [blame] | 21 | extern u64 notrace trace_clock_global(void); |
Steven Rostedt | 6249687 | 2011-09-19 11:35:58 -0400 | [diff] [blame] | 22 | extern u64 notrace trace_clock_counter(void); |
Ingo Molnar | 14131f2 | 2009-02-26 18:47:11 +0100 | [diff] [blame] | 23 | |
| 24 | #endif /* _LINUX_TRACE_CLOCK_H */ |