函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_uprobe.c Create Date:2022-07-27 13:55:22
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Note that we don't verify it, since the code does not come from user space

函数原型:static int process_fetch_insn(struct fetch_insn *code, struct pt_regs *regs, void *dest, void *base)

返回类型:int

参数:

类型参数名称
struct fetch_insn *code
struct pt_regs *regs
void *dest
void *base
227  :op恒等于 Register : .param = offset
228  val等于gs_get_register() - get register value from its offset*@regs: pt_regs from which register value is gotten.*@offset: offset number of the register.* regs_get_register returns the value of a register. The @offset is the
229  退出
230  :op恒等于 Stack : .param = index
231  val等于get_user_stack_nth(regs, param)
232  退出
233  :op恒等于 Stack pointer
234  val等于user_stack_pointer(regs)
235  退出
236  :op恒等于 Return value
237  val等于regs_return_value(regs)
238  退出
239  :op恒等于 Immediate : .immediate
240  val等于immediate
241  退出
242  :op恒等于 Current comm
243  val等于FETCH_TOKEN_COMM
244  退出
245  :op恒等于 Allocated data: .data
246  val等于data
247  退出
248  :op恒等于 File offset: .immediate
249  val等于translate_user_vaddr(immediate)
250  退出
251  默认
252  返回:负EILSEQ
254  code自加
256  返回:From the 2nd stage, routine is same
调用者
名称描述
__get_data_sizeSum up total data length for dynamic arraies (strings)
store_trace_argsStore the value of each argument