函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\kprobes\ftrace.c Create Date:2022-07-27 09:38:47
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Ftrace callback handler for kprobes -- called under preepmt disabed

函数原型:void kprobe_ftrace_handler(unsigned long ip, unsigned long parent_ip, struct ftrace_ops *ops, struct pt_regs *regs)

返回类型:void

参数:

类型参数名称
unsigned longip
unsigned longparent_ip
struct ftrace_ops *ops
struct pt_regs *regs
23  p等于Get the kprobe at this addr (if any) - called with preemption disabled
24  如果此条件成立可能性小(为编译器优化)(!p)或Is this kprobe disabled ? 则返回
27  kcb等于get_kprobe_ctlblk()
28  如果kprobe_running() will just return the current_kprobe on this CPU
29  kprobes_inc_nmissed_count(p)
30  否则
31  orig_ip等于ip
33  ip等于ipsizeof(kprobe_opcode_t)
35  __this_cpu_write(current_kprobe, p)
36  kprobe_status等于kprobe_status settings
47  ip等于orig_ip
53  __this_cpu_write(current_kprobe, NULL)