函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:modify_fentry

函数原型:static int modify_fentry(struct bpf_trampoline *tr, void *old_addr, void *new_addr)

返回类型:int

参数:

类型参数名称
struct bpf_trampoline *tr
void *old_addr
void *new_addr
89  ip等于addr
92  如果ftrace_managedret等于modify_ftrace_direct((long)ip, (long)old_addr, (long)new_addr)
94  否则ret等于bpf_arch_text_poke(ip, BPF_MOD_CALL, old_addr, new_addr)
96  返回:ret
调用者
名称描述
bpf_trampoline_update