函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\core.c Create Date:2022-07-27 14:51:22
Last Modify:2022-05-20 07:50:19 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Remove an event from the lists for its context.* Must be called with ctx->mutex and ctx->lock held.

函数原型:static void list_del_event(struct perf_event *event, struct perf_event_context *ctx)

返回类型:void

参数:

类型参数名称
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  如果非attach_state按位与PERF_ATTACH_CONTEXT的值则返回
1865  attach_state与等于PERF_ATTACH_CONTEXT的反
1867  list_update_cgroup_event(event, ctx, false)
1869  nr_events自减
1870  如果inherit_statnr_stat自减
1873  删除不需要重新初始化的列表项
1875  如果group_leader恒等于eventHelper function to delete event from its groups.
1885  如果state大于PERF_EVENT_STATE_OFFperf_event_set_state(event, PERF_EVENT_STATE_OFF)
1888  generation自加
调用者
名称描述
__perf_remove_from_contextCross 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