Lines Matching defs:expected_attach_type

2494  * expected_attach_type. Later for some of them specifying expected_attach_type
2497 * backward compatibility) expected_attach_type, should have the default attach
2498 * type assigned to expected_attach_type for the latter case, so that it can be
2501 * bpf_prog_load_fixup_attach_type() sets expected_attach_type in @attr if
2512 if (!attr->expected_attach_type)
2513 attr->expected_attach_type =
2517 if (!attr->expected_attach_type)
2518 attr->expected_attach_type =
2526 enum bpf_attach_type expected_attach_type,
2557 switch (expected_attach_type) {
2567 switch (expected_attach_type) {
2590 switch (expected_attach_type) {
2598 switch (expected_attach_type) {
2606 if (expected_attach_type == BPF_SK_LOOKUP)
2610 switch (expected_attach_type) {
2618 if (expected_attach_type == BPF_NETFILTER)
2623 if (expected_attach_type)
2719 attr->expected_attach_type)) {
2793 if (bpf_prog_load_check_attach(type, attr->expected_attach_type,
2815 prog->expected_attach_type = attr->expected_attach_type;
3318 if (prog->expected_attach_type != BPF_TRACE_FENTRY &&
3319 prog->expected_attach_type != BPF_TRACE_FEXIT &&
3320 prog->expected_attach_type != BPF_MODIFY_RETURN) {
3326 if (prog->expected_attach_type != 0) {
3332 if (prog->expected_attach_type != BPF_LSM_MAC) {
3376 link->attach_type = prog->expected_attach_type;
3830 prog->expected_attach_type == BPF_TRACE_RAW_TP) {
3981 return attach_type == prog->expected_attach_type ? 0 : -EINVAL;
3989 prog->expected_attach_type != attach_type ?
4003 if (prog->expected_attach_type == BPF_TRACE_KPROBE_MULTI &&
4006 if (prog->expected_attach_type == BPF_TRACE_UPROBE_MULTI &&
4095 prog->expected_attach_type != BPF_LSM_CGROUP)
5225 if (attr->link_create.attach_type != prog->expected_attach_type) {
5229 if (prog->expected_attach_type == BPF_TRACE_RAW_TP)
5231 else if (prog->expected_attach_type == BPF_TRACE_ITER)
5233 else if (prog->expected_attach_type == BPF_LSM_CGROUP)