Lines Matching defs:attach_name
6820 static int libbpf_find_attach_btf_id(struct bpf_program *prog, const char *attach_name,
6845 const char *attach_name;
6847 attach_name = strchr(prog->sec_name, '/');
6848 if (!attach_name) {
6862 attach_name++; /* skip over / */
6864 err = libbpf_find_attach_btf_id(prog, attach_name, &btf_obj_fd, &btf_type_id);
9355 static int find_kernel_btf_id(struct bpf_object *obj, const char *attach_name,
9361 ret = find_attach_btf_id(obj->btf_vmlinux, attach_name, attach_type);
9377 ret = find_attach_btf_id(mod->btf, attach_name, attach_type);
9392 static int libbpf_find_attach_btf_id(struct bpf_program *prog, const char *attach_name,
9405 err = libbpf_find_prog_btf_id(attach_name, attach_prog_fd);
9408 prog->name, attach_prog_fd, attach_name, err);
9418 bpf_gen__record_attach_target(prog->obj->gen_loader, attach_name, attach_type);
9422 err = find_kernel_btf_id(prog->obj, attach_name, attach_type, btf_obj_fd, btf_type_id);
9426 prog->name, attach_name, err);