函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_stack.c Create Date:2022-07-27 13:18:19
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:print_max_stack

函数原型:static void print_max_stack(void)

返回类型:void

参数:

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 i小于stack_trace_nr_entries循环
47  如果i加1恒等于stack_trace_nr_entriessize等于stack_trace_index[i]
49  否则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])
调用者
名称描述
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