| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | sockopt.c | 30 enum bpf_attach_type expected_attach_type; member 58 .expected_attach_type = 0, 70 .expected_attach_type = BPF_CGROUP_SETSOCKOPT, 81 .expected_attach_type = BPF_CGROUP_GETSOCKOPT, 102 .expected_attach_type = BPF_CGROUP_GETSOCKOPT, 126 .expected_attach_type = BPF_CGROUP_GETSOCKOPT, 152 .expected_attach_type = BPF_CGROUP_GETSOCKOPT, 168 .expected_attach_type = BPF_CGROUP_GETSOCKOPT, 195 .expected_attach_type = BPF_CGROUP_GETSOCKOPT, 213 .expected_attach_type = BPF_CGROUP_GETSOCKOPT, [all …]
|
| H A D | section_names.c | 12 enum bpf_attach_type expected_attach_type; member 210 enum bpf_attach_type expected_attach_type; in test_prog_type_by_name() local 215 &expected_attach_type); in test_prog_type_by_name() 227 CHECK(expected_attach_type != test->expected_load.expected_attach_type, in test_prog_type_by_name() 229 expected_attach_type, test->sec_name); in test_prog_type_by_name()
|
| H A D | ctx_rewrite.c | 35 enum bpf_attach_type expected_attach_type; member 167 .expected_attach_type = BPF_CGROUP_GETSOCKOPT, 173 .expected_attach_type = BPF_CGROUP_SETSOCKOPT, 179 .expected_attach_type = BPF_CGROUP_SETSOCKOPT, 185 .expected_attach_type = BPF_CGROUP_SETSOCKOPT, 197 .expected_attach_type = BPF_CGROUP_GETSOCKOPT, 202 .expected_attach_type = BPF_CGROUP_GETSOCKOPT, 207 .expected_attach_type = BPF_CGROUP_GETSOCKOPT, 636 enum bpf_attach_type expected_attach_type; 665 opts.expected_attach_type in match_program() 637 enum bpf_attach_type expected_attach_type; global() member [all...] |
| H A D | fexit_stress.c | 26 .expected_attach_type = BPF_TRACE_FEXIT, in serial_test_fexit_stress() 32 trace_opts.expected_attach_type); in serial_test_fexit_stress()
|
| H A D | module_fentry_shadow.c | 71 .expected_attach_type = BPF_TRACE_FENTRY, in test_module_fentry_shadow()
|
| /linux/tools/testing/selftests/bpf/verifier/ |
| H A D | sleepable.c | 8 .expected_attach_type = BPF_TRACE_FENTRY, 21 .expected_attach_type = BPF_TRACE_FENTRY, 34 .expected_attach_type = BPF_MODIFY_RETURN, 47 .expected_attach_type = BPF_TRACE_ITER, 61 .expected_attach_type = BPF_LSM_MAC, 85 .expected_attach_type = BPF_TRACE_RAW_TP, 98 .expected_attach_type = BPF_TRACE_RAW_TP,
|
| H A D | ctx_sk_lookup.c | 259 .expected_attach_type = BPF_SK_LOOKUP, 274 .expected_attach_type = BPF_SK_LOOKUP, 287 .expected_attach_type = BPF_SK_LOOKUP, 301 .expected_attach_type = BPF_SK_LOOKUP, 314 .expected_attach_type = BPF_SK_LOOKUP, 328 .expected_attach_type = BPF_SK_LOOKUP, 342 .expected_attach_type = BPF_SK_LOOKUP, 355 .expected_attach_type = BPF_SK_LOOKUP, 369 .expected_attach_type = BPF_SK_LOOKUP, 383 .expected_attach_type = BPF_SK_LOOKUP, [all …]
|
| H A D | bpf_st_mem.c | 13 .expected_attach_type = BPF_SK_LOOKUP, 35 .expected_attach_type = BPF_SK_LOOKUP, 65 .expected_attach_type = BPF_SK_LOOKUP, 93 .expected_attach_type = BPF_SK_LOOKUP,
|
| H A D | wide_access.c | 12 .expected_attach_type = BPF_CGROUP_UDP6_SENDMSG, \ 54 .expected_attach_type = BPF_CGROUP_UDP6_SENDMSG, \
|
| H A D | event_output.c | 115 .expected_attach_type = BPF_CGROUP_SETSOCKOPT,
|
| H A D | atomic_fetch_add.c | 102 .expected_attach_type = BPF_TRACE_FENTRY,
|
| /linux/tools/lib/bpf/ |
| H A D | libbpf_probes.c | 118 opts.expected_attach_type = BPF_CGROUP_INET4_CONNECT; in probe_prog_load() 121 opts.expected_attach_type = BPF_CGROUP_GETSOCKOPT; in probe_prog_load() 124 opts.expected_attach_type = BPF_SK_LOOKUP; in probe_prog_load() 130 opts.expected_attach_type = BPF_LIRC_MODE2; in probe_prog_load() 138 opts.expected_attach_type = BPF_TRACE_FENTRY; in probe_prog_load() 140 opts.expected_attach_type = BPF_MODIFY_RETURN; in probe_prog_load() 185 opts.expected_attach_type = BPF_NETFILTER; in probe_prog_load()
|
| H A D | features.c | 226 .expected_attach_type = BPF_CGROUP_INET_SOCK_CREATE, in probe_kern_exp_attach_type() 365 .expected_attach_type = BPF_TRACE_UPROBE_MULTI, in probe_uprobe_multi_link()
|
| H A D | libbpf.c | 432 enum bpf_attach_type expected_attach_type; member 502 enum bpf_attach_type expected_attach_type; member 1325 prog->expected_attach_type = kern_member_idx; in bpf_map__init_kern_struct_ops() 1339 if (prog->expected_attach_type != kern_member_idx) { in bpf_map__init_kern_struct_ops() 1342 prog->expected_attach_type, kern_member_idx); in bpf_map__init_kern_struct_ops() 7897 opts->expected_attach_type = 0; in libbpf_prepare_prog_load() 7911 prog->expected_attach_type = BPF_TRACE_UPROBE_MULTI; in libbpf_prepare_prog_load() 7912 opts->expected_attach_type = BPF_TRACE_UPROBE_MULTI; in libbpf_prepare_prog_load() 7953 if (is_tracing_multi(prog->expected_attach_type)) { in libbpf_prepare_prog_load() 8014 load_attr.expected_attach_type = prog->expected_attach_type; in bpf_object_load_prog() [all …]
|
| /linux/kernel/bpf/ |
| H A D | syscall.c | 2714 * expected_attach_type. Later for some of them specifying expected_attach_type in bpf_prog_load_fixup_attach_type() 2717 * backward compatibility) expected_attach_type, should have the default attach in bpf_prog_load_fixup_attach_type() 2718 * type assigned to expected_attach_type for the latter case, so that it can be in bpf_prog_load_fixup_attach_type() 2721 * bpf_prog_load_fixup_attach_type() sets expected_attach_type in @attr if in bpf_prog_load_fixup_attach_type() 2732 if (!attr->expected_attach_type) in bpf_prog_load_check_attach() 2733 attr->expected_attach_type = in bpf_prog_load_check_attach() 2737 if (!attr->expected_attach_type) in bpf_prog_load_check_attach() 2738 attr->expected_attach_type = in bpf_prog_load_check_attach() 2746 enum bpf_attach_type expected_attach_type, in bpf_prog_load_check_attach() 2729 bpf_prog_load_check_attach(enum bpf_prog_type prog_type,enum bpf_attach_type expected_attach_type,struct btf * attach_btf,u32 btf_id,struct bpf_prog * dst_prog,bool multi_func) bpf_prog_load_check_attach() argument [all...] |
| H A D | bpf_lsm.c | 232 if (prog->expected_attach_type == BPF_LSM_CGROUP) { in bpf_lsm_func_proto() 263 if (prog->expected_attach_type != BPF_LSM_CGROUP) in bpf_lsm_func_proto() 273 if (prog->expected_attach_type != BPF_LSM_CGROUP) in bpf_lsm_func_proto()
|
| H A D | cgroup.c | 345 if (pl->prog->expected_attach_type == BPF_LSM_CGROUP) in cgroup_bpf_release() 350 if (pl->link->link.prog->expected_attach_type == BPF_LSM_CGROUP) in cgroup_bpf_release() 2585 if (prog->expected_attach_type == BPF_CGROUP_SETSOCKOPT) in cg_sockopt_func_proto() 2589 if (prog->expected_attach_type == BPF_CGROUP_SETSOCKOPT) in cg_sockopt_func_proto() 2622 return prog->expected_attach_type == in cg_sockopt_is_valid_access() 2629 return prog->expected_attach_type == in cg_sockopt_is_valid_access() 2657 return prog->expected_attach_type == BPF_CGROUP_GETSOCKOPT; in cg_sockopt_is_valid_access() 2783 switch (prog->expected_attach_type) { in cgroup_common_func_proto() 2801 switch (prog->expected_attach_type) { in cgroup_common_func_proto()
|
| H A D | trampoline.c | 179 enum bpf_attach_type eatype = prog->expected_attach_type; in bpf_prog_has_trampoline() 837 switch (prog->expected_attach_type) { in bpf_attach_type_to_tramp() 1149 p->expected_attach_type = BPF_LSM_MAC; in bpf_trampoline_link_cgroup_shim() 1508 prog->expected_attach_type == BPF_LSM_CGROUP) in arch_protect_bpf_trampoline() 1523 prog->expected_attach_type == BPF_LSM_CGROUP) 1750 if (prog->expected_attach_type == BPF_TRACE_FSESSION_MULTI) { in bpf_trampoline_multi_attach()
|
| H A D | verifier.c | 6311 prog->expected_attach_type == BPF_LSM_MAC && in get_func_retval_range() 8970 enum bpf_attach_type eatype = env->prog->expected_attach_type; in may_update_sockmap() 10488 env->prog->expected_attach_type == BPF_CGROUP_GETSOCKOPT) in do_refine_retval_range() 10492 env->prog->expected_attach_type == BPF_LSM_CGROUP) { in do_refine_retval_range() 11035 env->prog->expected_attach_type == BPF_CGROUP_GETSOCKOPT) in check_helper_call() 11039 env->prog->expected_attach_type == BPF_LSM_CGROUP) { in check_helper_call() 12679 if (env->prog->expected_attach_type == BPF_TRACE_ITER) in check_css_task_iter_allowlist() 13895 (prog_type == BPF_PROG_TYPE_TRACING && env->prog->expected_attach_type != BPF_TRACE_ITER in check_kfunc_call() 17453 switch (env->prog->expected_attach_type) { in return_retval_range() 17474 if (env->prog->expected_attach_type in return_retval_range() [all...] |
| H A D | bpf_iter.c | 421 link->prog->expected_attach_type != new_prog->expected_attach_type || in bpf_iter_link_replace()
|
| /linux/kernel/trace/ |
| H A D | bpf_trace.c | 980 prog->expected_attach_type == BPF_TRACE_ITER) in BTF_ID() 1313 return prog->expected_attach_type == BPF_TRACE_KPROBE_MULTI || in is_kprobe_multi() 1314 prog->expected_attach_type == BPF_TRACE_KPROBE_SESSION; in is_kprobe_multi() 1320 prog->expected_attach_type == BPF_TRACE_KPROBE_SESSION; in is_kprobe_session() 1325 return prog->expected_attach_type == BPF_TRACE_UPROBE_MULTI || in is_uprobe_multi() 1326 prog->expected_attach_type == BPF_TRACE_UPROBE_SESSION; in is_uprobe_multi() 1332 prog->expected_attach_type == BPF_TRACE_UPROBE_SESSION; in is_uprobe_session() 1338 (prog->expected_attach_type == BPF_TRACE_FSESSION || in is_trace_fsession() 1339 prog->expected_attach_type == BPF_TRACE_FSESSION_MULTI); in is_trace_fsession() 1762 return prog->expected_attach_type == BPF_TRACE_ITER ? in tracing_prog_func_proto() [all …]
|
| /linux/net/core/ |
| H A D | sock_reuseport.c | 476 (prog && prog->expected_attach_type == BPF_SK_REUSEPORT_SELECT_OR_MIGRATE)) { in reuseport_stop_listen_sock() 646 if (!prog || prog->expected_attach_type != BPF_SK_REUSEPORT_SELECT_OR_MIGRATE) { in reuseport_migrate_sock()
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | test_verifier.c | 159 enum bpf_attach_type expected_attach_type; member 1561 opts.expected_attach_type = test->expected_attach_type; in do_test_single() 1577 opts.expected_attach_type); in do_test_single()
|
| /linux/net/ipv4/ |
| H A D | bpf_tcp_ca.c | 144 midx = prog->expected_attach_type; in prog_ops_moff()
|
| /linux/net/bpf/ |
| H A D | test_run.c | 697 switch (prog->expected_attach_type) { in bpf_prog_test_run_tracing() 1349 if (prog->expected_attach_type == BPF_XDP_DEVMAP || in bpf_prog_test_run_xdp() 1350 prog->expected_attach_type == BPF_XDP_CPUMAP) in bpf_prog_test_run_xdp()
|