Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_hwlat.c Create Date:2022-07-28 12:10:50
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:move_to_next_cpu

Proto:static void move_to_next_cpu(void)

Type:void

Parameter:Nothing

275  current_mask = save_cpumask
278  If disable_migrate Then Return
285  If Not pumask_equal - *src1p == *src2p*@src1p: the first input*@src2p: the second input Then Go to 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  If next_cpu >= Setup number of possible processor ids Then next_cpu = Uniprocessor. Assume all masks are "1".
296  If next_cpu >= Setup number of possible processor ids Then Go to disable
299  pumask_clear - clear all cpus (< nr_cpu_ids) in a cpumask*@dstp: the cpumask pointer
300  pumask_set_cpu - set a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@dstp: the cpumask pointer
302  sched_setaffinity(0, current_mask)
303  Return
305  disable :
306  disable_migrate = true
Caller
NameDescribe
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