Lines Matching defs:filename
564 int filename__read_build_id(const char *filename, struct build_id *bid)
570 abfd = bfd_openr(filename, NULL);
575 pr_debug2("%s: cannot read %s bfd file.\n", __func__, filename);
593 int filename__read_build_id(const char *filename, struct build_id *bid)
602 fd = open(filename, O_RDONLY);
608 pr_debug2("%s: cannot read %s ELF file.\n", __func__, filename);
625 int sysfs__read_build_id(const char *filename, struct build_id *bid)
630 fd = open(filename, O_RDONLY);
664 __func__, filename, nhdr.n_namesz, nhdr.n_descsz);
677 int filename__read_debuglink(const char *filename, char *debuglink,
684 abfd = bfd_openr(filename, NULL);
689 pr_debug2("%s: cannot read %s bfd file.\n", __func__, filename);
713 int filename__read_debuglink(const char *filename, char *debuglink,
724 fd = open(filename, O_RDONLY);
730 pr_debug2("%s: cannot read %s ELF file.\n", __func__, filename);
1445 static int kcore__open(struct kcore *kcore, const char *filename)
1449 kcore->fd = open(filename, O_RDONLY);
1474 static int kcore__init(struct kcore *kcore, char *filename, int elfclass,
1480 kcore->fd = mkstemp(filename);
1482 kcore->fd = open(filename, O_WRONLY | O_CREAT | O_EXCL, 0400);
1501 unlink(filename);
1908 char filename[PATH_MAX];
1910 scnprintf(filename, PATH_MAX, "%s/%s", dir, name);
1912 return unlink(filename);