Function report | 
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 activity | Download SCCT | Chinese | 
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() | 
| 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 | 
| 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 | 
| Name | Describe | 
|---|---|
| kthread_fn | kthread_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 | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |