函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:find_stack

函数原型:static inline struct stack_record *find_stack(struct stack_record *bucket, unsigned long *entries, int size, u32 hash)

返回类型:struct stack_record

参数:

类型参数名称
struct stack_record *bucket
unsigned long *entries
intsize
u32hash
183 found循环
184  如果 Hash in the hastable 恒等于hash Number of frames in the stack 恒等于size且非Use our own, non-instrumented version of memcmp().* We actually don't care about the order, just the equality.则返回:found
189  返回:NULL
调用者
名称描述
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