Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\fgraph.c Create Date:2022-07-28 12:17:56
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 newly created task

Proto:void ftrace_graph_init_task(struct task_struct *t)

Type:void

Parameter:

TypeParameterName
struct task_struct *t
537  ret_stack = NULL
538  curr_ret_stack = -1
539  curr_ret_depth = -1
541  If ftrace_graph_active Then
544  ret_stack = kmalloc_array - allocate memory for an array.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc).
547  If Not ret_stack Then Return
549  graph_init_task(t, ret_stack)