2009-02-26 20:47:11 +03:00
|
|
|
#ifndef _LINUX_TRACE_CLOCK_H
|
|
|
|
#define _LINUX_TRACE_CLOCK_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* 3 trace clock variants, with differing scalability/precision
|
|
|
|
* tradeoffs:
|
|
|
|
*
|
|
|
|
* - local: CPU-local trace clock
|
|
|
|
* - medium: scalable global clock with some jitter
|
|
|
|
* - global: globally monotonic, serialized clock
|
|
|
|
*/
|
|
|
|
#include <linux/compiler.h>
|
|
|
|
#include <linux/types.h>
|
|
|
|
|
2012-11-14 00:18:21 +04:00
|
|
|
#include <asm/trace_clock.h>
|
|
|
|
|
2009-02-26 20:47:11 +03:00
|
|
|
extern u64 notrace trace_clock_local(void);
|
|
|
|
extern u64 notrace trace_clock(void);
|
2013-03-14 21:13:45 +04:00
|
|
|
extern u64 notrace trace_clock_jiffies(void);
|
2009-02-26 20:47:11 +03:00
|
|
|
extern u64 notrace trace_clock_global(void);
|
2011-09-19 19:35:58 +04:00
|
|
|
extern u64 notrace trace_clock_counter(void);
|
2009-02-26 20:47:11 +03:00
|
|
|
|
|
|
|
#endif /* _LINUX_TRACE_CLOCK_H */
|