Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:tracing_prog_is_valid_access

Proto:static bool tracing_prog_is_valid_access(int off, int size, enum bpf_access_type type, const struct bpf_prog *prog, struct bpf_insn_access_aux *info)

Type:bool

Parameter:

TypeParameterName
intoff
intsize
enum bpf_access_typetype
const struct bpf_prog *prog
struct bpf_insn_access_aux *info
1186  If off < 0 || off >= sizeof(__u64) * The longest tracepoint has 12 args.* See include/trace/bpf_probe.h Then Return false
1188  If type != BPF_READ Then Return false
1190  If off % size != 0 Then Return false
1192  Return btf_ctx_access(off, size, type, prog, info)