函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\psi.c Create Date:2022-07-27 10:46:49
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:update_triggers

函数原型:static u64 update_triggers(struct psi_group *group, u64 now)

返回类型:u64

参数:

类型参数名称
struct psi_group *group
u64now
506  bool new_stall = false
507  total等于total[PSI_POLL]
517  如果polling_total[state]恒等于total[state]则继续下一循环
526  new_stall = true
529  growth等于PSI 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
530  如果growth小于threshold则继续下一循环
534  如果now小于last_event_timesize则继续下一循环
538  如果cmpxchg( & event, 0, 1)恒等于0则wake_up_interruptible( & event_wait)
540  last_event_time等于now
543  如果new_stall内存复制(polling_total, total, polling_total的长度)
547  返回:nowpoll_min_period
调用者
名称描述
psi_poll_work