函数逻辑报告 |
Source Code:kernel\events\core.c |
Create Date:2022-07-27 14:52:04 |
| Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Cross CPU call to install and enable a performance event* Very similar to remote_function() + event_function() but cannot assume that* things like ctx->is_active and cpuctx->task_ctx are set.
函数原型:static int __perf_install_in_context(void *info)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| void * | info |
| 2602 | cpuctx等于__get_cpu_context(ctx) |
| 2604 | bool reprogram = true |
| 2605 | ret等于0 |
| 2608 | 如果task则 |
| 2626 | WARN_ON_ONCE(reprogram && task_ctx && task_ctx != ctx) |
| 2627 | 否则如果task_ctx则 |
| 2643 | 如果reprogram则 |
| 2644 | ctx_sched_out(ctx, cpuctx, EVENT_TIME) |
| 2645 | add_event_to_ctx(event, ctx) |
| 2647 | 否则 |
| 2648 | add_event_to_ctx(event, ctx) |
| 2651 | unlock : |
| 2652 | perf_ctx_unlock(cpuctx, task_ctx) |
| 2654 | 返回:ret |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |