Lines Matching defs:file

416 	 * sec_insn_off instruction within its ELF section in ELF file, so
417 * when mapping ELF file instruction index to the local instruction,
1341 pr_warn("elf: failed to open %s as ELF file: %s\n", obj->path, elf_errmsg(-1));
1384 pr_warn("elf: %s is not a valid eBPF object file\n", obj->path);
1977 gzFile file;
1987 file = gzopen(buf, "re");
1988 if (!file)
1989 file = gzopen("/proc/config.gz", "re");
1991 if (!file) {
1996 while (gzgets(file, buf, sizeof(buf))) {
2006 gzclose(file);
2015 FILE *file;
2017 file = fmemopen((void *)config, strlen(config), "r");
2018 if (!file) {
2024 while (fgets(buf, sizeof(buf), file)) {
2033 fclose(file);
3440 pr_warn("elf: couldn't find symbol table in %s, stripped object file?\n",
4367 char file[PATH_MAX], buff[4096];
4372 snprintf(file, sizeof(file), "/proc/%d/fdinfo/%d", getpid(), fd);
4375 fp = fopen(file, "re");
4378 pr_warn("failed to open %s: %d. No procfs support?\n", file,
5835 * of the subprog from a different object file, linker still
10192 * given file using scanf format string fmt. If actual parsed value is
10195 static int parse_uint_from_file(const char *file, const char *fmt)
10201 f = fopen(file, "re");
10204 pr_debug("failed to open '%s': %s\n", file,
10211 pr_debug("failed to parse '%s': %s\n", file,
10222 const char *file = "/sys/bus/event_source/devices/kprobe/type";
10224 return parse_uint_from_file(file, "%d\n");
10229 const char *file = "/sys/bus/event_source/devices/uprobe/type";
10231 return parse_uint_from_file(file, "%d\n");
10236 const char *file = "/sys/bus/event_source/devices/kprobe/format/retprobe";
10238 return parse_uint_from_file(file, "config:%d\n");
10243 const char *file = "/sys/bus/event_source/devices/uprobe/format/retprobe";
10245 return parse_uint_from_file(file, "config:%d\n");
10298 static int append_to_file(const char *file, const char *fmt, ...)
10311 fd = open(file, O_WRONLY | O_APPEND | O_CLOEXEC, 0);
10395 char file[256];
10397 snprintf(file, sizeof(file), "%s/events/%s/%s/id",
10400 return parse_uint_from_file(file, "%d\n");
11059 char file[512];
11061 snprintf(file, sizeof(file), "%s/events/%s/%s/id",
11064 return parse_uint_from_file(file, "%d\n");
11113 * file inside the archive. "func_name" matches symbol name or name@@LIB for
11152 pr_warn("elf: could not read elf file %s from %s: %s\n", file_name, archive_path,
11210 static int resolve_full_path(const char *file, char *result, size_t result_sz)
11215 if (str_has_sfx(file, ".so") || strstr(file, ".so.")) {
11241 snprintf(result, result_sz, "%.*s/%s", seg_len, s, file);
11245 pr_debug("resolved '%s' to '%s'\n", file, result);
11652 char file[PATH_MAX];
11655 ret = snprintf(file, sizeof(file), "%s/events/%s/%s/id",
11659 if (ret >= sizeof(file)) {
11664 return parse_uint_from_file(file, "%d\n");
12907 pr_warn("Failed to open cpu mask file %s: %d\n", fcpu, err);
12918 pr_warn("CPU mask is too big in file %s\n", fcpu);