函数逻辑报告 |
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 |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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_stat则nr_stat自减 |
1873 | 删除不需要重新初始化的列表项 |
1888 | generation自加 |
名称 | 描述 |
---|---|
__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 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |