Lines Matching defs:filename

646 int modules__parse(const char *filename, void *arg,
655 file = fopen(filename, "r");
786 static int dso__load_all_kallsyms(struct dso *dso, const char *filename)
788 return kallsyms__parse(filename, dso, map__process_kallsym_symbol);
996 bool symbol__restricted_filename(const char *filename,
1002 char *r = realpath(filename, NULL);
1097 static int read_proc_modules(const char *filename, struct rb_root *modules)
1099 if (symbol__restricted_filename(filename, "/proc/modules"))
1102 if (modules__parse(filename, modules, __read_proc_modules)) {
1151 static int do_validate_kcore_modules(const char *filename, struct maps *kmaps)
1157 err = read_proc_modules(filename, &modules);
1183 * If kallsyms is referenced by name then we look for filename in the same
1186 static bool filename_from_kallsyms_filename(char *filename,
1192 strcpy(filename, kallsyms_filename);
1193 name = strrchr(filename, '/');
1551 static int kallsyms__delta(struct kmap *kmap, const char *filename, u64 *delta)
1558 if (kallsyms__get_function_start(filename, kmap->ref_reloc_sym->name, &addr))
1565 int __dso__load_kallsyms(struct dso *dso, const char *filename,
1571 if (symbol__restricted_filename(filename, "/proc/kallsyms"))
1577 if (dso__load_all_kallsyms(dso, filename) < 0)
1580 if (kallsyms__delta(kmap, filename, &delta))
1591 if (!no_kcore && !dso__load_kcore(dso, map, filename))
1597 int dso__load_kallsyms(struct dso *dso, const char *filename,
1600 return __dso__load_kallsyms(dso, filename, map, false);
2231 char *filename = NULL;
2243 filename = dso__build_id_filename(dso, NULL, 0, false);
2244 if (filename != NULL) {
2245 err = dso__load_vmlinux(dso, map, filename, true);
2248 free(filename);
2363 char *filename = NULL;
2366 * Step 1: if the user specified a kallsyms or vmlinux filename, use
2395 filename = __dso__build_id_filename(dso, NULL, 0, false, false);
2396 if (filename != NULL) {
2397 err = dso__load_vmlinux(dso, map, filename, true);
2400 free(filename);
2446 * if the user specified a vmlinux filename, use it and only