Function report |
Source Code:arch\x86\kernel\tsc.c |
Create Date:2022-07-28 07:46:09 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Accelerators for sched_clock()* convert from cycles(64bits) => nanoseconds (64bits)* basic equation:* ns = cycles / (freq / ns_per_sec)* ns = cycles * (ns_per_sec / freq)* ns = cycles * (10^9 / (cpu_khz * 10^3))* ns = cycles * (10^6 / cpu_khz)
Proto:static __always_inline unsigned long long cycles_2_ns(unsigned long long cyc)
Type:unsigned long long
Parameter:
Type | Parameter | Name |
---|---|---|
unsigned long long | cyc |
113 | cyc2ns_read_begin( & data) |
115 | ns = cyc2ns_offset |
116 | ns += mul_u64_u32_shr(cyc, cyc2ns_mul, cyc2ns_shift) |
118 | cyc2ns_read_end() |
120 | Return ns |
Name | Describe |
---|---|
__set_cyc2ns_scale | |
native_sched_clock | Scheduler clock - returns current time in nanosec units. |
native_sched_clock_from_tsc | Generate a sched_clock if you already have a TSC value. |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |