Lines Matching refs:out_path
810 static int dump_raw_data(const char *out_path, const void *data, u32 size)
815 file = fopen(out_path, "wb");
817 pr_err("Couldn't open %s for writing\n", out_path);
823 pr_err("Failed to write data to %s\n", out_path);
825 unlink(out_path);
830 pr_debug("Dumped %lu bytes of data to %s\n", size, out_path);
835 static int dump_raw_btf_ids(struct object *obj, const char *out_path)
855 err = dump_raw_data(out_path, data->d_buf, data->d_size);
862 static int dump_raw_btf(struct btf *btf, const char *out_path)
874 err = dump_raw_data(out_path, raw_btf_data, raw_btf_size);
1486 char out_path[PATH_MAX];
1550 err = make_out_path(out_path, sizeof(out_path), obj.path, BTF_IDS_SECTION);
1551 err = err ?: dump_raw_btf_ids(&obj, out_path);
1556 err = make_out_path(out_path, sizeof(out_path), obj.path, BTF_ELF_SEC);
1557 err = err ?: dump_raw_btf(obj.btf, out_path);
1562 err = make_out_path(out_path, sizeof(out_path), obj.path, BTF_BASE_ELF_SEC);
1563 err = err ?: dump_raw_btf(obj.base_btf, out_path);