Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:find_stack

Proto:static inline struct stack_record *find_stack(struct stack_record *bucket, unsigned long *entries, int size, u32 hash)

Type:struct stack_record

Parameter:

TypeParameterName
struct stack_record *bucket
unsigned long *entries
intsize
u32hash
183  When found cycle
184  If Hash in the hastable == hash && Number of frames in the stack == size && Not Use our own, non-instrumented version of memcmp().* We actually don't care about the order, just the equality. Then Return found
189  Return NULL
Caller
NameDescribe
stack_depot_savestack_depot_save - Save a stack trace from an array*@entries: Pointer to storage array*@nr_entries: Size of the storage array*@alloc_flags: Allocation gfp flags* Return: The handle of the stack struct stored in depot