Lines Matching refs:attach_name
7263 static int libbpf_find_attach_btf_id(struct bpf_program *prog, const char *attach_name,
7288 const char *attach_name;
7290 attach_name = strchr(prog->sec_name, '/');
7291 if (!attach_name) {
7305 attach_name++; /* skip over / */
7307 err = libbpf_find_attach_btf_id(prog, attach_name, &btf_obj_fd, &btf_type_id);
9811 static int find_kernel_btf_id(struct bpf_object *obj, const char *attach_name,
9817 ret = find_attach_btf_id(obj->btf_vmlinux, attach_name, attach_type);
9833 ret = find_attach_btf_id(mod->btf, attach_name, attach_type);
9848 static int libbpf_find_attach_btf_id(struct bpf_program *prog, const char *attach_name,
9861 err = libbpf_find_prog_btf_id(attach_name, attach_prog_fd);
9864 prog->name, attach_prog_fd, attach_name, err);
9874 bpf_gen__record_attach_target(prog->obj->gen_loader, attach_name, attach_type);
9878 err = find_kernel_btf_id(prog->obj, attach_name, attach_type, btf_obj_fd, btf_type_id);
9882 prog->name, attach_name, err);