Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\kprobes.c Create Date:2022-07-28 11:34:53
Last Modify:2022-05-22 18:14:58 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:This routine is called either:* - under the kprobe_mutex - during kprobe_[un]register()* OR* - with preemption disabled - from arch/xxx/kernel/kprobes.c

Proto:struct kprobe *get_kprobe(void *addr)

Type:struct kprobe

Parameter:

TypeParameterName
void *addr
328  head = kprobe_table[hash_ptr(addr, KPROBE_HASH_BITS)]
330  If location of the probe point == addr Then Return p
334  Return NULL
Caller
NameDescribe
kprobe_int3_handlerInterrupts are disabled on entry as trap3 is an interrupt gate and they* remain disabled throughout this function.
__recover_optprobed_insn
arch_check_optimized_kprobeCheck optimized_kprobe can actually be optimized.
kprobe_ftrace_handlerFtrace callback handler for kprobes -- called under preepmt disabed
get_optimized_kprobeReturn an optimized kprobe whose optimizing code replaces* instructions including addr (exclude breakpoint).
__get_valid_kprobeCheck passed kprobe is valid and return kprobe in kprobe_table.
register_kprobe