函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:bpf_probe_read_kernel_common

函数原型:static __always_inline int bpf_probe_read_kernel_common(void *dst, u32 size, const void *unsafe_ptr, const bool compat)

返回类型:int

参数:

类型参数名称
void *dst
u32size
const void *unsafe_ptr
const boolcompat
185  ret等于security_locked_down(LOCKDOWN_BPF_READ)
187  如果此条件成立可能性小(为编译器优化)(ret < 0)则转到:out
189  ret等于如果compatprobe_kernel_read(): safely attempt to read from a location*@dst: pointer to the buffer that shall take the data*@src: address to read from*@size: size of the data chunk* Safely read from address @src to the buffer at @dst. If a kernel fault否则probe_kernel_read_strict(dst, unsafe_ptr, size)
191  如果此条件成立可能性小(为编译器优化)(ret < 0)则out :
193  memset(dst, 0, size)
194  返回:ret
调用者
名称描述
____bpf_probe_read_kernel
____bpf_probe_read_compat