blob: 4eb490237d4c20c0f65cae5581e2e07e8b8f2721 [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
15extern u64 notrace trace_clock_local(void);
16extern u64 notrace trace_clock(void);
17extern u64 notrace trace_clock_global(void);
Steven Rostedt62496872011-09-19 11:35:58 -040018extern u64 notrace trace_clock_counter(void);
Ingo Molnar14131f22009-02-26 18:47:11 +010019
20#endif /* _LINUX_TRACE_CLOCK_H */