函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:tracing_prog_is_valid_access

函数原型: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)

返回类型:bool

参数:

类型参数名称
intoff
intsize
enum bpf_access_typetype
const struct bpf_prog *prog
struct bpf_insn_access_aux *info
1186  如果off小于0或off大于等于sizeof(__u64)乘The longest tracepoint has 12 args.* See include/trace/bpf_probe.h则返回:false
1188  如果type不等于BPF_READ则返回:false
1190  如果off取模size不等于0则返回:false
1192  返回:btf_ctx_access(off, size, type, prog, info)