Function report |
Source Code:kernel\events\core.c |
Create Date:2022-07-28 13:41:36 |
| Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto: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)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct perf_event * | event | |
| struct task_struct * | parent | |
| struct perf_event_context * | parent_ctx | |
| struct task_struct * | child | |
| int | ctxn | |
| int * | inherited_all |
| 12227 | If Not inherit Then |
| 12228 | inherited_all = 0 |
| 12229 | Return 0 |
| 12232 | child_ctx = perf_event_ctxp[ctxn] |
| 12233 | If Not child_ctx Then |
| 12240 | child_ctx = alloc_perf_context(pmu, child) |
| 12244 | perf_event_ctxp[ctxn] = child_ctx |
| 12250 | If ret Then inherited_all = 0 |
| 12253 | Return ret |
| Name | Describe |
|---|---|
| perf_event_init_context | Initialize the perf_event context in task_struct |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |