函数逻辑报告 |
Source Code:kernel\events\core.c |
Create Date:2022-07-27 15:02:13 |
| Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Creates the child task context and tries to inherit the event-group.* Clears @inherited_all on !attr.inherited or error. Note that we'll leave* inherited_all set when we 'fail' to inherit an orphaned event; this is
函数原型:static int inherit_task_group(struct perf_event *event, struct task_struct *parent, struct perf_event_context *parent_ctx, struct task_struct *child, int ctxn, int *inherited_all)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct perf_event * | event | |
| struct task_struct * | parent | |
| struct perf_event_context * | parent_ctx | |
| struct task_struct * | child | |
| int | ctxn | |
| int * | inherited_all |
| 12227 | 如果非inherit则 |
| 12228 | inherited_all等于0 |
| 12229 | 返回:0 |
| 12232 | child_ctx等于perf_event_ctxp[ctxn] |
| 12233 | 如果非child_ctx则 |
| 12240 | child_ctx等于alloc_perf_context(pmu, child) |
| 12244 | perf_event_ctxp[ctxn]等于child_ctx |
| 12250 | 如果ret则inherited_all等于0 |
| 12253 | 返回:ret |
| 名称 | 描述 |
|---|---|
| perf_event_init_context | Initialize the perf_event context in task_struct |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |