函数逻辑报告 |
Source Code:kernel\events\core.c |
Create Date:2022-07-27 14:51:06 |
Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Add an event from the lists for its context.* Must be called with ctx->mutex and ctx->lock held.
函数原型:static void list_add_event(struct perf_event *event, struct perf_event_context *ctx)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
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 | 如果group_leader恒等于event则 |
1681 | group_caps等于event_caps |
1685 | list_update_cgroup_event(event, ctx, true) |
1687 | 添加RCU保护项 |
1688 | nr_events自加 |
1689 | 如果inherit_stat则nr_stat自加 |
1692 | generation自加 |
名称 | 描述 |
---|---|
add_event_to_ctx |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |