Function report |
Source Code:kernel\events\core.c |
Create Date:2022-07-28 13:32:26 |
Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Remove an event from the lists for its context.* Must be called with ctx->mutex and ctx->lock held.
Proto:static void list_del_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 |
1856 | WARN_ON_ONCE(ctx != ctx) |
1857 | lockdep_assert_held( & Protect the states of the events in the list,* nr_active, and the list:) |
1862 | If Not (attach_state & PERF_ATTACH_CONTEXT) Then Return |
1865 | attach_state &= ~PERF_ATTACH_CONTEXT |
1867 | list_update_cgroup_event(event, ctx, false) |
1869 | nr_events-- |
1870 | If inherit_stat Then nr_stat-- |
1875 | If group_leader == event Then Helper function to delete event from its groups. |
1885 | If state > PERF_EVENT_STATE_OFF Then perf_event_set_state(event, PERF_EVENT_STATE_OFF) |
1888 | generation++ |
Name | Describe |
---|---|
__perf_remove_from_context | Cross CPU call to remove a performance event* We disable the event on the hardware level first. After that we* remove it from the context list. |
perf_event_exit_event | |
perf_free_event |
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 |