Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_kprobe.c Create Date:2022-07-28 12:39:51
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
1131  retry :
1134  Case op == Register : .param = offset
1135  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
1136  Break
1137  Case op == Stack : .param = index
1138  val = gs_get_kernel_stack_nth() - get Nth entry of the stack*@regs: pt_regs which contains kernel stack pointer.*@n: stack entry number.* regs_get_kernel_stack_nth() returns @n th entry of the kernel stack which* is specified by @regs
1139  Break
1140  Case op == Stack pointer
1141  val = kernel_stack_pointer(regs)
1142  Break
1143  Case op == Return value
1144  val = regs_return_value(regs)
1145  Break
1146  Case op == Immediate : .immediate
1147  val = immediate
1148  Break
1149  Case op == Current comm
1150  val = comm
1151  Break
1152  Case op == Allocated data: .data
1153  val = data
1154  Break
1160  Case op == Unresolved Symbol holder
1161  code++
1162  Go to retry
1163  Default
1164  Return -EILSEQ
1166  code++
1168  Return From the 2nd stage, routine is same