- 论坛徽章:
- 0
|
回复 5# B_C_1024
malloc发生缺页中断的过程
static int __kprobes do_page_fault(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
fault = __do_page_fault(mm, addr, fsr, flags, tsk);
return handle_mm_fault(mm, vma, addr & PAGE_MASK, flags);
return handle_pte_fault(mm, vma, address, pte, pmd, flags);
return do_anonymous_page(mm, vma, address,pte, pmd, flags);
page = alloc_zeroed_user_highpage_movable(vma, address);
struct page *page = alloc_page_vma(GFP_HIGHUSER | movableflags,vma, vaddr);
alloc_pages(gfp_mask, order)
|
|