函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:arch_uprobe_analyze_insn - instruction analysis including validity and fixups.*@auprobe: the probepoint information.*@mm: the probed address space.*@addr: virtual address at which to install the probepoint* Return 0 on success or a -ve number on error.

函数原型:int arch_uprobe_analyze_insn(struct arch_uprobe *auprobe, struct mm_struct *mm, unsigned long addr)

返回类型:int

参数:

类型参数名称
struct arch_uprobe *auprobe
struct mm_struct *mm
unsigned longaddr
853  fix_ip_or_call等于Adjust IP back to vicinity of actual insn
856  ret等于uprobe_init_insn(auprobe, & insn, is_64bit_mm(mm))
857  如果ret则返回:ret
860  ret等于Returns -ENOSYS if branch_xol_ops doesn't handle this insn
861  如果ret不等于负ENOSYS则返回:ret
864  ret等于Returns -ENOSYS if push_xol_ops doesn't handle this insn
865  如果ret不等于负ENOSYS则返回:ret
873  :Adaptations for mhiramat x86 decoder v14. ( & insn)恒等于0x9d
874  fixups或等于Instruction will modify TF, don't change it
875  退出
876  :Adaptations for mhiramat x86 decoder v14. ( & insn)恒等于0xc3
877  :Adaptations for mhiramat x86 decoder v14. ( & insn)恒等于0xcb
878  :Adaptations for mhiramat x86 decoder v14. ( & insn)恒等于0xc2
879  :Adaptations for mhiramat x86 decoder v14. ( & insn)恒等于0xca
880  :Adaptations for mhiramat x86 decoder v14. ( & insn)恒等于0xea
881  fix_ip_or_call等于0
882  退出
883  :Adaptations for mhiramat x86 decoder v14. ( & insn)恒等于0x9a
884  fix_ip_or_call等于Adjust the return address of a call insn
885  退出
886  :Adaptations for mhiramat x86 decoder v14. ( & insn)恒等于0xff
888  :MODRM_REG( & insn)恒等于2
888  :MODRM_REG( & insn)恒等于3
890  退出
891  :MODRM_REG( & insn)恒等于4
891  :MODRM_REG( & insn)恒等于5
892  fix_ip_or_call等于0
893  退出
896  默认
897  If arch_uprobe->insn doesn't use rip-relative addressing, return* immediately. Otherwise, rewrite the instruction so that it accesses* its memory operand indirectly through a scratch register. Set* defparam->fixups accordingly
900  ilen等于length
901  fixups或等于fix_ip_or_call
903  ops等于default_xol_ops
904  返回:0
调用者
名称描述
prepare_uprobe