Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_stack.c Create Date:2022-07-28 12:11:28
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:print_max_stack

Proto:static void print_max_stack(void)

Type:void

Parameter:Nothing

42  These can be used to print at the various log levels.* All of these will print unconditionally, although note that pr_debug()* and other debug macros are compiled out unless either DEBUG is defined* or CONFIG_DYNAMIC_DEBUG is set.(" Depth Size Location (%d entries)\n ----- ---- --------\n", stack_trace_nr_entries)
46  When i < stack_trace_nr_entries cycle
47  If i + 1 == stack_trace_nr_entries Then size = stack_trace_index[i]
49  Else size = stack_trace_index[i] - stack_trace_index[i + 1]
52  These can be used to print at the various log levels.* All of these will print unconditionally, although note that pr_debug()* and other debug macros are compiled out unless either DEBUG is defined* or CONFIG_DYNAMIC_DEBUG is set.("%3ld) %8d %5d %pS\n", i, stack_trace_index[i], size, (void * )stack_dump_trace[i])
Caller
NameDescribe
check_stackThe stack tracer looks for a maximum stack at each call from a function. It* registers a callback from ftrace, and in that callback it examines the stack* size. It determines the stack size from the variable passed in, which is the