函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:stack_trace_save - Save a stack trace into a storage array*@store: Pointer to storage array*@size: Size of the storage array*@skipnr: Number of entries to skip at the start of the stack trace* Return: Number of trace entries stored.

函数原型:unsigned int stack_trace_save(unsigned long *store, unsigned int size, unsigned int skipnr)

返回类型:unsigned int

参数:

类型参数名称
unsigned long *store
unsigned intsize
unsigned intskipnr
116  consume_entry等于stack_trace_consume_entry
117  struct stacktrace_cookie c = {store = store, size = size, skip = skipnr + 1, }
123  arch_stack_walk(consume_entry, & c, 当前进程, NULL)
124  返回:len
调用者
名称描述
backtrace_test_saved
__ftrace_trace_stack
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
event_hist_trigger
__save_stack_traceSave stack trace to the given array of MAX_TRACE size.
create_dummy_stack
save_stack
dma_entry_allocstruct dma_entry allocator* The next two functions implement the allocator for* struct dma_debug_entries.
save_stack