函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:static inline void prefetch_curr_exec_start(struct task_struct *p)

返回类型:void

参数:

类型参数名称
struct task_struct *p
3537  struct sched_entity * curr = ( & ( & ( * ({
3537  task_cpu(p)
3537  ({
3537  循环
3537  const void * __vpp_verify = NULL
3537  当0循环
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.
调用者
名称描述
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.