Lines Matching refs:vaddr
40 struct vaddr { struct
49 struct vaddr *vaddr; argument
197 unsigned long vaddr; in read_pages() local
247 vaddr = pm_map_start(maps[i]) + j * pm_kernel_pagesize(ker); in read_pages()
248 off = lseek(fd, vaddr, SEEK_SET); in read_pages()
250 fprintf(stderr, "warning: could not lseek to 0x%08lx\n", vaddr); in read_pages()
255 fprintf(stderr, "warning: could not read page at 0x%08lx\n", vaddr); in read_pages()
296 cur_page->vaddr[cur_page->vaddr_len - 1].pid == pid && in read_pages()
297 cur_page->vaddr[cur_page->vaddr_len - 1].addr == in read_pages()
298 vaddr - (cur_page->vaddr[cur_page->vaddr_len - 1].num_pages * in read_pages()
300 cur_page->vaddr[cur_page->vaddr_len - 1].num_pages++; in read_pages()
303 struct vaddr *tmp = realloc(cur_page->vaddr, in read_pages()
304 … (cur_page->vaddr_size + GROWTH_FACTOR) * sizeof(*(cur_page->vaddr))); in read_pages()
312 cur_page->vaddr = tmp; in read_pages()
315 cur_page->vaddr[cur_page->vaddr_len].addr = vaddr; in read_pages()
316 cur_page->vaddr[cur_page->vaddr_len].num_pages = 1; in read_pages()
317 cur_page->vaddr[cur_page->vaddr_len].pid = pid; in read_pages()
331 free(kp->pages[i].vaddr); in read_pages()
372 printf(" 0x%08lx", kp->pages[i].vaddr[j].addr); in print_pages()
375 kp->pages[i].vaddr[j].num_pages); in print_pages()
378 kp->pages[i].vaddr[j].pid); in print_pages()
393 free(kp->pages[i].vaddr); in free_pages()