Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\math\div64.c Create Date:2022-07-28 06:43:16
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:div64_u64 - unsigned 64bit divide with 64bit divisor*@dividend: 64bit dividend*@divisor: 64bit divisor* This implementation is a modified version of the algorithm proposed* by the book 'Hacker's Delight'. The original source and full proof

Proto:u64 div64_u64(u64 dividend, u64 divisor)

Type:u64

Parameter:

TypeParameterName
u64dividend
u64divisor
144  high = divisor >> 32
147  If high == 0 Then
148  quot = div_u64 - unsigned 64bit divide with 32bit divisor*@dividend: unsigned 64bit dividend*@divisor: unsigned 32bit divisor* This is the most common 64bit divide and should be used if possible,* as many 32bit archs can optimize this variant better than a full
149  Else
150  n = ls - find last set bit in word*@x: the word to search* This is defined in a similar way as the libc and compiler builtin* ffs, but returns the position of the most significant set bit.* fls(value) returns 0 if value is 0 or the position of the last
151  quot = div_u64 - unsigned 64bit divide with 32bit divisor*@dividend: unsigned 64bit dividend*@divisor: unsigned 32bit divisor* This is the most common 64bit divide and should be used if possible,* as many 32bit archs can optimize this variant better than a full
153  If quot != 0 Then quot--
155  If dividend - quot * divisor >= divisor Then quot++
159  Return quot
Caller
NameDescribe
div64_s64div64_s64 - signed 64bit divide with 64bit divisor*@dividend: 64bit dividend*@divisor: 64bit divisor
aperfmperf_snapshot_khzaperfmperf_snapshot_khz()* On the current CPU, snapshot APERF, MPERF, and jiffies* unless we already did it within 10ms* calculate kHz, save snapshot
to_ratio
proc_sched_show_task
window_updatePSI growth tracking window update and growth calculation routine.* This approximates a sliding tracking window by interpolating* partially elapsed windows using historical growth data from the* previous intervals
em_create_pd
timekeeping_adjustAdjust the timekeeper's multiplier to the correct frequency* and also to reduce the accumulated error value.
___bpf_prog_run__bpf_prog_run - run eBPF program on a given context*@regs: is the array of MAX_BPF_EXT_REG eBPF pseudo-registers*@insn: is the array of eBPF instructions*@stack: is the eBPF storage stack* Decode and execute eBPF instructions.
perf_calculate_period
perf_swevent_set_periodWe directly increment event->count and keep a second value in* is kept in the range [-sample_period, 0] so that we can use the* sign as trigger.
get_scan_countDetermine how aggressively the anon and file LRU lists should be* scanned
latency_sum_ok
iolat_update_total_lat_avg
check_scale_changeCheck our parent and see if the scale cookie has changed.
iolatency_pd_stat
ioc_autop_idx
ioc_refresh_params
ioc_lat_stat
ioc_timer_fn
add_latency_sample