Home
last modified time | relevance | path

Searched refs:atype (Results 1 – 4 of 4) sorted by relevance

/kernel/bpf/
Dcgroup.c32 enum cgroup_bpf_attach_type atype, in bpf_prog_run_array_cg() argument
46 array = rcu_dereference(cgrp->effective[atype]); in bpf_prog_run_array_cg()
283 unsigned int atype; in cgroup_bpf_release() local
287 for (atype = 0; atype < ARRAY_SIZE(cgrp->bpf.progs); atype++) { in cgroup_bpf_release()
288 struct hlist_head *progs = &cgrp->bpf.progs[atype]; in cgroup_bpf_release()
305 static_branch_dec(&cgroup_bpf_enabled_key[atype]); in cgroup_bpf_release()
308 cgrp->bpf.effective[atype], in cgroup_bpf_release()
373 enum cgroup_bpf_attach_type atype) in hierarchy_allows_attach() argument
381 u32 flags = p->bpf.flags[atype]; in hierarchy_allows_attach()
386 cnt = prog_list_length(&p->bpf.progs[atype]); in hierarchy_allows_attach()
[all …]
Dverifier.c6385 enum bpf_access_type atype, in check_ptr_to_btf_access() argument
6438 if (env->ops->btf_struct_access && !type_is_alloc(reg->type) && atype == BPF_WRITE) { in check_ptr_to_btf_access()
6449 if (atype != BPF_READ && !type_is_ptr_alloc_obj(reg->type)) { in check_ptr_to_btf_access()
6460 ret = btf_struct_access(&env->log, reg, off, size, atype, &btf_id, &flag, &field_name); in check_ptr_to_btf_access()
6526 if (atype == BPF_READ && value_regno >= 0) in check_ptr_to_btf_access()
6535 enum bpf_access_type atype, in check_ptr_to_map_access() argument
6574 if (atype != BPF_READ) { in check_ptr_to_map_access()
6582 ret = btf_struct_access(&env->log, &map_reg, off, size, atype, &btf_id, &flag, NULL); in check_ptr_to_map_access()
7260 enum bpf_access_type atype = meta && meta->raw_mode ? BPF_WRITE : BPF_READ; in check_helper_mem_access()
7268 atype, -1, false, false); in check_helper_mem_access()
Dbtf.c5913 enum bpf_attach_type atype = prog->expected_attach_type; in prog_args_trusted() local
5917 return atype == BPF_TRACE_RAW_TP || atype == BPF_TRACE_ITER; in prog_args_trusted()
6388 int off, int size, enum bpf_access_type atype __maybe_unused, in btf_struct_access()
/kernel/trace/
Dtrace_probe.h203 #define ASSIGN_FETCH_TYPE_ALIAS(ptype, atype, ftype, sign) \ argument
204 _ASSIGN_FETCH_TYPE(#ptype, ptype, ftype, sizeof(ftype), sign, atype)