Home
last modified time | relevance | path

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

/kernel/bpf/
Dsyscall.c2307 if (!attr->expected_attach_type) in bpf_prog_load_fixup_attach_type()
2308 attr->expected_attach_type = in bpf_prog_load_fixup_attach_type()
2312 if (!attr->expected_attach_type) in bpf_prog_load_fixup_attach_type()
2313 attr->expected_attach_type = in bpf_prog_load_fixup_attach_type()
2321 enum bpf_attach_type expected_attach_type, in bpf_prog_load_check_attach() argument
2352 switch (expected_attach_type) { in bpf_prog_load_check_attach()
2362 switch (expected_attach_type) { in bpf_prog_load_check_attach()
2380 switch (expected_attach_type) { in bpf_prog_load_check_attach()
2388 switch (expected_attach_type) { in bpf_prog_load_check_attach()
2396 if (expected_attach_type == BPF_SK_LOOKUP) in bpf_prog_load_check_attach()
[all …]
Dbpf_lsm.c199 if (prog->expected_attach_type == BPF_LSM_CGROUP) { in bpf_lsm_func_proto()
230 if (prog->expected_attach_type != BPF_LSM_CGROUP) in bpf_lsm_func_proto()
240 if (prog->expected_attach_type != BPF_LSM_CGROUP) in bpf_lsm_func_proto()
Dtrampoline.c110 enum bpf_attach_type eatype = prog->expected_attach_type; in bpf_prog_has_trampoline()
525 switch (prog->expected_attach_type) { in bpf_attach_type_to_tramp()
684 p->expected_attach_type = BPF_LSM_MAC; in cgroup_shim_alloc()
1045 prog->expected_attach_type == BPF_LSM_CGROUP) in bpf_trampoline_enter()
1060 prog->expected_attach_type == BPF_LSM_CGROUP) in bpf_trampoline_exit()
Dcgroup.c295 if (pl->prog->expected_attach_type == BPF_LSM_CGROUP) in cgroup_bpf_release()
300 if (pl->link->link.prog->expected_attach_type == BPF_LSM_CGROUP) in cgroup_bpf_release()
2316 if (prog->expected_attach_type == BPF_CGROUP_SETSOCKOPT) in cg_sockopt_func_proto()
2320 if (prog->expected_attach_type == BPF_CGROUP_SETSOCKOPT) in cg_sockopt_func_proto()
2353 return prog->expected_attach_type == in cg_sockopt_is_valid_access()
2360 return prog->expected_attach_type == in cg_sockopt_is_valid_access()
2388 return prog->expected_attach_type == BPF_CGROUP_GETSOCKOPT; in cg_sockopt_is_valid_access()
2505 switch (prog->expected_attach_type) { in cgroup_common_func_proto()
2520 switch (prog->expected_attach_type) { in cgroup_common_func_proto()
Dbpf_iter.c424 link->prog->expected_attach_type != new_prog->expected_attach_type || in bpf_iter_link_replace()
Dverifier.c6470 enum bpf_attach_type eatype = env->prog->expected_attach_type; in may_update_sockmap()
7688 env->prog->expected_attach_type == BPF_LSM_CGROUP) { in check_helper_call()
10824 if (prog->expected_attach_type == BPF_LSM_CGROUP) in check_return_code()
10880 if (env->prog->expected_attach_type == BPF_CGROUP_UDP4_RECVMSG || in check_return_code()
10881 env->prog->expected_attach_type == BPF_CGROUP_UDP6_RECVMSG || in check_return_code()
10882 env->prog->expected_attach_type == BPF_CGROUP_INET4_GETPEERNAME || in check_return_code()
10883 env->prog->expected_attach_type == BPF_CGROUP_INET6_GETPEERNAME || in check_return_code()
10884 env->prog->expected_attach_type == BPF_CGROUP_INET4_GETSOCKNAME || in check_return_code()
10885 env->prog->expected_attach_type == BPF_CGROUP_INET6_GETSOCKNAME) in check_return_code()
10887 if (env->prog->expected_attach_type == BPF_CGROUP_INET4_BIND || in check_return_code()
[all …]
Dbpf_struct_ops.c465 prog->expected_attach_type != i) { in bpf_struct_ops_map_update_elem()
Dcpumap.c418 if (prog->expected_attach_type != BPF_XDP_CPUMAP || in __cpu_map_load_bpf_program()
Ddevmap.c862 if (prog->expected_attach_type != BPF_XDP_DEVMAP || in __dev_map_alloc_node()
Dbtf.c5418 switch (prog->expected_attach_type) { in btf_ctx_access()
/kernel/trace/
Dbpf_trace.c957 prog->expected_attach_type == BPF_TRACE_ITER) in BTF_ID()
1547 return prog->expected_attach_type == BPF_TRACE_KPROBE_MULTI ? in kprobe_prog_func_proto()
1551 return prog->expected_attach_type == BPF_TRACE_KPROBE_MULTI ? in kprobe_prog_func_proto()
1945 return prog->expected_attach_type == BPF_TRACE_ITER ? in tracing_prog_func_proto()
1949 return prog->expected_attach_type == BPF_TRACE_ITER ? in tracing_prog_func_proto()
1953 return prog->expected_attach_type == BPF_TRACE_ITER ? in tracing_prog_func_proto()
1968 if (!fn && prog->expected_attach_type == BPF_TRACE_ITER) in tracing_prog_func_proto()
2712 if (prog->expected_attach_type != BPF_TRACE_KPROBE_MULTI) in bpf_kprobe_multi_link_attach()