Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\psi.c Create Date:2022-07-28 09:46:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:record_times

Proto:static void record_times(struct psi_group_cpu *groupc, int cpu, bool memstall_tick)

Type:void

Parameter:

TypeParameterName
struct psi_group_cpu *groupc
intcpu
boolmemstall_tick
632  now = cpu_clock(cpu)
633  delta = now - state_start
634  state_start = now
636  If state_mask & 1 << PSI_IO_SOME Then
637  times[PSI_IO_SOME] += delta
638  If state_mask & 1 << PSI_IO_FULL Then times[PSI_IO_FULL] += delta
642  If state_mask & 1 << PSI_MEM_SOME Then
643  times[PSI_MEM_SOME] += delta
644  If state_mask & 1 << PSI_MEM_FULL Then times[PSI_MEM_FULL] += delta
646  Else if memstall_tick Then
665  If state_mask & 1 << PSI_CPU_SOME Then times[PSI_CPU_SOME] += delta
668  If state_mask & 1 << PSI_NONIDLE Then times[PSI_NONIDLE] += delta
Caller
NameDescribe
psi_group_change
psi_memstall_tick