Function report | 
Source Code:kernel\events\core.c | 
Create Date:2022-07-28 13:34:53 | 
| 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_read_value
Proto:static u64 __perf_event_read_value(struct perf_event *event, u64 *enabled, u64 *running)
Type:u64
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct perf_event * | event | |
| u64 * | enabled | |
| u64 * | running | 
| 4842 | total = 0 | 
| 4844 | enabled = 0 | 
| 4845 | running = 0 | 
| 4847 | mutex_lock( & child_mutex) | 
| 4849 | perf_event_read(event, false) | 
| 4850 | total += perf_event_count(event) | 
| 4852 | enabled += total_time_enabled + atomic64_read( & child_total_time_enabled) | 
| 4854 | running += total_time_running + atomic64_read( & child_total_time_running) | 
| 4858 | perf_event_read(child, false) | 
| 4859 | total += perf_event_count(child) | 
| 4860 | enabled += total_time_enabled | 
| 4861 | running += total_time_running | 
| 4865 | Return total | 
| Name | Describe | 
|---|---|
| perf_event_read_value | |
| perf_read_one | 
| 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  |