/freebsd/lib/libkvm/ |
H A D | kvm.c | 120 kd->pmfd = -1; in _kvm_open() 140 if ((kd->pmfd = open(mf, flag | O_CLOEXEC, 0)) < 0) { in _kvm_open() 144 if (fstat(kd->pmfd, &st) < 0) { in _kvm_open() 283 if (kd->pmfd >= 0) in kvm_close() 284 error |= close(kd->pmfd); in kvm_close() 402 if (lseek(kd->pmfd, pa, 0) == -1 && errno != 0) { in kvm_read2() 406 cr = read(kd->pmfd, cp, cc); in kvm_read2() 466 if (lseek(kd->pmfd, pa, 0) == -1 && errno != 0) { in kvm_write() 470 cw = write(kd->pmfd, cp, cc); in kvm_write()
|
H A D | kvm_private.c | 144 if (pread(kd->pmfd, &minihdr, 8, 0) == 8 && in _kvm_is_minidump() 166 elf = elf_begin(kd->pmfd, ELF_C_READ, NULL); in _kvm_read_core_phdrs() 302 MAP_PRIVATE, kd->pmfd, dump_avail_off); in _kvm_pt_init() 323 rd = pread(kd->pmfd, kd->pt_map, map_len, map_off); in _kvm_pt_init() 376 MAP_PRIVATE, kd->pmfd, kd->pt_sparse_off); in _kvm_pt_init() 380 kd->pt_sparse_size, kd->pmfd, in _kvm_pt_init() 400 if (pread(kd->pmfd, kd->page_map, pmap_size, pmap_off) != exp_len) { in _kvm_pmap_init()
|
H A D | kvm_amd64.c | 216 if (pread(kd->pmfd, &pdpe, sizeof(pdpe), ofs) != sizeof(pdpe)) { in _amd64_vatop() 248 if (pread(kd->pmfd, &pde, sizeof(pde), ofs) != sizeof(pde)) { in _amd64_vatop() 280 if (pread(kd->pmfd, &pte, sizeof(pte), ofs) != sizeof(pte)) { in _amd64_vatop()
|
H A D | kvm_powerpc.c | 100 vm->map = mmap(NULL, vm->mapsz, PROT_READ, MAP_PRIVATE, kd->pmfd, 0); in powerpc_maphdrs() 127 vm->map = mmap(NULL, vm->mapsz, PROT_READ, MAP_PRIVATE, kd->pmfd, 0); in powerpc_maphdrs()
|
H A D | kvm_powerpc64.c | 102 vm->map = mmap(NULL, vm->mapsz, PROT_READ, MAP_PRIVATE, kd->pmfd, 0); in powerpc_maphdrs() 129 vm->map = mmap(NULL, vm->mapsz, PROT_READ, MAP_PRIVATE, kd->pmfd, 0); in powerpc_maphdrs()
|
H A D | kvm_i386.c | 278 if (pread(kd->pmfd, &pte, sizeof(pte), ofs) != sizeof(pte)) { in _i386_vatop() 368 if (pread(kd->pmfd, &pte, sizeof(pte), ofs) != sizeof(pte)) { in _i386_vatop_pae()
|
H A D | kvm_minidump_amd64.c | 132 if (pread(kd->pmfd, &vmst->hdr, sizeof(vmst->hdr), 0) != in _amd64_minidump_initvtop() 275 if (pread(kd->pmfd, &pt, AMD64_PAGE_SIZE, ofs) != in _amd64_minidump_vatop()
|
H A D | kvm_private.h | 63 int pmfd; /* physical memory file (or crashdump) */ member
|
H A D | kvm_minidump_powerpc64.c | 81 if (pread(kd->pmfd, hdr, sizeof(*hdr), 0) != sizeof(*hdr)) { in _powerpc64_minidump_initvtop()
|
H A D | kvm_arm.c | 213 if (pread(kd->pmfd, &pte, sizeof(pte), pte_off) != sizeof(pte)) { in _arm_kvatop()
|
H A D | kvm_minidump_arm.c | 97 if (pread(kd->pmfd, &vmst->hdr, in _arm_minidump_initvtop()
|
H A D | kvm_minidump_riscv.c | 92 if (pread(kd->pmfd, &vmst->hdr, sizeof(vmst->hdr), 0) != in _riscv_minidump_initvtop()
|
H A D | kvm_minidump_aarch64.c | 94 if (pread(kd->pmfd, &vmst->hdr, sizeof(vmst->hdr), 0) != in _aarch64_minidump_initvtop()
|
H A D | kvm_minidump_i386.c | 100 if (pread(kd->pmfd, &vmst->hdr, sizeof(vmst->hdr), 0) != in _i386_minidump_initvtop()
|