函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\core.c Create Date:2022-07-27 10:36:38
Last Modify:2022-05-22 13:40:38 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:This function gets called by the timer code, with HZ frequency.* We call it with interrupts disabled.

函数原型:void scheduler_tick(void)

返回类型:void

参数:

3593  cpu等于当前cpu ID()
3594  rq等于cpu_rq(cpu)
3595  curr等于当前任务
3598  sched_clock_tick()
3600  rq_lock(rq, & rf)
3602  更新rq运行时间
3603  task_tick(rq, curr, 0)
3604  calc_global_load_tick(rq)
3605  psi_task_tick(rq)
3607  rq_unlock(rq, & rf)
3609  perf_event_task_tick()
调用者
名称描述
update_process_timesCalled from the timer interrupt handler to charge one tick to the current* process. user_tick is 1 if the tick is user time, 0 for system.