Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Note that we don't verify it, since the code does not come from user space

Proto:static int process_fetch_insn(struct fetch_insn *code, struct pt_regs *regs, void *dest, void *base)

Type:int

Parameter:

TypeParameterName
struct fetch_insn *code
struct pt_regs *regs
void *dest
void *base
227  Case 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  Break
230  Case op == Stack : .param = index
231  val = get_user_stack_nth(regs, param)
232  Break
233  Case op == Stack pointer
234  val = user_stack_pointer(regs)
235  Break
236  Case op == Return value
237  val = regs_return_value(regs)
238  Break
239  Case op == Immediate : .immediate
240  val = immediate
241  Break
242  Case op == Current comm
243  val = FETCH_TOKEN_COMM
244  Break
245  Case op == Allocated data: .data
246  val = data
247  Break
248  Case op == File offset: .immediate
249  val = translate_user_vaddr(immediate)
250  Break
251  Default
252  Return -EILSEQ
254  code++
256  Return From the 2nd stage, routine is same
Caller
NameDescribe
__get_data_sizeSum up total data length for dynamic arraies (strings)
store_trace_argsStore the value of each argument