函数逻辑报告 |
Source Code:kernel\events\core.c |
Create Date:2022-07-27 14:59:11 |
Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:perf_swevent_init
函数原型:static int perf_swevent_init(struct perf_event *event)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct perf_event * | event |
8848 | 如果type不等于PERF_TYPE_SOFTWARE则返回:负ENOENT |
8854 | 如果has_branch_stack(event)则返回:负EOPNOTSUPP |
8858 | 当:event_id恒等于PERF_COUNT_SW_CPU_CLOCK |
8859 | 当:event_id恒等于PERF_COUNT_SW_TASK_CLOCK |
8860 | 返回:负ENOENT |
8862 | 默认 |
8863 | 退出 |
8866 | 如果event_id大于等于PERF_COUNT_SW_MAX则返回:负ENOENT |
8869 | 如果非parent则 |
8872 | err等于swevent_hlist_get() |
8876 | static_key_slow_inc( & perf_swevent_enabled[event_id]) |
8877 | destroy等于sw_perf_event_destroy |
8880 | 返回:0 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |