blob: 1d7ca2739272b750be29f8ba2c898ab8950cd542 [file] [log] [blame]
Ingo Molnar14131f22009-02-26 18:47:11 +01001#ifndef _LINUX_TRACE_CLOCK_H
2#define _LINUX_TRACE_CLOCK_H
3
4/*
5 * 3 trace clock variants, with differing scalability/precision
6 * tradeoffs:
7 *
8 * - local: CPU-local trace clock
9 * - medium: scalable global clock with some jitter
10 * - global: globally monotonic, serialized clock
11 */
12#include <linux/compiler.h>
13#include <linux/types.h>
14
David Sharp8cbd9cc2012-11-13 12:18:21 -080015#include <asm/trace_clock.h>
16
Ingo Molnar14131f22009-02-26 18:47:11 +010017extern u64 notrace trace_clock_local(void);
18extern u64 notrace trace_clock(void);
Steven Rostedt (Red Hat)8aacf012013-03-14 13:13:45 -040019extern u64 notrace trace_clock_jiffies(void);
Ingo Molnar14131f22009-02-26 18:47:11 +010020extern u64 notrace trace_clock_global(void);
Steven Rostedt62496872011-09-19 11:35:58 -040021extern u64 notrace trace_clock_counter(void);
Ingo Molnar14131f22009-02-26 18:47:11 +010022
23#endif /* _LINUX_TRACE_CLOCK_H */