Lines Matching defs:file

427 	 * sec_insn_off instruction within its ELF section in ELF file, so
428 * when mapping ELF file instruction index to the local instruction,
1410 pr_warn("elf: failed to open %s as ELF file: %s\n", obj->path, elf_errmsg(-1));
1462 pr_warn("elf: %s is not a valid eBPF object file\n", obj->path);
2074 gzFile file;
2084 file = gzopen(buf, "re");
2085 if (!file)
2086 file = gzopen("/proc/config.gz", "re");
2088 if (!file) {
2093 while (gzgets(file, buf, sizeof(buf))) {
2103 gzclose(file);
2112 FILE *file;
2114 file = fmemopen((void *)config, strlen(config), "r");
2115 if (!file) {
2121 while (fgets(buf, sizeof(buf), file)) {
2130 fclose(file);
3764 pr_warn("elf: couldn't find symbol table in %s, stripped object file?\n",
4772 char file[PATH_MAX], buff[4096];
4777 snprintf(file, sizeof(file), "/proc/%d/fdinfo/%d", getpid(), fd);
4780 fp = fopen(file, "re");
4783 pr_warn("failed to open %s: %d. No procfs support?\n", file,
6240 * of the subprog from a different object file, linker still
10648 * given file using scanf format string fmt. If actual parsed value is
10651 static int parse_uint_from_file(const char *file, const char *fmt)
10657 f = fopen(file, "re");
10660 pr_debug("failed to open '%s': %s\n", file,
10667 pr_debug("failed to parse '%s': %s\n", file,
10678 const char *file = "/sys/bus/event_source/devices/kprobe/type";
10680 return parse_uint_from_file(file, "%d\n");
10685 const char *file = "/sys/bus/event_source/devices/uprobe/type";
10687 return parse_uint_from_file(file, "%d\n");
10692 const char *file = "/sys/bus/event_source/devices/kprobe/format/retprobe";
10694 return parse_uint_from_file(file, "config:%d\n");
10699 const char *file = "/sys/bus/event_source/devices/uprobe/format/retprobe";
10701 return parse_uint_from_file(file, "config:%d\n");
10754 static int append_to_file(const char *file, const char *fmt, ...)
10767 fd = open(file, O_WRONLY | O_APPEND | O_CLOEXEC, 0);
10851 char file[256];
10853 snprintf(file, sizeof(file), "%s/events/%s/%s/id",
10856 return parse_uint_from_file(file, "%d\n");
11515 char file[512];
11517 snprintf(file, sizeof(file), "%s/events/%s/%s/id",
11520 return parse_uint_from_file(file, "%d\n");
11615 pr_warn("elf: could not read elf file %s from %s: %s\n", file_name, archive_path,
11676 static int resolve_full_path(const char *file, char *result, size_t result_sz)
11681 if (str_has_sfx(file, ".so") || strstr(file, ".so.")) {
11707 snprintf(result, result_sz, "%.*s/%s", seg_len, s, file);
11711 pr_debug("resolved '%s' to '%s'\n", file, result);
12132 char file[PATH_MAX];
12135 ret = snprintf(file, sizeof(file), "%s/events/%s/%s/id",
12139 if (ret >= sizeof(file)) {
12144 return parse_uint_from_file(file, "%d\n");
13421 pr_warn("Failed to open cpu mask file %s: %d\n", fcpu, err);
13432 pr_warn("CPU mask is too big in file %s\n", fcpu);