Function report |
Source Code:kernel\events\core.c |
Create Date:2022-07-28 13:32:11 |
| Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Add an event from the lists for its context.* Must be called with ctx->mutex and ctx->lock held.
Proto:static void list_add_event(struct perf_event *event, struct perf_event_context *ctx)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct perf_event * | event | |
| struct perf_event_context * | ctx |
| 1668 | lockdep_assert_held( & Protect the states of the events in the list,* nr_active, and the list:) |
| 1671 | attach_state |= PERF_ATTACH_CONTEXT |
| 1673 | tstamp = perf_event_time(event) |
| 1680 | If group_leader == event Then |
| 1681 | group_caps = event_caps |
| 1685 | list_update_cgroup_event(event, ctx, true) |
| 1688 | nr_events++ |
| 1689 | If inherit_stat Then nr_stat++ |
| 1692 | generation++ |
| Name | Describe |
|---|---|
| add_event_to_ctx |
| 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 |