函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:orc_find

函数原型:static struct orc_entry *orc_find(unsigned long ip)

返回类型:struct orc_entry

参数:

类型参数名称
unsigned longip
145  如果非orc_init则返回:NULL
148  如果ip恒等于0则返回:If we crash with IP==0, the last successfully executed instruction* was probably an indirect function call with a NULL function pointer,* and we don't have unwind information for NULL
152  如果ip大于等于LOOKUP_START_IPip小于LOOKUP_STOP_IP
155  idx等于ipLOOKUP_START_IP的差除LOOKUP_BLOCK_SIZE
158  orc_warn("WARNING: bad lookup idx: idx=%u num=%u ip=%pB\n", idx, lookup_num_blocks, (void * )ip)
160  返回:NULL
163  start等于orc_lookup[idx]
164  stop等于orc_lookup[idx + 1]加1
168  orc_warn("WARNING: bad lookup value: idx=%u num=%u start=%u stop=%u ip=%pB\n", idx, lookup_num_blocks, start, stop, (void * )ip)
170  返回:NULL
173  返回:__orc_find(__start_orc_unwind_ip + start, __start_orc_unwind + start, stop - start, ip)
178  如果init_kernel_text(ip)则返回:__orc_find(__start_orc_unwind_ip, __start_orc_unwind, __stop_orc_unwind_ip - __start_orc_unwind_ip, ip)
183  orc等于orc_module_find(ip)
184  如果orc则返回:orc
187  返回:orc_ftrace_find(ip)
调用者
名称描述
unwind_next_frame