Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:verify_opcode

Proto:static int verify_opcode(struct page *page, unsigned long vaddr, uprobe_opcode_t *new_opcode)

Type:int

Parameter:

TypeParameterName
struct page *page
unsigned longvaddr
uprobe_opcode_t *new_opcode
278  copy_from_page(page, vaddr, & old_opcode, UPROBE_SWBP_INSN_SIZE)
279  is_swbp = s_swbp_insn - check if instruction is breakpoint instruction.*@insn: instruction to be checked.* Default implementation of is_swbp_insn* Returns true if @insn is a breakpoint instruction.
281  If s_swbp_insn - check if instruction is breakpoint instruction.*@insn: instruction to be checked.* Default implementation of is_swbp_insn* Returns true if @insn is a breakpoint instruction. Then
282  If is_swbp Then Return 0
284  Else
285  If Not is_swbp Then Return 0
289  Return 1
Caller
NameDescribe
uprobe_write_opcodeNOTE:* Expect the breakpoint instruction to be the smallest size instruction for* the architecture