Lines Matching refs:path

922 static struct btf *btf_parse_elf(const char *path, struct btf *base_btf,
934 pr_warn("failed to init libelf for %s\n", path);
938 fd = open(path, O_RDONLY | O_CLOEXEC);
941 pr_warn("failed to open %s: %s\n", path, strerror(errno));
949 pr_warn("failed to open %s as ELF file\n", path);
953 pr_warn("failed to get EHDR from %s\n", path);
959 path);
964 pr_warn("failed to get e_shstrndx from %s\n", path);
975 idx, path);
981 idx, path);
988 idx, name, path);
996 idx, name, path);
1004 pr_warn("failed to find '%s' ELF section in %s\n", BTF_ELF_SEC, path);
1021 pr_warn("failed to get ELF class (bitness) for %s\n", path);
1048 struct btf *btf__parse_elf(const char *path, struct btf_ext **btf_ext)
1050 return libbpf_ptr(btf_parse_elf(path, NULL, btf_ext));
1053 struct btf *btf__parse_elf_split(const char *path, struct btf *base_btf)
1055 return libbpf_ptr(btf_parse_elf(path, base_btf, NULL));
1058 static struct btf *btf_parse_raw(const char *path, struct btf *base_btf)
1067 f = fopen(path, "rbe");
1121 struct btf *btf__parse_raw(const char *path)
1123 return libbpf_ptr(btf_parse_raw(path, NULL));
1126 struct btf *btf__parse_raw_split(const char *path, struct btf *base_btf)
1128 return libbpf_ptr(btf_parse_raw(path, base_btf));
1131 static struct btf *btf_parse(const char *path, struct btf *base_btf, struct btf_ext **btf_ext)
1139 btf = btf_parse_raw(path, base_btf);
1145 return btf_parse_elf(path, base_btf, btf_ext);
1148 struct btf *btf__parse(const char *path, struct btf_ext **btf_ext)
1150 return libbpf_ptr(btf_parse(path, NULL, btf_ext));
1153 struct btf *btf__parse_split(const char *path, struct btf *base_btf)
1155 return libbpf_ptr(btf_parse(path, base_btf, NULL));
4781 char path[PATH_MAX + 1];
4789 snprintf(path, PATH_MAX, locations[i], buf.release);
4791 if (faccessat(AT_FDCWD, path, R_OK, AT_EACCESS))
4794 btf = btf__parse(path, NULL);
4796 pr_debug("loading kernel BTF '%s': %d\n", path, err);
4811 char path[80];
4813 snprintf(path, sizeof(path), "/sys/kernel/btf/%s", module_name);
4814 return btf__parse_split(path, vmlinux_btf);