Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\unwind_orc.c Create Date:2022-07-28 08:50:50
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:orc_find

Proto:static struct orc_entry *orc_find(unsigned long ip)

Type:struct orc_entry

Parameter:

TypeParameterName
unsigned longip
145  If Not orc_init Then Return NULL
148  If ip == 0 Then Return 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  If ip >= LOOKUP_START_IP && ip < LOOKUP_STOP_IP Then
155  idx = (ip - LOOKUP_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  Return 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  Return NULL
173  Return __orc_find(__start_orc_unwind_ip + start, __start_orc_unwind + start, stop - start, ip)
178  If init_kernel_text(ip) Then Return __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  If orc Then Return orc
187  Return orc_ftrace_find(ip)
Caller
NameDescribe
unwind_next_frame