Function report |
Source Code:kernel\time\timekeeping.c |
Create Date:2022-07-28 10:42:17 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:adjust_historical_crosststamp - adjust crosstimestamp previous to current interval*@history: Snapshot representing start of history*@partial_history_cycles: Cycle offset into history (fractional part)*@total_history_cycles: Total history length in
Proto:static int adjust_historical_crosststamp(struct system_time_snapshot *history, u64 partial_history_cycles, u64 total_history_cycles, bool discontinuity, struct system_device_crosststamp *ts)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct system_time_snapshot * | history | |
u64 | partial_history_cycles | |
u64 | total_history_cycles | |
bool | discontinuity | |
struct system_device_crosststamp * | ts |
1038 | tk = timekeeper |
1043 | If total_history_cycles == 0 || partial_history_cycles == 0 Then Return 0 |
1047 | interp_forward = partial_history_cycles > total_history_cycles / 2 |
1048 | partial_history_cycles = If interp_forward Then total_history_cycles - partial_history_cycles Else partial_history_cycles |
1070 | If discontinuity Then |
1071 | corr_real = mul_u64_u32_div(corr_raw, mult, mult) |
1073 | Else |
1083 | If interp_forward Then |
1086 | Else |
1091 | Return 0 |
Name | Describe |
---|---|
get_device_system_crosststamp | get_device_system_crosststamp - Synchronously capture system/device timestamp*@get_time_fn: Callback to get simultaneous device time and* system counter from the device driver*@ctx: Context passed to get_time_fn()*@history_begin: Historical reference |
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 |