函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\core.c Create Date:2022-07-27 14:53:07
Last Modify:2022-05-20 07:50:19 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:perf_adjust_period

函数原型:static void perf_adjust_period(struct perf_event *event, u64 nsec, u64 count, bool disable)

返回类型:void

参数:

类型参数名称
struct perf_event *event
u64nsec
u64count
booldisable
3713  hwc等于hw
3717  period等于perf_calculate_period(event, nsec, count)
3719  delta等于periodsample_period
3720  delta等于delta加7的和除8
3722  sample_period等于sample_perioddelta
3724  如果非sample_periodsample_period等于1
3727  sample_period等于sample_period
3729  如果local64_read( & period_left)大于8乘sample_period
3730  如果disablestop(event, update the counter when stopping )
3733  local64_set( & period_left, 0)
3735  如果disablestart(event, load the counter when starting )
调用者
名称描述
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