Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:unsigned int stack_trace_save(unsigned long *store, unsigned int size, unsigned int skipnr)

Type:unsigned int

Parameter:

TypeParameterName
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, current process, NULL)
124  Return len
Caller
NameDescribe
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