Function report | 
Source Code:kernel\events\core.c | 
Create Date:2022-07-28 13:41:49 | 
| Last Modify:2022-05-20 07:50:19 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:perf_event_init_cpu
Proto:int perf_event_init_cpu(unsigned int cpu)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| unsigned int | cpu | 
| 12458 | perf_swevent_init_cpu(cpu) | 
| 12460 | mutex_lock( & pmus_lock) | 
| 12461 | pumask_set_cpu - set a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@dstp: the cpumask pointer | 
| 12463 | cpuctx = per_cpu_ptr(pmu_cpu_context, cpu) | 
| 12466 | mutex_lock( & Protect the list of events. Locking either mutex or lock* is sufficient to ensure the list doesn't change; to change* the list you need to lock both the mutex and the spinlock.) | 
| 12467 | online = 1 | 
| 12472 | Return 0 | 
| Name | Describe | 
|---|---|
| perf_event_init | 
| 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  |