Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\bpf_trace.c Create Date:2022-07-28 12:34:56
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:bpf_probe_read_kernel_common

Proto:static __always_inline int bpf_probe_read_kernel_common(void *dst, u32 size, const void *unsafe_ptr, const bool compat)

Type:int

Parameter:

TypeParameterName
void *dst
u32size
const void *unsafe_ptr
const boolcompat
185  ret = security_locked_down(LOCKDOWN_BPF_READ)
187  If Value for the false possibility is greater at compile time(ret < 0) Then Go to out
189  ret = If compat Then probe_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 Else probe_kernel_read_strict(dst, unsafe_ptr, size)
191  If Value for the false possibility is greater at compile time(ret < 0) Then out :
193  memset(dst, 0, size)
194  Return ret
Caller
NameDescribe
____bpf_probe_read_kernel
____bpf_probe_read_compat