函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\fgraph.c Create Date:2022-07-27 13:24:51
Last Modify:2020-03-17 20:08:56 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Allocate a return stack for each task

函数原型:static int start_graph_tracing(void)

返回类型:int

参数:

570  ret_stack_list等于分配数组内存
574  如果非ret_stack_list则返回:负ENOMEM
578  遍历在线CPU(cpu)
579  如果非ret_stackAllocate a return stack for the idle task. May be the first* time through, or it may be done by CPU hotplug online.
583  循环
584  ret等于Try to assign a return stack array on FTRACE_RETSTACK_ALLOC_SIZE tasks.
585 ret恒等于负EAGAIN循环
587  如果非ret
588  ret等于Tracepoint for task switches, performed by the scheduler:
589  如果ret打印信息("ftrace_graph: Couldn't activate tracepoint probe to kernel_sched_switch\n")
594  kfree(ret_stack_list)
595  返回:ret
调用者
名称描述
register_ftrace_graph