Searched refs:prog_type (Results 1 – 5 of 5) sorted by relevance
/kernel/bpf/ |
D | offload.c | 86 if (attr->prog_type != BPF_PROG_TYPE_SCHED_CLS && in bpf_prog_offload_init() 87 attr->prog_type != BPF_PROG_TYPE_XDP) in bpf_prog_offload_init()
|
D | btf.c | 5107 const struct btf_type *t, enum bpf_prog_type prog_type, in btf_get_prog_ctx_type() argument 5137 ctx_type = btf_type_member(conv_struct) + bpf_ctx_convert_map[prog_type] * 2; in btf_get_prog_ctx_type() 5175 enum bpf_prog_type prog_type, in btf_translate_to_vmlinux() argument 5180 prog_ctx_type = btf_get_prog_ctx_type(log, btf, t, prog_type, arg); in btf_translate_to_vmlinux() 6255 enum bpf_prog_type prog_type = resolve_prog_type(env->prog); in btf_check_func_arg_match() local 6434 } else if (btf_get_prog_ctx_type(log, btf, t, prog_type, i)) { in btf_check_func_arg_match() 6692 enum bpf_prog_type prog_type = prog->type; in btf_prepare_func_args() local 6730 if (prog_type == BPF_PROG_TYPE_EXT) in btf_prepare_func_args() 6731 prog_type = prog->aux->dst_prog->type; in btf_prepare_func_args() 6769 if (btf_get_prog_ctx_type(log, btf, t, prog_type, i)) { in btf_prepare_func_args() [all …]
|
D | syscall.c | 2302 switch (attr->prog_type) { in bpf_prog_load_fixup_attach_type() 2320 bpf_prog_load_check_attach(enum bpf_prog_type prog_type, in bpf_prog_load_check_attach() argument 2332 switch (prog_type) { in bpf_prog_load_check_attach() 2346 if (dst_prog && prog_type != BPF_PROG_TYPE_TRACING && in bpf_prog_load_check_attach() 2347 prog_type != BPF_PROG_TYPE_EXT) in bpf_prog_load_check_attach() 2350 switch (prog_type) { in bpf_prog_load_check_attach() 2417 static bool is_net_admin_prog_type(enum bpf_prog_type prog_type) in is_net_admin_prog_type() argument 2419 switch (prog_type) { in is_net_admin_prog_type() 2448 static bool is_perfmon_prog_type(enum bpf_prog_type prog_type) in is_perfmon_prog_type() argument 2450 switch (prog_type) { in is_perfmon_prog_type() [all …]
|
D | verifier.c | 4130 enum bpf_prog_type prog_type = resolve_prog_type(env->prog); in may_access_direct_pkt_data() local 4132 switch (prog_type) { in may_access_direct_pkt_data() 7525 enum bpf_prog_type prog_type = resolve_prog_type(env->prog); in check_helper_call() local 7687 if (prog_type == BPF_PROG_TYPE_LSM && in check_helper_call() 10815 enum bpf_prog_type prog_type = resolve_prog_type(env->prog); in check_return_code() local 10822 switch (prog_type) { in check_return_code() 10878 switch (prog_type) { in check_return_code() 10959 prog_type == BPF_PROG_TYPE_LSM && in check_return_code() 12976 enum bpf_prog_type prog_type = resolve_prog_type(prog); in check_map_prog_compatibility() local 12979 if (prog_type == BPF_PROG_TYPE_SOCKET_FILTER) { in check_map_prog_compatibility() [all …]
|
D | core.c | 2094 enum bpf_prog_type prog_type = resolve_prog_type(fp); in bpf_prog_map_compatible() local 2105 map->owner.type = prog_type; in bpf_prog_map_compatible() 2110 ret = map->owner.type == prog_type && in bpf_prog_map_compatible()
|