Displaying 1 result from an estimated 1 matches for "readpmem".
Did you mean:
readmem
2007 May 29
0
Fw: [RFC] makedumpfile: xen extraction
...igned long)kvaddr - DIRECTMAP_VIRT_START;
+
+ if (!is_frame_table_vaddr(kvaddr))
+ return 0;
+
+ addr = kvaddr - VIRT_FRAME_TABLE_ADDR;
+
+ dirp = SYMBOL(frametable_pg_dir) - DIRECTMAP_VIRT_START;
+ dirp += ((addr >> PGDIR_SHIFT) & (PTRS_PER_PGD - 1)) * sizeof(unsigned long long);
+ if (!readpmem(info, dirp, &entry, sizeof(entry)))
+ return FALSE;
+
+ dirp = entry & _PFN_MASK;
+ if (!dirp)
+ return 0;
+ dirp += ((addr >> PMD_SHIFT) & (PTRS_PER_PMD - 1)) * sizeof(unsigned long long);
+ if (!readpmem(info, dirp, &entry, sizeof(entry)))
+ return FALSE;
+
+ dirp = entr...