Function report |
Source Code:kernel\events\core.c |
Create Date:2022-07-28 13:34:18 |
| 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
Proto:static int perf_event_read(struct perf_event *event, bool group)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct perf_event * | event | |
| bool | group |
| 4135 | ret = 0 |
| 4141 | again : |
| 4142 | If state == PERF_EVENT_STATE_ACTIVE Then |
| 4151 | smp_rmb() |
| 4154 | If event_cpu >= Setup number of possible processor ids Then Return 0 |
| 4164 | event_cpu = __perf_event_read_cpu(event, event_cpu) |
| 4177 | preempt_enable() |
| 4180 | Else if state == PERF_EVENT_STATE_INACTIVE Then |
| 4184 | raw_spin_lock_irqsave( & Protect the states of the events in the list,* nr_active, and the list:, flags) |
| 4186 | If state != PERF_EVENT_STATE_INACTIVE Then |
| 4187 | raw_spin_unlock_irqrestore( & Protect the states of the events in the list,* nr_active, and the list:, flags) |
| 4188 | Go to again |
| 4195 | If is_active & EVENT_TIME Then |
| 4196 | update_context_time(ctx) |
| 4200 | perf_event_update_time(event) |
| 4201 | If group Then perf_event_update_sibling_time(event) |
| 4206 | Return ret |
| Name | Describe |
|---|---|
| __perf_event_read_value | |
| __perf_read_group_add | |
| _perf_event_reset |
| 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 |