函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\kprobes.c Create Date:2022-07-27 12:38:37
Last Modify:2022-05-22 18:14:58 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

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

函数原型:struct kprobe *get_kprobe(void *addr)

返回类型:struct kprobe

参数:

类型参数名称
void *addr
328  head等于kprobe_table[hash_ptr(addr, KPROBE_HASH_BITS)]
330  如果 location of the probe point 恒等于addr则返回:p
334  返回:NULL
调用者
名称描述
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
__recover_probed_insn