函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:move_to_next_cpu

函数原型:static void move_to_next_cpu(void)

返回类型:void

参数:

275  current_mask等于save_cpumask
278  如果disable_migrate则返回
285  如果非pumask_equal - *src1p == *src2p*@src1p: the first input*@src2p: the second input则转到:disable
288  get_online_cpus()
289  pumask_and - *dstp = *src1p & *src2p*@dstp: the cpumask result*@src1p: the first input*@src2p: the second input* If *@dstp is empty, returns 0, else returns 1
290  next_cpu等于pumask_next - get the next cpu in a cpumask*@n: the cpu prior to the place to search (ie. return will be > @n)*@srcp: the cpumask pointer* Returns >= nr_cpu_ids if no further cpus set.
291  put_online_cpus()
293  如果next_cpu大于等于CPU数量next_cpu等于Uniprocessor. Assume all masks are "1".
296  如果next_cpu大于等于CPU数量则转到:disable
299  清空全部CPU信息
300  设置CPU信息
302  sched_setaffinity(0, current_mask)
303  返回
305  disable :
306  disable_migrate = true
调用者
名称描述
kthread_fnkthread_fn - The CPU time sampling/hardware latency detection kernel thread* Used to periodically sample the CPU TSC via a call to get_sample. We* disable interrupts, which does (intentionally) introduce latency since we