Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:arch_prepare_kprobe

Proto:int arch_prepare_kprobe(struct kprobe *p)

Type:int

Parameter:

TypeParameterName
struct kprobe *p
483  If alternatives_text_reserved( location of the probe point , location of the probe point ) Then Return -EINVAL
486  If Not Check if paddr is at an instruction boundary Then Return -EILSEQ
489  copy of the original instruction = get_insn_slot()
490  If Not copy of the original instruction Then Return -ENOMEM
493  ret = arch_copy_kprobe(p)
494  If ret Then
495  free_insn_slot(copy of the original instruction , 0)
496  copy of the original instruction = NULL
499  Return ret