函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\core.c Create Date:2022-07-27 15:02:19
Last Modify:2022-05-20 07:50:19 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:进程性能调优

函数原型:int perf_event_init_task(struct task_struct *child)

返回类型:int

参数:

类型参数名称
struct task_struct *child
12361  memset(perf_event_ctxp, 0, perf_event_ctxp的长度)
12362  mutex_init - initialize the mutex*@mutex: the mutex to be initialized* Initialize the mutex to unlocked state.* It is not allowed to initialize an already locked mutex.( & perf_event_mutex)
12363  初始化链表头
12366  ret等于Initialize the perf_event context in task_struct
12367  如果ret
12368  Free a context as created by inheritance by perf_event_init_task() below,* used by fork() in case of fail.* Even though the task has never lived, the context and events have been* exposed through the child_list, so we must take care tearing it all down.
12369  返回:ret
12373  返回:0