Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\core.c Create Date:2022-07-28 09:36:00
Last Modify:2022-05-22 13:40:38 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:The function fair_sched_class.update_curr accesses the struct curr* and its field curr->exec_start; when called from task_sched_runtime(),* we observe a high rate of cache misses in practice.* Prefetching this data results in improved performance.

Proto:static inline void prefetch_curr_exec_start(struct task_struct *p)

Type:void

Parameter:

TypeParameterName
struct task_struct *p
3537  struct sched_entity * curr = ( & ( & ( * ({
3537  task_cpu(p)
3537  ({
3537  Do
3537  const void * __vpp_verify = NULL
3537  When 0 cycle
3537  &runqueues
3537  })
3537  })))->cfs)->curr
3539  Prefetch instructions for Pentium III (+) and AMD Athlon (+)* It's not worth to care about 3dnow prefetches for the K6* because they are microcoded there and very slow.
3540  Prefetch instructions for Pentium III (+) and AMD Athlon (+)* It's not worth to care about 3dnow prefetches for the K6* because they are microcoded there and very slow.
Caller
NameDescribe
task_sched_runtimeReturn accounted runtime for the task.* In case the task is currently running, return the runtime plus current's* pending runtime that have not been accounted yet.