Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _LINUX_TRACE_CLOCK_H
0003 #define _LINUX_TRACE_CLOCK_H
0004 
0005 /*
0006  * 3 trace clock variants, with differing scalability/precision
0007  * tradeoffs:
0008  *
0009  *  -   local: CPU-local trace clock
0010  *  -  medium: scalable global clock with some jitter
0011  *  -  global: globally monotonic, serialized clock
0012  */
0013 #include <linux/compiler.h>
0014 #include <linux/types.h>
0015 
0016 #include <asm/trace_clock.h>
0017 
0018 extern u64 notrace trace_clock_local(void);
0019 extern u64 notrace trace_clock(void);
0020 extern u64 notrace trace_clock_jiffies(void);
0021 extern u64 notrace trace_clock_global(void);
0022 extern u64 notrace trace_clock_counter(void);
0023 
0024 #endif /* _LINUX_TRACE_CLOCK_H */