Lines Matching refs:elfcorebuf_sz
40 static size_t elfcorebuf_sz; variable
330 if (*fpos < elfcorebuf_sz) { in __read_vmcore()
331 tsz = min(elfcorebuf_sz - (size_t)*fpos, iov_iter_count(iter)); in __read_vmcore()
343 if (*fpos < elfcorebuf_sz + elfnotes_sz) { in __read_vmcore()
357 if (*fpos < elfcorebuf_sz + vmcoredd_orig_sz) { in __read_vmcore()
358 tsz = min(elfcorebuf_sz + vmcoredd_orig_sz - in __read_vmcore()
360 start = *fpos - elfcorebuf_sz; in __read_vmcore()
374 tsz = min(elfcorebuf_sz + elfnotes_sz - (size_t)*fpos, in __read_vmcore()
376 kaddr = elfnotes_buf + *fpos - elfcorebuf_sz - vmcoredd_orig_sz; in __read_vmcore()
593 if (start < elfcorebuf_sz) { in mmap_vmcore()
596 tsz = min(elfcorebuf_sz - (size_t)start, size); in mmap_vmcore()
609 if (start < elfcorebuf_sz + elfnotes_sz) { in mmap_vmcore()
625 if (start < elfcorebuf_sz + vmcoredd_orig_sz) { in mmap_vmcore()
628 tsz = min(elfcorebuf_sz + vmcoredd_orig_sz - in mmap_vmcore()
630 start_off = start - elfcorebuf_sz; in mmap_vmcore()
646 tsz = min(elfcorebuf_sz + elfnotes_sz - (size_t)start, size); in mmap_vmcore()
647 kaddr = elfnotes_buf + start - elfcorebuf_sz - vmcoredd_orig_sz; in mmap_vmcore()
1241 elfcorebuf_sz = elfcorebuf_sz_orig; in parse_crash_elf64_headers()
1252 rc = merge_note_headers_elf64(elfcorebuf, &elfcorebuf_sz, in parse_crash_elf64_headers()
1256 rc = process_ptload_program_headers_elf64(elfcorebuf, elfcorebuf_sz, in parse_crash_elf64_headers()
1260 set_vmcore_list_offsets(elfcorebuf_sz, elfnotes_sz, &vmcore_list); in parse_crash_elf64_headers()
1296 elfcorebuf_sz = elfcorebuf_sz_orig; in parse_crash_elf32_headers()
1307 rc = merge_note_headers_elf32(elfcorebuf, &elfcorebuf_sz, in parse_crash_elf32_headers()
1311 rc = process_ptload_program_headers_elf32(elfcorebuf, elfcorebuf_sz, in parse_crash_elf32_headers()
1315 set_vmcore_list_offsets(elfcorebuf_sz, elfnotes_sz, &vmcore_list); in parse_crash_elf32_headers()
1351 vmcore_size = get_vmcore_size(elfcorebuf_sz, elfnotes_sz, in parse_crash_elf_headers()
1398 vmcore_off = elfcorebuf_sz + elfnotesz; in vmcoredd_update_program_headers()
1460 set_vmcore_list_offsets(elfcorebuf_sz, elfnotes_sz, &vmcore_list); in vmcoredd_update_size()
1462 vmcore_size = get_vmcore_size(elfcorebuf_sz, elfnotes_sz, in vmcoredd_update_size()