Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Returns -ENOSYS if branch_xol_ops doesn't handle this insn

Proto:static int branch_setup_xol_ops(struct arch_uprobe *auprobe, struct insn *insn)

Type:int

Parameter:

TypeParameterName
struct arch_uprobe *auprobe
struct insn *insn
717  opc1 = Adaptations for mhiramat x86 decoder v14. (insn)
721  Case opc1 == 0xeb
722  Case opc1 == 0xe9
723  Case opc1 == 0x90
724  Break
726  Case opc1 == 0xe8
727  branch_clear_offset(auprobe, insn)
728  Break
730  Case opc1 == 0x0f
731  If nbytes != 2 Then Return -ENOSYS
737  opc1 = OPCODE2(insn) - 0x10
739  Default
740  If Not is_cond_jmp_opcode(opc1) Then Return -ENOSYS
749  When i < nbytes cycle
750  If bytes[i] == 0x66 Then Return -Operation is not supported
754  opc1 = opc1
755  ilen = length
756  offs = value
758  ops = branch_xol_ops
759  Return 0
Caller
NameDescribe
arch_uprobe_analyze_insnarch_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.