Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\fgraph.c Create Date:2022-07-28 12:17:55
Last Modify:2020-03-17 20:08:56 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Allocate a return stack for the idle task. May be the first* time through, or it may be done by CPU hotplug online.

Proto:void ftrace_graph_init_idle_task(struct task_struct *t, int cpu)

Type:void

Parameter:

TypeParameterName
struct task_struct *t
intcpu
507  curr_ret_stack = -1
508  curr_ret_depth = -1
513  If ret_stack Then WARN_ON(ret_stack != per_cpu(idle_ret_stack, cpu))
516  If ftrace_graph_active Then
519  ret_stack = per_cpu(idle_ret_stack, cpu)
520  If Not ret_stack Then
525  If Not ret_stack Then Return
529  graph_init_task(t, ret_stack)
Caller
NameDescribe
start_graph_tracingAllocate a return stack for each task