Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\core.c Create Date:2022-07-28 13:33:52
Last Modify:2022-05-20 07:50:19 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:perf_adjust_period

Proto:static void perf_adjust_period(struct perf_event *event, u64 nsec, u64 count, bool disable)

Type:void

Parameter:

TypeParameterName
struct perf_event *event
u64nsec
u64count
booldisable
3713  hwc = hw
3717  period = perf_calculate_period(event, nsec, count)
3719  delta = period - sample_period
3720  delta = (delta + 7) / 8
3722  sample_period = sample_period + delta
3724  If Not sample_period Then sample_period = 1
3727  sample_period = sample_period
3729  If local64_read( & period_left) > 8 * sample_period Then
3730  If disable Then stop(event, update the counter when stopping )
3733  local64_set( & period_left, 0)
3735  If disable Then start(event, load the counter when starting )
Caller
NameDescribe
perf_adjust_freq_unthr_contextmbine freq adjustment with unthrottling to avoid two passes over the* events. At the same time, make sure, having freq events does not change* the rate of unthrottling as that would introduce bias.
__perf_event_account_interrupt