blob: 00e8f98c940f62f3866d4d7743d761c78b4d1e07 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Ingo Molnar14131f22009-02-26 18:47:11 +01002#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 Sharp8cbd9cc2012-11-13 12:18:21 -080016#include <asm/trace_clock.h>
17
Ingo Molnar14131f22009-02-26 18:47:11 +010018extern u64 notrace trace_clock_local(void);
19extern u64 notrace trace_clock(void);
Steven Rostedt (Red Hat)8aacf012013-03-14 13:13:45 -040020extern u64 notrace trace_clock_jiffies(void);
Ingo Molnar14131f22009-02-26 18:47:11 +010021extern u64 notrace trace_clock_global(void);
Steven Rostedt62496872011-09-19 11:35:58 -040022extern u64 notrace trace_clock_counter(void);
Ingo Molnar14131f22009-02-26 18:47:11 +010023
24#endif /* _LINUX_TRACE_CLOCK_H */