Lines Matching defs:filename

225 bool filename__has_section(const char *filename, const char *sec)
233 fd = open(filename, O_RDONLY);
937 static int read_build_id(const char *filename, struct build_id *bid)
943 abfd = bfd_openr(filename, NULL);
948 pr_debug2("%s: cannot read %s bfd file.\n", __func__, filename);
966 static int read_build_id(const char *filename, struct build_id *bid)
975 fd = open(filename, O_RDONLY);
981 pr_debug2("%s: cannot read %s ELF file.\n", __func__, filename);
998 int filename__read_build_id(const char *filename, struct build_id *bid)
1004 if (!filename)
1007 err = kmod_path__parse(&m, filename);
1014 fd = filename__decompress(filename, path, sizeof(path), m.comp, &error);
1017 error, filename);
1021 filename = path;
1024 err = read_build_id(filename, bid);
1027 unlink(filename);
1031 int sysfs__read_build_id(const char *filename, struct build_id *bid)
1036 fd = open(filename, O_RDONLY);
1070 __func__, filename, nhdr.n_namesz, nhdr.n_descsz);
1083 int filename__read_debuglink(const char *filename, char *debuglink,
1090 abfd = bfd_openr(filename, NULL);
1095 pr_debug2("%s: cannot read %s bfd file.\n", __func__, filename);
1119 int filename__read_debuglink(const char *filename, char *debuglink,
1130 fd = open(filename, O_RDONLY);
1136 pr_debug2("%s: cannot read %s ELF file.\n", __func__, filename);
1921 static int kcore__open(struct kcore *kcore, const char *filename)
1925 kcore->fd = open(filename, O_RDONLY);
1950 static int kcore__init(struct kcore *kcore, char *filename, int elfclass,
1956 kcore->fd = mkstemp(filename);
1958 kcore->fd = open(filename, O_WRONLY | O_CREAT | O_EXCL, 0400);
1977 unlink(filename);
2384 char filename[PATH_MAX];
2386 scnprintf(filename, PATH_MAX, "%s/%s", dir, name);
2388 return unlink(filename);