mirror of
				https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
				synced 2025-10-31 18:36:37 +00:00 
			
		
		
		
	 14131f2f98
			
		
	
	
		14131f2f98
		
	
	
	
	
		
			
			Impact: implement new tracing timestamp APIs Add three 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 Make the ring-buffer use the local trace clock internally. Acked-by: Peter Zijlstra <peterz@infradead.org> Acked-by: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
		
			
				
	
	
		
			20 lines
		
	
	
		
			506 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			506 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #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>
 | |
| 
 | |
| extern u64 notrace trace_clock_local(void);
 | |
| extern u64 notrace trace_clock(void);
 | |
| extern u64 notrace trace_clock_global(void);
 | |
| 
 | |
| #endif /* _LINUX_TRACE_CLOCK_H */
 |