Home
last modified time | relevance | path

Searched refs:PTR_TO_BTF_ID (Results 1 – 11 of 11) sorted by relevance

/linux/kernel/bpf/
H A Dverifier.c413 (type == PTR_TO_BTF_ID && is_trusted_reg(reg)) || in reg_not_null()
2249 regs[regno].type = PTR_TO_BTF_ID | MEM_ALLOC; in mark_reg_graph_node()
2841 case PTR_TO_BTF_ID: in mark_btf_ld_reg()
2843 regs[regno].type = PTR_TO_BTF_ID | flag; in mark_btf_ld_reg()
4901 case PTR_TO_BTF_ID: in is_spillable_regtype()
5771 if (base_type(reg->type) != PTR_TO_BTF_ID || (type_flag(reg->type) & ~perm_flags)) in map_kptr_match_type()
5818 verbose(env, "expected=%s%s", reg_type_str(env, PTR_TO_BTF_ID), targ_name); in map_kptr_match_type()
5820 verbose(env, " or %s%s\n", reg_type_str(env, PTR_TO_BTF_ID | PTR_UNTRUSTED), in map_kptr_match_type()
5968 ret = mark_btf_ld_reg(env, cur_regs(env), value_regno, PTR_TO_BTF_ID, in check_map_kptr_access()
6157 if (base_type(info->reg_type) == PTR_TO_BTF_ID) { in check_ctx_access()
[all …]
H A Dlog.c459 [PTR_TO_BTF_ID] = "ptr_", in reg_type_str()
469 if (base_type(type) == PTR_TO_BTF_ID) in reg_type_str()
696 if (base_type(t) == PTR_TO_BTF_ID) in print_reg_state()
H A Dbpf_struct_ops.c272 info->reg_type = PTR_TRUSTED | PTR_TO_BTF_ID | PTR_MAYBE_NULL; in prepare_arg_info()
274 info->reg_type = PTR_TRUSTED | PTR_TO_BTF_ID; in prepare_arg_info()
H A Dbtf.c6811 info->reg_type = PTR_TO_BTF_ID; in btf_ctx_access()
7227 return PTR_TO_BTF_ID; in btf_struct_access()
/linux/net/ipv4/
H A Dbpf_tcp_ca.c52 if (base_type(info->reg_type) == PTR_TO_BTF_ID && in bpf_tcp_ca_is_valid_access()
/linux/net/netfilter/
H A Dnf_bpf_link.c288 info->reg_type = PTR_TO_BTF_ID | PTR_TRUSTED; in nf_ptr_to_btf_id()
/linux/net/sched/
H A Dbpf_qdisc.c44 info->reg_type = PTR_TO_BTF_ID | PTR_TRUSTED; in BTF_ID_LIST_SINGLE()
/linux/include/linux/
H A Dbpf_verifier.h966 return base_type(type) == PTR_TO_BTF_ID && type_flag(type) & MEM_ALLOC; in type_is_ptr_alloc_obj()
H A Dbpf.h986 PTR_TO_BTF_ID, enumerator
1003 PTR_TO_BTF_ID_OR_NULL = PTR_MAYBE_NULL | PTR_TO_BTF_ID,
/linux/Documentation/bpf/
H A Dgraph_ds_impl.rst99 has type ``PTR_TO_BTF_ID | MEM_ALLOC``, with a ``btf_id`` of
H A Dkfuncs.rst440 PTR_TO_BTF_ID type matching if two types have the exact same name, with one